Beispiel #1
0
        public void ShowProperties()

        {
            var frm = new ObjectClassWindow(ObjectClassDto, this.ServerNode.ServerDTO.Connection.SchemaManager);

            if (SnapIn.Console.ShowDialog(frm) == DialogResult.OK)

            {
                UIErrorHelper.CheckedExec(delegate(){
                    this.ServerNode.ServerDTO.Connection.ModifyObjectClass(frm.ObjectClassModDTO);

                    this.ServerNode.ServerDTO.Connection.SchemaManager.RefreshSchema();

                    (this.Parent as VMDirSchemaClassBaseNode).RefreshChildren();

                    UIErrorHelper.ShowMessage(VMDirSchemaConstants.CLASS_MODIFY_MESSAGE);
                });
            }
        }
Beispiel #2
0
        public void AddObjectClass()

        {
            var frm = new ObjectClassWindow(this.ServerNode.ServerDTO.Connection.SchemaManager);

            if (SnapIn.Console.ShowDialog(frm) == DialogResult.OK)

            {
                UIErrorHelper.CheckedExec(delegate()

                {
                    this.ServerNode.ServerDTO.Connection.AddObjectClass(frm.ObjectDTO);

                    this.ServerNode.ServerDTO.Connection.SchemaManager.RefreshSchema();

                    this.RefreshChildren();

                    this.ListView.Refresh();

                    MMCDlgHelper.ShowMessage(VMDirSchemaConstants.CLASS_ADD_MESSAGE);
                });
            }
        }
Beispiel #3
0
        void ShowProperties()

        {
            var frm = new ObjectClassWindow(this.Entries[(int)this.SelectedNodes[0].Tag].ObjectClassDto, (this.ScopeNode as VMDirSchemaClassBaseNode).ServerNode.ServerDTO.Connection.SchemaManager);

            if (SnapIn.Console.ShowDialog(frm) == DialogResult.OK)

            {
                UIErrorHelper.CheckedExec(delegate()

                {
                    (this.ScopeNode as VMDirSchemaClassBaseNode).ServerNode.ServerDTO.Connection.ModifyObjectClass(frm.ObjectClassModDTO);

                    (this.ScopeNode as VMDirSchemaClassBaseNode).ServerNode.ServerDTO.Connection.SchemaManager.RefreshSchema();

                    (this.ScopeNode as VMDirSchemaClassBaseNode).RefreshChildren();

                    this.Refresh();

                    MMCDlgHelper.ShowMessage(VMDirSchemaConstants.CLASS_MODIFY_MESSAGE);
                });
            }
        }