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]; } }
private void button_switch_layout_Click_1(object sender, RoutedEventArgs e) { Themes.ThemeInfo theme = listbox_themes.SelectedItem as Themes.ThemeInfo; if (theme != null) { AppController.load_theme(theme); } }
private void listbox_themes_SelectionChanged(object sender, SelectionChangedEventArgs e) { button_open_layout_homepage.Visibility = System.Windows.Visibility.Collapsed; Themes.ThemeInfo theme = listbox_themes.SelectedItem as Themes.ThemeInfo; if (theme != null) { if (!string.IsNullOrEmpty(theme.homepage)) { if (theme.homepage.ToLower().StartsWith("http://") || theme.homepage.ToLower().StartsWith("https://")) { button_open_layout_homepage.Visibility = System.Windows.Visibility.Visible; button_open_layout_homepage.ToolTip = theme.homepage; } } } }
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 = "Изменить"; } }
private void button_open_layout_homepage_Click(object sender, RoutedEventArgs e) { Themes.ThemeInfo theme = listbox_themes.SelectedItem as Themes.ThemeInfo; if (theme != null) { if (!string.IsNullOrEmpty(theme.homepage)) { if (theme.homepage.ToLower().StartsWith("http://") || theme.homepage.ToLower().StartsWith("https://")) { try { System.Diagnostics.Process.Start(theme.homepage); } catch { } } } } }
public CaloriesRedactorDishForm(Themes.ThemeInfo _theme) { InitializeComponent(); theme = _theme; Commands.ApplyTheme(this, Container, theme); }
public CaloriesValueProductForm(Themes.ThemeInfo _theme) { InitializeComponent(); theme = _theme; Commands.ApplyTheme(this, null, theme); }