Пример #1
0
 private void M_addbox_Click(object sender, EventArgs e)
 {
     if (DbCatalog.DbGetHeightOpt(0, wardrobe.Dimensions.Y).Count == 0 || wardrobe.Components["Etage"].Count == 7)
     {
         return;
     }
     wardrobe.AddBox(36);
     Preset();
 }
Пример #2
0
 private void M_height_Enter(object sender, EventArgs e)
 {
     try
     {
         player_modif = true;
         M_height.Items.Clear();
         List <string> options = DbCatalog.DbGetHeightOpt(Convert.ToDouble(M_height.Text), wardrobe.Dimensions.Y);
         foreach (string option in options)
         {
             M_height.Items.Add(option);
         }
     }
     catch { }
 }