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();
        }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #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();
        }