コード例 #1
0
 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];
     }
 }
コード例 #2
0
ファイル: Preferences.xaml.cs プロジェクト: svenwal/Chapper
 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);
     }
 }
コード例 #3
0
ファイル: Preferences.xaml.cs プロジェクト: svenwal/Chapper
 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;
             }
         }
     }
 }
コード例 #4
0
 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 = "Изменить";
     }
 }
コード例 #5
0
ファイル: Preferences.xaml.cs プロジェクト: svenwal/Chapper
 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 { }
             }
         }
     }
 }
コード例 #6
0
 public CaloriesRedactorDishForm(Themes.ThemeInfo _theme)
 {
     InitializeComponent();
     theme = _theme;
     Commands.ApplyTheme(this, Container, theme);
 }
コード例 #7
0
 public CaloriesValueProductForm(Themes.ThemeInfo _theme)
 {
     InitializeComponent();
     theme = _theme;
     Commands.ApplyTheme(this, null, theme);
 }