示例#1
0
        private void btnSelectProcess_Click(object sender, EventArgs e)
        {
            if (lviProcesses.SelectedIndices.Count > 0)
            {
                int selectedIndex   = lviProcesses.SelectedIndices[0];
                var selectedProcess = Processes[selectedIndex];

                Form form = new AwakeBotUserInterface(selectedProcess);
                this.Hide();
                form.FormClosed += (s, args) => this.Close();
                form.Show();
            }
        }
示例#2
0
        private void ButtonSelectProcessOnClick(object sender, EventArgs e)
        {
            if (ListViewProcesses.SelectedIndices.Count > 0)
            {
                int selectedIndex   = ListViewProcesses.SelectedIndices[0];
                var selectedProcess = Processes[selectedIndex];

                Hide();

                AwakeBotUserInterface form = new AwakeBotUserInterface(selectedProcess);

                form.FormClosed += (s, args) => Close();
                form.Show();
            }
        }
 public AwakeningRoutine(AwakeBotUserInterface ui, BotConfig botConfig, ServerConfig serverConfig)
 {
     _ui           = ui;
     _botConfig    = botConfig;
     _serverConfig = serverConfig;
 }