public CaloriesRedactorDish_Edit(Themes.ThemeInfo _theme, bool isAdd)
 {
     InitializeComponent();
     theme = _theme;
     AnimateWindow.SetAnimateWindow(this);
     guna2ShadowForm1.SetShadowForm(this);
     timer1.Start();
     if (isAdd)
     {
         bunifuCustomLabel1.Text = "Добавить";
     }
     else
     {
         bunifuCustomLabel1.Text = "Изменить";
     }
     Commands.ApplyTheme(this, null, theme);
     if (theme.black)
     {
         guna2ImageButton1.Image = blackList.Images[0];
         guna2ImageButton2.Image = blackList.Images[1];
     }
     else
     {
         guna2ImageButton1.Image = blueList.Images[0];
         guna2ImageButton2.Image = blueList.Images[1];
     }
 }
 public CaloriesRedactorProductAdd(Themes.ThemeInfo _theme, bool isAdd)
 {
     InitializeComponent();
     AnimateWindow.SetAnimateWindow(this);
     guna2ShadowForm1.SetShadowForm(this);
     theme = _theme;
     Commands.ApplyTheme(this, null, theme);
     if (isAdd)
     {
         bunifuCustomLabel1.Text = "Добавить";
     }
     else
     {
         bunifuCustomLabel1.Text = "Изменить";
     }
 }