public MainWindow() { InitializeComponent(); // Install Plugins new AnimatedGifs().Install(Config.Current); new PrettyGifs().Install(Config.Current); aOptions = new AdvancedOptions(this); btn_BrowseButton.Click += btn_BrowseButton_Click; btn_addFiles.Click += btn_addFiles_Click; btn_remove.Click += btn_remove_Click; btn_clearAll.Click += btn_clearAll_Click; tbox_height.PreviewTextInput += tbox_PreviewTextInput; tbox_width.PreviewTextInput += tbox_PreviewTextInput; Closing += MainWindow_Closing; listView.Drop += listView_Drop; KeyDown += MainWindow_KeyDown; comboBox_exportAction.SelectionChanged += comboBox_exportAction_SelectionChanged; comboBox_exportAction.SelectedIndex = 1; saveMode = SaveMode.ExportResults; tbox_savePath.TextChanged += tbox_savePath_TextChanged; LoadSettings(); aOptions.SetData(int.Parse(tbox_height.Text), int.Parse(tbox_width.Text)); AfterSettingChangedOnMainWindows += MainWindow_AfterSettingChangedOnMainWindows; tbox_height.TextChanged += tbox_TextChanged; tbox_width.TextChanged += tbox_TextChanged; if (tbox_savePath.Text == "") tbox_savePath.Background = new SolidColorBrush(Colors.Pink); }
public MainWindow() { InitializeComponent(); // Install Plugins new AnimatedGifs().Install(Config.Current); new PrettyGifs().Install(Config.Current); aOptions = new AdvancedOptions(this); btn_BrowseButton.Click += btn_BrowseButton_Click; btn_addFiles.Click += btn_addFiles_Click; btn_remove.Click += btn_remove_Click; btn_clearAll.Click += btn_clearAll_Click; tbox_height.PreviewTextInput += tbox_PreviewTextInput; tbox_width.PreviewTextInput += tbox_PreviewTextInput; Closing += MainWindow_Closing; listView.Drop += listView_Drop; KeyDown += MainWindow_KeyDown; comboBox_exportAction.SelectionChanged += comboBox_exportAction_SelectionChanged; comboBox_exportAction.SelectedIndex = 1; saveMode = SaveMode.ExportResults; tbox_savePath.TextChanged += tbox_savePath_TextChanged; LoadSettings(); aOptions.SetData(int.Parse(tbox_height.Text), int.Parse(tbox_width.Text)); AfterSettingChangedOnMainWindows += MainWindow_AfterSettingChangedOnMainWindows; tbox_height.TextChanged += tbox_TextChanged; tbox_width.TextChanged += tbox_TextChanged; if (tbox_savePath.Text == "") { tbox_savePath.Background = new SolidColorBrush(Colors.Pink); } }