Esempio n. 1
0
        private void btnIncludeEdit_Click(object sender, EventArgs e)
        {
            if (this.listView2.SelectedItems != null && this.listView2.SelectedItems.Count > 0)
            {
                var lvi = this.listView2.SelectedItems[0];
                if (lvi != null && lvi.Tag != null)
                {
                    var rule     = lvi.Tag as RegistryKey;
                    var copyFrom = lvi.Tag as InheritedVariableContainer;

                    if (rule != null)
                    {
                        using (var f = new RegistryKeyEditForm())
                        {
                            f.Value = rule;

                            if (f.ShowDialog(this) == DialogResult.OK)
                            {
                                this.Populate(lvi, rule);
                            }
                        }
                    }
                }
            }
        }
Esempio n. 2
0
 private void btnIncludeAdd_Click(object sender, EventArgs e)
 {
     using (var f = new RegistryKeyEditForm())
     {
         if (f.ShowDialog(this) == DialogResult.OK)
         {
             this.Add(f.Value);
         }
     }
 }
Esempio n. 3
0
 private void btnIncludeAdd_Click(object sender, EventArgs e)
 {
     using (var f = new RegistryKeyEditForm())
     {
         if (f.ShowDialog(this) == DialogResult.OK)
         {
             this.Add(f.Value);
         }
     }
 }
Esempio n. 4
0
        private void btnIncludeEdit_Click(object sender, EventArgs e)
        {
            if (this.listView2.SelectedItems != null && this.listView2.SelectedItems.Count > 0)
            {
                var lvi = this.listView2.SelectedItems[0];
                if (lvi != null && lvi.Tag != null)
                {
                    var rule = lvi.Tag as RegistryKey;
                    var copyFrom = lvi.Tag as InheritedVariableContainer;

                    if (rule != null)
                    {
                        using (var f = new RegistryKeyEditForm())
                        {
                            f.Value = rule;

                            if (f.ShowDialog(this) == DialogResult.OK)
                            {
                                this.Populate(lvi, rule);
                            }
                        }
                    }
                }
            }
        }