private void CancelStringButton_Click(object sender, EventArgs e) { // if the form is cancelled, clear the global string information first GlobalData.selectedBatteryString = null; // then just close this form this.Close(); // and make sure the originator form is shown and the ETV is enabled originatorForm.Show(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DischargeMainForm MainForm = new DischargeMainForm(); MainForm.Show(); Application.Run(); }