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);
        }
Beispiel #2
0
        void MainWindow_AfterSettingChangedOnMainWindows()
        {
            try
            {
                int.Parse(tbox_height.Text);
                int.Parse(tbox_width.Text);

                if (tbox_height.Text != aOptions.tbox_maxHeight.Text || tbox_width.Text != aOptions.tbox_maxWidth.Text)
                {
                    aOptions.SetData(int.Parse(tbox_height.Text), int.Parse(tbox_width.Text));
                }

                Properties.Settings.Default.querystring = aOptions.QueryString;
                Properties.Settings.Default.Save();
            }
            catch (Exception)
            {
            }
        }
Beispiel #3
0
        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);
            }
        }