internal void RaisePropertyChanged(WatchController item)
 {
     if (null != PropertyChanged)
     {
         PropertyChanged(item, new PropertyChangedEventArgs(""));
     }
 }
        /// <summary>
        /// Creates an instance of the class
        /// </summary>
        public AddinGuardControl()
        {
            try
            {
                InitializeComponent();
                if (!Program.IsDesign)
                {
                    panelDeactivatedElements.Location = panelRegistryValues.Location;
                    panelDeactivatedElements.Size = panelRegistryValues.Size;

                    labelColorLegendCaption.Location = labelIconLegendCaption.Location;
                    splitContainer1.Panel2.Controls.Add(panelInfos);
                    panelInfos.Location = panelRegistryValues.Location;
                    panelInfos.Size = panelRegistryValues.Size;
                    panelInfos.Visible = true;

                    panelColorLegend.Location = panelIconLegend.Location;
                    panelColorLegend.Size = panelIconLegend.Size;

                    _controller = new WatchController();
                    _controller.PropertyChanged += new PropertyChangedEventHandler(Controller_PropertyChanged);
                    _controller.WatchNotify.MessageFired += new EventHandler(WatchNotify_MessageFired);

                    pictureBoxNoAdmin.Visible = !Program.IsAdmin;
                    labelNoAdminHint.Visible = !Program.IsAdmin;
                    labelNoAdminHintIcon.Visible = !Program.IsAdmin;
                    _controller.ReadOnlyModeForMachineKeys = !Program.IsAdmin;

                }
            }
            catch (Exception exception)
            {
                Forms.ErrorForm.ShowError(exception,ErrorCategory.NonCritical, 1033);
            }
        }
Beispiel #3
0
        /// <summary>
        /// Creates an instance of the class
        /// </summary>
        public AddinGuardControl()
        {
            try
            {
                InitializeComponent();
                if (!Program.IsDesign)
                {
                    panelDeactivatedElements.Location = panelRegistryValues.Location;
                    panelDeactivatedElements.Size     = panelRegistryValues.Size;

                    labelColorLegendCaption.Location = labelIconLegendCaption.Location;
                    splitContainer1.Panel2.Controls.Add(panelInfos);
                    panelInfos.Location = panelRegistryValues.Location;
                    panelInfos.Size     = panelRegistryValues.Size;
                    panelInfos.Visible  = true;

                    panelColorLegend.Location = panelIconLegend.Location;
                    panelColorLegend.Size     = panelIconLegend.Size;

                    _controller = new WatchController();
                    _controller.PropertyChanged          += new PropertyChangedEventHandler(Controller_PropertyChanged);
                    _controller.WatchNotify.MessageFired += new EventHandler(WatchNotify_MessageFired);

                    pictureBoxNoAdmin.Visible              = !Program.IsAdmin;
                    labelNoAdminHint.Visible               = !Program.IsAdmin;
                    labelNoAdminHintIcon.Visible           = !Program.IsAdmin;
                    _controller.ReadOnlyModeForMachineKeys = !Program.IsAdmin;
                }
            }
            catch (Exception exception)
            {
                Forms.ErrorForm.ShowError(exception, ErrorCategory.NonCritical, 1033);
            }
        }
Beispiel #4
0
 internal DisabledValue(WatchController root, DisabledKey item, string valueName, object value)
 {
     _root = root;
     _parent = item;
     _valueName = valueName;
     _disabledItemName = GetDisabledItemName(value as string);
     _value = value;
 }
 public DisabledKey(WatchController parent, string name, RegistryKey rootKey, string registryPath)
 {
     _parent       = parent;
     _rootKey      = rootKey;
     _name         = name;
     _registryPath = registryPath;
     GetKeyValueCount();
 }
Beispiel #6
0
 internal AddinKeyValue(WatchController root, AddinKey parent, string valueName, RegistryValueKind valueKind, object value)
 {
     _root = root;
     _parent = parent;
     _valueName = valueName;
     _valueKind = valueKind;
     _value = value;
 }
 internal AddinKeyValue(WatchController root, AddinKey parent, string valueName, RegistryValueKind valueKind, object value)
 {
     _root      = root;
     _parent    = parent;
     _valueName = valueName;
     _valueKind = valueKind;
     _value     = value;
 }
 internal DisabledValue(WatchController root, DisabledKey item, string valueName, object value)
 {
     _root             = root;
     _parent           = item;
     _valueName        = valueName;
     _disabledItemName = GetDisabledItemName(value as string);
     _value            = value;
 }
Beispiel #9
0
 public DisabledKey(WatchController parent, string name, RegistryKey rootKey, string registryPath)
 {
     _parent = parent;
     _rootKey = rootKey;
     _name = name;
     _registryPath = registryPath;
     GetKeyValueCount();
 }
Beispiel #10
0
 public AddinsKey(WatchController parent,string name, RegistryKey rootKey, string registryPath)
 {
     _parent = parent;
     _rootKey = rootKey;
     _name = name;
     _registryPath = registryPath;
     _addinList = new List<AddinKey>();
     GetKeySubKeys();
 }
Beispiel #11
0
 internal AddinKey(WatchController root, AddinsKey item, string registryPath, string subKeyName)
 {
     _root         = root;
     _parent       = item;
     _registryPath = registryPath;
     _subKeyName   = subKeyName;
     GetKeyValueCount();
     GetValueInfos();
 }
Beispiel #12
0
 public AddinsKey(WatchController parent, string name, RegistryKey rootKey, string registryPath)
 {
     _parent       = parent;
     _rootKey      = rootKey;
     _name         = name;
     _registryPath = registryPath;
     _addinList    = new List <AddinKey>();
     GetKeySubKeys();
 }
Beispiel #13
0
 internal AddinKey(WatchController root, AddinsKey item, string registryPath, string subKeyName)
 {
     _root = root;
     _parent = item;
     _registryPath = registryPath;
     _subKeyName = subKeyName;
     GetKeyValueCount();
     GetValueInfos();
 }
Beispiel #14
0
 internal DisabledItems(WatchController parent)
 {
     _parent = parent;
 }
Beispiel #15
0
 internal AddinItems(WatchController parent)
 {
     _parent = parent;
 }
Beispiel #16
0
 internal DisabledItems(WatchController parent)
 {
     _parent = parent;
 }
Beispiel #17
0
 internal void RaisePropertyChanged(WatchController item)
 {
     if (null != PropertyChanged)
         PropertyChanged(item, new PropertyChangedEventArgs(""));
 }
Beispiel #18
0
 internal WatchNotify(WatchController parent)
 {
     _parent = parent;
     _trayIcon = new NotifyIcon(new System.ComponentModel.Container());
 }
 internal AddinItems(WatchController parent)
 {
     _parent = parent;
 }
Beispiel #20
0
 internal WatchNotify(WatchController parent)
 {
     _parent   = parent;
     _trayIcon = new NotifyIcon(new System.ComponentModel.Container());
 }