private void startJBossToolStripMenuItem_Click(object sender, EventArgs e) { if (JBossCommand != null) { MessageBox.Show("JBoss already running!"); return; } this.Cursor = Cursors.WaitCursor; JBossCommand = new LocalCommand(); this.SuspendLayout(); ConnectionTab tab = CreateTab("JBoss", JBossCommand); JBossCommand.ExecuteCommand(Settings.Default.JBossCommand, Settings.Default.JBossCommandArguments, Settings.Default.JBossTerminate, Settings.Default.JBossTerminateArguments); this.ResumeLayout(); this.Cursor = Cursors.Default; }
private void localTerminalToolStripMenuItem_Click(object sender, EventArgs e) { if (JBossCommand != null) { MessageBox.Show("local terminal already active!"); return; } this.Cursor = Cursors.WaitCursor; LocalTerminalCommand = new LocalCommand(); this.SuspendLayout(); ConnectionTab tab = CreateTab("Local Terminal", LocalTerminalCommand); LocalTerminalCommand.ExecuteCommand(Settings.Default.LocalTerminal); this.ResumeLayout(); this.Cursor = Cursors.Default; LocalTerminalCommand.SendCommand("ls"); }