private void englishClick(object sender, EventArgs e) { UnitSelection englishMode = new UnitSelection(UnitSelection.ENGLISH_MODE); englishMode.Owner = this; this.Hide(); englishMode.ShowDialog(); }
private void hebrewClick(object sender, EventArgs e) { UnitSelection hebrewMode = new UnitSelection(UnitSelection.HEBREW_MODE); hebrewMode.Owner = this; //Setting the parent form to the new form this.Hide(); hebrewMode.ShowDialog(); //Showing the new form }