Пример #1
0
        private void refleshToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var dlg = new SettingDialog();

            var result = dlg.ShowDialog();

            if (result == DialogResult.OK)
            {
                requestLoadIndex();
            }
        }
Пример #2
0
        public void OpenSetting()
        {
            SettingDialog          dialog    = new SettingDialog();
            SettingDialogViewModel viewmodel = new SettingDialogViewModel(this);

            dialog.DataContext           = viewmodel;
            dialog.Owner                 = this.Window;
            dialog.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
            dialog.ShowDialog();
            this.TweetCommand.RaiseCanExecuteChanged();
            this.WhisperCommand.RaiseCanExecuteChanged();
        }
Пример #3
0
    private void click(object sender, MouseButtonEventArgs e)
    {
        var settingsDialog = new SettingDialog(settings);

        settingsDialog.ShowDialog();
    }
 private void _settingLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     SettingDialog form = new SettingDialog(this);
     form.Location = new Point(this.Location.X - 120, this.Location.Y + 50);
     form.ShowDialog(this);
     form.Dispose();
 }