コード例 #1
0
        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();
        }
コード例 #2
0
        public ResourceListDialog(object valueInfo, bool IsAdd)
            : this()
        {
            Logger.Log("ResourceListDialog, Inside Constructor", Logger.RegistryViewerLoglevel);

            if (valueInfo is SubKeyValueInfo)
            {
                this.ValueInfo = valueInfo as SubKeyValueInfo;
            }
            else
            {
                this.regValueInfo = valueInfo as RegistryValueInfo;
            }

            SetInputData();
        }
コード例 #3
0
        public StringEditorDialog(object valueInfo, bool IsAdd)
            : this()
        {
            if (valueInfo is SubKeyValueInfo)
            {
                this.ValueInfo = valueInfo as SubKeyValueInfo;
            }
            else
            {
                this.regValueInfo = valueInfo as RegistryValueInfo;
            }

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

            SetInputData();
        }
コード例 #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();
        }