private void MaxPluginForm_Load(object sender, EventArgs e) { #if !DEBUG HideDebugUI(); #endif Settings.Read(); brg = new BrgMax(this); grn = new GrnMax(this); brg.LoadUI(); grn.LoadUI(); model = brg; }
private void mainTabControl_SelectedIndexChanged(object sender, EventArgs e) { model.SaveUI(); if (mainTabControl.SelectedIndex == 0) { this.model = this.brg; this.brgObjectsTreeListView.Focus(); //MessageBox.Show("brg"); } else if (mainTabControl.SelectedIndex == 1) { this.model = this.grn; this.grnObjectsTreeListView.Focus(); //MessageBox.Show("grn"); } model.LoadUI(); }