private void EnvSelectionTabs_SelectedIndexChanged(object sender, EventArgs e) { activeEditor = (EnvSelectionTabs.SelectedTab == MachineTab) ? MachineEditor : (EnvSelectionTabs.SelectedTab == UserTab) ? UserEditor : null; }
public EEditForm() { InitializeComponent(); KeyPreview = true; activeEditor = MachineEditor; }