예제 #1
0
 protected void OnOpenObjects(MetaEventArgs args)
 {
     if (this.OpenObjects != null)
     {
         this.OpenObjects(this, args);
     }
 }
예제 #2
0
        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();
        }
예제 #3
0
        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;
        }