Exemple #1
0
        private void ShowAccountSetting(LineTrader.Properties.Settings settings)
        {
            var win = new View.AccountSettingWindow(true);

            win.AccountUpdated += (account, client) => Dispatcher.Invoke(() => StartApplication(settings, client));
            win.Show();
        }
Exemple #2
0
        private void menuItem_AccountSetting_Click(object sender, RoutedEventArgs e)
        {
            var win = new AccountSettingWindow(false);

            win.AccountUpdated += (account, clinet) =>
            {
                MessageBox.Show(
                    "新しいアカウント設定は次回起動から有効になります。",
                    "LineTrader",
                    MessageBoxButton.OK,
                    MessageBoxImage.Information,
                    MessageBoxResult.None,
                    MessageBoxOptions.DefaultDesktopOnly
                    );
            };
            win.ShowDialog();
        }