private void helpButton_Click(object sender, EventArgs e) { Hide(); FilthyHelp help = new FilthyHelp(); help.ShowDialog(); Show(); Activate(); }
public FilthyMath() { // Set icon from resource Icon = Properties.Resources.icon; InitializeComponent(); // Initialise operations (they self-register) new AddOperation(0, 50, additionToggle); new SubtractOperation(0, 50, subtractionToggle); new MultiplyOperation(0, 12, multiplicationToggle); new DivideOperation(0, 50, divisionToggle); // Show help/about dialog and then bring into focus FilthyHelp help = new FilthyHelp(); help.ShowDialog(); Activate(); }