- New control: MonthPicker - New control TreeView - adding examples for all 3 - small change on Progress Bar Control - due latest changes on the base it is now easier to create controls which will be rendered (or not)in several forms depending on user context
23 lines
587 B
C#
23 lines
587 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using TelegramBotBase.Base;
|
|
using TelegramBotBase.Form;
|
|
|
|
namespace TelegramBotBase.Tools
|
|
{
|
|
public static class Arrays
|
|
{
|
|
public static T[] Shift<T>(T[] array, int positions)
|
|
{
|
|
T[] copy = new T[array.Length];
|
|
Array.Copy(array, 0, copy, array.Length - positions, positions);
|
|
Array.Copy(array, positions, copy, 0, array.Length - positions);
|
|
return copy;
|
|
}
|
|
}
|
|
}
|