var list = new List<Array>();list.Add(ArrayObject);var timeFrom1 = new TimeSpan(11, 30, 0);
var timeTo1 = new TimeSpan(12, 30, 0);
var timeNow = DateTime.Now.TimeOfDay;
if (timeNow > timeFrom1 && timeNow < timeTo1)
{
Console.WriteLine("between");
}
else
{
Console.WriteLine("not between");
}
И находить через цикл в коллекции тот объект, у которого есть имя как и у кнопки и возвращать его
Dictionary<string, List<object>>Нет, кнопка это не класс. На кнопке тут просто события.
может мы не поняли друг друга
$('.modal-header').after(modalOn);$('.modal-form').css('display','none');$('.modal-form').css('display','block'); // Сериализация
var document = new XElement(
"items",
dictionary.Select(x => new XElement("item", new XAttribute("id", x.Key), new XAttribute("value", x.Value)))
);
var xml = document.ToString();
Console.WriteLine(xml);
// Десериализация
var document2 = XElement.Parse(xml);
var obj = document2.Descendants("item")
.ToDictionary(x => (int)x.Attribute("id"), x => (string)x.Attribute("value")); Inc(ref Storage.first); Console.PrintString(Storage.first.ToString());//тут будет 1?
var storege = new Storage;Inc(ref sorage.fist);