protected void OnOpenObjects(MetaEventArgs args) { if (this.OpenObjects != null) { this.OpenObjects(this, args); } }
void uco_OpenObjects(object sender, MetaEventArgs e) { UCObjects uco = new UCObjects(); uco.Initialize(e.mType, siaqodb, siaqodbList, e.oids); uco.OpenObjects += new EventHandler <MetaEventArgs>(uco_OpenObjects); uco.Dock = DockStyle.Fill; TabPage tab = new TabPage(e.mType.Name); tab.Controls.Add(uco); this.tabControl1.TabPages.Add(tab); this.tabControl1.SelectedTab = tab; uco.Refresh(); }
void uco_OpenObjects(object sender, MetaEventArgs e) { ObjectsDocument uco = new ObjectsDocument(); uco.Initialize(e.mType, siaqodb, siaqodbList, e.oids); uco.OpenObjects += new EventHandler <MetaEventArgs>(uco_OpenObjects); uco.Title = e.mType.Name; SetDefaultSettings(uco); uco.Show(this.dockingManager1); uco.Activate(); btnExecute.IsEnabled = false; menuExecute.IsEnabled = false; btnSave.IsEnabled = false; menuSave.IsEnabled = false; menuSaveAs.IsEnabled = false; }