Ejemplo n.º 1
0
        private void refleshToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var dlg = new SettingDialog();

            var result = dlg.ShowDialog();

            if (result == DialogResult.OK)
            {
                requestLoadIndex();
            }
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
 }