Exemple #1
0
 internal void RaisePropertyChanged(WatchController item)
 {
     if (null != PropertyChanged)
     {
         PropertyChanged(item, new PropertyChangedEventArgs(""));
     }
 }
Exemple #2
0
        public AddinGuardControl()
        {
            try
            {
                InitializeComponent();
                if (!DesignMode)
                {
                    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              = !IsAdministrator();
                    labelNoAdminHint.Visible               = !IsAdministrator();
                    labelNoAdminHintIcon.Visible           = !IsAdministrator();
                    _controller.ReadOnlyModeForMachineKeys = !IsAdministrator();
                }
            }
            catch (Exception exception)
            {
                ErrorForm errorForm = new ErrorForm(exception, ErrorCategory.NonCritical, _currentLanguageID);
                errorForm.ShowDialog(this);
            }
        }
        public AddinGuardControl()
        {
            try
            {
                InitializeComponent();
                if (!DesignMode)
                {
                    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 = !IsAdministrator();
                    labelNoAdminHint.Visible = !IsAdministrator();
                    labelNoAdminHintIcon.Visible = !IsAdministrator();
                    _controller.ReadOnlyModeForMachineKeys = !IsAdministrator();
                }
            }
            catch (Exception exception)
            {
                ErrorForm errorForm = new ErrorForm(exception, ErrorCategory.NonCritical, _currentLanguageID);
                errorForm.ShowDialog(this);
            }
        }
Exemple #4
0
 internal AddinKeyValue(WatchController root, AddinKey parent, string valueName, RegistryValueKind valueKind, object value)
 {
     _root = root;
     _parent = parent;
     _valueName = valueName;
     _valueKind = valueKind;
     _value = value;
 }
Exemple #5
0
 internal DisabledValue(WatchController root, DisabledKey item, string valueName, object value)
 {
     _root             = root;
     _parent           = item;
     _valueName        = valueName;
     _disabledItemName = GetDisabledItemName(value as string);
     _value            = value;
 }
Exemple #6
0
 internal AddinKeyValue(WatchController root, AddinKey parent, string valueName, RegistryValueKind valueKind, object value)
 {
     _root      = root;
     _parent    = parent;
     _valueName = valueName;
     _valueKind = valueKind;
     _value     = value;
 }
Exemple #7
0
 internal DisabledValue(WatchController root, DisabledKey item, string valueName, object value)
 {
     _root = root;
     _parent = item;
     _valueName = valueName;
     _disabledItemName = GetDisabledItemName(value as string);
     _value = value;
 }
Exemple #8
0
 public DisabledKey(WatchController parent, string name, RegistryKey rootKey, string registryPath)
 {
     _parent       = parent;
     _rootKey      = rootKey;
     _name         = name;
     _registryPath = registryPath;
     GetKeyValueCount();
 }
Exemple #9
0
 internal AddinKey(WatchController root, AddinsKey item, string registryPath, string subKeyName)
 {
     _root         = root;
     _parent       = item;
     _registryPath = registryPath;
     _subKeyName   = subKeyName;
     GetKeyValueCount();
     GetValueInfos();
 }
Exemple #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();
 }
Exemple #11
0
 internal AddinKey(WatchController root, AddinsKey item, string registryPath, string subKeyName)
 {
     _root = root;
     _parent = item;
     _registryPath = registryPath;
     _subKeyName = subKeyName;
     GetKeyValueCount();
     GetValueInfos();
 }
Exemple #12
0
 internal AddinItems(WatchController parent)
 {
     _parent = parent;
 }
Exemple #13
0
 internal DisabledItems(WatchController parent)
 {
     _parent = parent;
 }
 internal DisabledItems(WatchController parent)
 {
     _parent = parent;
 }  
Exemple #15
0
 internal WatchNotify(WatchController parent)
 {
     _parent   = parent;
     _trayIcon = new NotifyIcon(new System.ComponentModel.Container());
 }
Exemple #16
0
 public DisabledKey(WatchController parent, string name, RegistryKey rootKey, string registryPath)
 {
     _parent = parent;
     _rootKey = rootKey;
     _name = name;
     _registryPath = registryPath;
     GetKeyValueCount();
 }
Exemple #17
0
 internal AddinItems(WatchController parent)
 {
     _parent = parent;
 }
Exemple #18
0
 internal WatchNotify(WatchController parent)
 {
     _parent = parent;
     _trayIcon = new NotifyIcon(new System.ComponentModel.Container());
 }
Exemple #19
0
 public AddinsKey(WatchController parent,string name, RegistryKey rootKey, string registryPath)
 {
     _parent = parent;
     _rootKey = rootKey;
     _name = name;
     _registryPath = registryPath;
     _addinList = new List<AddinKey>();
     GetKeySubKeys();
 }
Exemple #20
0
 internal void RaisePropertyChanged(WatchController item)
 {
     if (null != PropertyChanged)
         PropertyChanged(item, new PropertyChangedEventArgs(""));
 }