Exemple #1
0
        private void launchButton_Click(object sender, EventArgs e)
        {
            Launcher dlg = new Launcher();
            dlg.Server = serverList.SelectedServer;
            dlg.Account = accountList.SelectedAccount;

            dlg.ShowDialog();

            if (dlg.Success)
            {
                Close();
            }
        }
Exemple #2
0
        private void MainWindow_Load(object sender, EventArgs e)
        {
            HistoryCache.Load(HistoryFileName);

            foreach (string arg in Environment.GetCommandLineArgs())
            {
                if (arg.Replace('-', '/').StartsWith("/launchlast", StringComparison.InvariantCultureIgnoreCase))
                {
                    Launcher dlg = new Launcher();
                    dlg.StartPosition = FormStartPosition.CenterScreen;
                    dlg.Server = serverList.SelectedServer;
                    dlg.Account = accountList.SelectedAccount;

                    dlg.ShowDialog();

                    if (dlg.Success)
                    {
                        Close();
                    }
                }
            }
        }
        private void launchButton_Click(object sender, EventArgs e)
        {
            Launcher dlg = new Launcher();
            dlg.Server = Server;
            dlg.Account = Account;

            dlg.ShowDialog();

            started = dlg.Success;
            Close();
        }