Beispiel #1
0
        private void Window_ActivePowerView_Load(object sender, EventArgs e)
        {
            _this = this;

            typeof(TreeView).InvokeMember("DoubleBuffered",
                                          BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic,
                                          null, TV_PowerView, new object[] { true });

            TV_PowerView.Width  = this.Width - _TVWitdhOffset;
            TV_PowerView.Height = this.Height - _TVHeightOffset;
        }
        private void Window_ActivePowerView_Load(object sender, EventArgs e)
        {
            _this = this;

            typeof(TreeView).InvokeMember("DoubleBuffered",
    BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic,
    null, TV_PowerView, new object[] { true });

            TV_PowerView.Width = this.Width - _TVWitdhOffset;
            TV_PowerView.Height = this.Height - _TVHeightOffset;
        }
Beispiel #3
0
 private void Window_ActivePowerView_Closed(object sender, EventArgs e)
 {
     Store_UpdatedPowers();
     _this = null;
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (Window_ActivePowerView._this == null)
     {
         Window_ActivePowerView APV = new Window_ActivePowerView();
         APV.Show();
     }
 }
 private void Window_ActivePowerView_Closed(object sender, EventArgs e)
 {
     
     Store_UpdatedPowers();
     _this = null;
 }