private void cliButtonClick(object sender, EventArgs e) { // Command Line implementation var formCLI = new Form_CLI(); formCLI.ShowDialog(); }
/**************************************** * ICON STUFF * **************************************/ private void CommandIcon_Click(object sender, EventArgs e) { // Command Line implementation if (BootOptions.enableCommandPrompt == false) { const string message = "Command Prompt Access Restricted in Current Boot Options."; var result = MessageBox.Show(message); return; } var formCLI = new Form_CLI(); formCLI.Show(); Process.newProcess("Command Prompt", DateTime.Now); }