static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(AppControl.GetForm("StandardCalculator")); }
private void Programmer_Click(object sender, EventArgs e) { Hide(); AppControl.GetForm("ProgrammerView").Show(); }
private void Time_Click(object sender, EventArgs e) { Hide(); AppControl.GetForm("Time").Show(); }
// Opens the Standard Calculator From if the X on the window bar is clicked // All below open a new form and close the current one when clicked private void Calculator_Click(object sender, EventArgs e) { Hide(); AppControl.GetForm("StandardCalculator").Show(); }
private void timeToolStripMenuItem_Click(object sender, EventArgs e) { Hide(); AppControl.GetForm("Time").Show(); }
private void measurementConverterToolStripMenuItem_Click(object sender, EventArgs e) { Hide(); AppControl.GetForm("MeasurementConverter").Show(); }
private void Measurement_Click(object sender, EventArgs e) { Hide(); AppControl.GetForm("MeasurementConverter").Show(); }
// The next four EventListeners check if a menu it has been Clicked // If so they open a new form and close this form private void programmerToolStripMenuItem_Click(object sender, EventArgs e) { Hide(); AppControl.GetForm("ProgrammerView").Show(); }