상속: System.Windows.Forms.Form
        private void btnUpdater_Click(object sender, EventArgs e)
        {
            var inList = false;
            foreach (var item in cbSyncTo.Items.Cast<string>().Where(item => cbSyncTo.Text == item))
            {
                inList = true;
            }

            if (!inList)
            {
                MessageBox.Show(@"Must pick source to sync to.");
                return;
            }

            _settings.SelectedSource = cbSyncTo.Text;
            _settings.AutoUpdate = chkAutoUpdate.Checked;
            _settings.SaveSettings();

            var window = new UpdateWindow(_plugin);

            _plugin.GlueCommands.DialogCommands.SetFormOwner(window);
            if (window.Owner == null)
                window.TopMost = true;
            window.Show();
            Close();
        }
예제 #2
0
        private void btnUpdater_Click(object sender, EventArgs e)
        {
            var inList = false;

            foreach (var item in cbSyncTo.Items.Cast <string>().Where(item => cbSyncTo.Text == item))
            {
                inList = true;
            }

            if (!inList)
            {
                MessageBox.Show(@"Must pick source to sync to.");
                return;
            }

            _settings.SelectedSource = cbSyncTo.Text;
            _settings.AutoUpdate     = chkAutoUpdate.Checked;
            _settings.SaveSettings();

            var window = new UpdateWindow(_plugin);

            _plugin.GlueCommands.DialogCommands.SetFormOwner(window);
            if (window.Owner == null)
            {
                window.TopMost = true;
            }
            window.Show();
            Close();
        }
        public void StartUp()
        {
            var settings = FrbUpdaterSettings.LoadSettings();

            if (settings.AutoUpdate && (settings.SelectedSource == "Daily Build" || settings.SelectedSource == "Current"))
            {
                var window = new UpdateWindow(this);
                GlueCommands.DialogCommands.SetFormOwner(window);
                if (window.Owner == null)
                    window.TopMost = true;
                window.Show();
            }
        }
예제 #4
0
        public void StartUp()
        {
            var settings = FrbUpdaterSettings.LoadSettings();

            if (settings.AutoUpdate && (settings.SelectedSource == "Daily Build" || settings.SelectedSource == "Current"))
            {
                var window = new UpdateWindow(this);
                GlueCommands.DialogCommands.SetFormOwner(window);
                if (window.Owner == null)
                {
                    window.TopMost = true;
                }
                window.Show();
            }
        }