Пример #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     initializeFloors();
     ShowFloor(currentFloor);
     try
     {
         currentConfig = Configuration.GetConfiguration();
         currentConfig.ApplyConfiguration(floorList);
     }
     catch { }
 }
Пример #2
0
 private void SaveChanges(object sender, FormClosingEventArgs e)
 {
     currentConfig = new Configuration();
     foreach (Floor f in floorList)
         foreach (Button b in f)
             currentConfig.configList.Add(int.Parse(b.Text), b.BackColor);
     currentConfig.SetConfiguration();
 }