Exemplo n.º 1
0
 void OnLabelEdited(object sender, DynamicListEventArgs e)
 {
     if (((ISetText)content).CanSetText)
     {
         ((ISetText)content).SetText(((DynamicListItem)sender).Text);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Called when plus is pressed in debugger tooltip.
 /// Sets the data to be show in the next level.
 /// </summary>
 protected override void OnExpanding(DynamicListEventArgs e)
 {
     base.OnExpanding(e);
     if (process.IsRunning)
     {
         MessageService.ShowMessage(
             "${res:MainWindow.Windows.Debug.LocalVariables.CannotExploreVariablesWhileRunning}",
             "${res:MainWindow.Windows.Debug.LocalVariables}"
             );
         return;
     }
     try {
         LoadChilds();
     } catch (AbortedBecauseDebuggeeResumedException) {
     }
 }
Exemplo n.º 3
0
 protected virtual void OnShown(DynamicListEventArgs e)
 {
     if (this.Shown != null)
     {
         this.Shown(this, e);
     }
 }
Exemplo n.º 4
0
 protected virtual void OnHidden(DynamicListEventArgs e)
 {
     if (this.Hidden != null)
     {
         this.Hidden(this, e);
     }
 }
Exemplo n.º 5
0
 protected virtual void OnPlusClick(object sender, DynamicListEventArgs e)
 {
     if (this.blockClickEvent)
     {
         this.blockClickEvent = false;
     }
     else
     {
         int num5;
         this.OnExpanding(e);
         ChildForm frm = new ChildForm();
         frm.Closed += delegate {
             this.blockClickEvent = true;
             if (this.expandedIn != null)
             {
                 this.expandedIn.Remove(e.List);
             }
             this.OnCollapsed(e);
             this.plus.RaiseItemChanged();
             Timer timer = new Timer {
                 Interval = 0x55
             };
             timer.Tick += delegate (object sender2, EventArgs e2) {
                 ((Timer) sender2).Stop();
                 ((Timer) sender2).Dispose();
                 this.blockClickEvent = false;
             };
             timer.Start();
         };
         Point point = e.List.PointToScreen(e.List.GetPositionFromRow(this));
         point.Offset(e.List.Columns[0].Width, base.Height);
         frm.StartPosition = FormStartPosition.Manual;
         frm.BackColor = this.childBorderColor;
         frm.Location = point;
         frm.ShowInTaskbar = false;
         frm.Owner = e.List.FindForm();
         VerticalScrollContainer container = new VerticalScrollContainer();
         container.Dock = DockStyle.Fill;
         DynamicList list = new DynamicList(this.childColumns, this.childRows);
         list.Dock = DockStyle.Fill;
         list.KeyDown += delegate (object sender2, KeyEventArgs e2) {
             if (e2.KeyData == Keys.Escape)
             {
                 frm.Close();
                 e.List.FindForm().Focus();
             }
         };
         container.Controls.Add(list);
         frm.Controls.Add(container);
         int num = Screen.FromPoint(point).WorkingArea.Bottom - point.Y;
         num -= frm.Size.Height - frm.ClientSize.Height;
         int num2 = list.TotalRowHeight + 4;
         int height = Math.Min(num2, num);
         if (height < num2)
         {
             int num4 = Math.Min(100, num2 - height);
             height += num4;
             frm.Top -= num4;
         }
         using (Graphics graphics = list.CreateGraphics())
         {
             num5 = 8 + list.GetRequiredWidth(graphics);
         }
         int num6 = Screen.FromPoint(point).WorkingArea.Right - point.X;
         if (num5 > num6)
         {
             int num7 = Math.Min(100, num5 - num6);
             num5 = num6 + num7;
             frm.Left -= num7;
         }
         frm.ClientSize = new Size(num5, height);
         frm.MinimumSize = new Size(100, Math.Min(50, height));
         isOpeningChild = true;
         frm.Show();
         isOpeningChild = false;
         list.Focus();
         if (this.expandedIn != null)
         {
             this.expandedIn.Add(e.List);
         }
         this.OnExpanded(e);
         this.plus.RaiseItemChanged();
     }
 }
Exemplo n.º 6
0
 protected virtual void OnExpanding(DynamicListEventArgs e)
 {
     if (this.Expanding != null)
     {
         this.Expanding(this, e);
     }
 }
Exemplo n.º 7
0
 protected virtual void OnCollapsed(DynamicListEventArgs e)
 {
     if (this.Collapsed != null)
     {
         this.Collapsed(this, e);
     }
 }