Esempio n. 1
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;
        }
Esempio n. 2
0
        private void LoadObjects()
        {
            TreeViewItem item = treeView1.SelectedItem as TreeViewItem;

            if (item != null)
            {
                MetaType mt = item.Tag as MetaType;
                if (mt != null)
                {
                    ObjectsDocument uco = new ObjectsDocument();
                    uco.Initialize(mt, siaqodb, siaqodbList);
                    uco.OpenObjects += new EventHandler <MetaEventArgs>(uco_OpenObjects);
                    uco.Title        = mt.Name;
                    SetDefaultSettings(uco);
                    uco.Show(this.dockingManager1);
                    uco.Activate();
                    btnExecute.IsEnabled  = false;
                    menuExecute.IsEnabled = false;
                    btnSave.IsEnabled     = false;
                    menuSave.IsEnabled    = false;
                    menuSaveAs.IsEnabled  = false;
                }
            }
        }