public BinaryValueEditorDialog(object valueInfo, bool IsAdd,
                                       RegistryViewerPlugin _plugin, string key)
            : this()
        {
            Logger.Log("BinaryValueEditorDialog.BinaryValueEditorDialog", Logger.RegistryViewerLoglevel);

            if (valueInfo is SubKeyValueInfo)
            {
                this.ValueInfo = valueInfo as SubKeyValueInfo;
                this.LWDataBinarydata.EditMode = DataGridViewEditMode.EditOnEnter;
            }
            else
            {
                this.regValueInfo = valueInfo as RegistryValueInfo;
                this.plugin       = _plugin;
                this.sKey         = key;
                this.LWDataBinarydata.EditMode = DataGridViewEditMode.EditProgrammatically;
            }

            this.txtValuename.ReadOnly = !IsAdd;
            this.bIsAdd = IsAdd;

            foreach (DataGridViewColumn column in LWDataBinarydata.Columns)
            {
                column.CellTemplate.KeyEntersEditMode(new KeyEventArgs(Keys.A | Keys.B | Keys.C | Keys.D | Keys.E | Keys.F));
            }

            SetInputData();
        }
        public RegistryEditorPage(RegistryViewerPlugin.NodeType nodetype)
        {
            InitializeComponent();

            // Create an instance of a ListView column sorter and assign it
            // to the ListView control.
            lvwColumnSorter = new ListViewColumnSorter();
            //this.lvRegistryPage.ListViewItemSorter = lvwColumnSorter;

            //this.picture.Image = (Image)CommonResources.GetIcon("agent_lgr");
            this.nodeType = nodetype;
        }
        public MultiStringValueEditorDialog(object valueInfo, bool IsAdd, RegistryViewerPlugin _plugin)
            : this()
        {
            if (valueInfo is SubKeyValueInfo)
                this.ValueInfo = valueInfo as SubKeyValueInfo;
            else
                this.regValueInfo = valueInfo as RegistryValueInfo;

            this.txtValuename.ReadOnly = !IsAdd;
            this.bIsAdd = IsAdd;
            this.plugin = _plugin;

            SetInputData();
        }
Exemple #4
0
        public MultiStringValueEditorDialog(object valueInfo, bool IsAdd, RegistryViewerPlugin _plugin)
            : this()
        {
            if (valueInfo is SubKeyValueInfo)
            {
                this.ValueInfo = valueInfo as SubKeyValueInfo;
            }
            else
            {
                this.regValueInfo = valueInfo as RegistryValueInfo;
            }

            this.txtValuename.ReadOnly = !IsAdd;
            this.bIsAdd = IsAdd;
            this.plugin = _plugin;

            SetInputData();
        }
        public override void SetPlugInInfo(IPlugInContainer container, IPlugIn pi, LACTreeNode treeNode, LWTreeView lmctreeview, CServerControl sc)
        {
            base.SetPlugInInfo(container, pi, treeNode, lmctreeview, sc);
            bEnableActionMenu = false;
            ShowHeaderPane(true);

            plugin = pi as RegistryViewerPlugin;

            SetListviewColumns();

            Refresh();
        }