コード例 #1
0
ファイル: TreeView.cs プロジェクト: pcdummy/Eto
 public virtual void OnBeforeLabelEdit(TreeViewItemCancelEventArgs e)
 {
     if (_BeforeLabelEdit != null)
     {
         _BeforeLabelEdit(this, e);
     }
 }
コード例 #2
0
ファイル: TreeView.cs プロジェクト: pcdummy/Eto
 public virtual void OnExpanding(TreeViewItemCancelEventArgs e)
 {
     if (_Expanding != null)
     {
         _Expanding(this, e);
     }
 }
コード例 #3
0
ファイル: TreeView.cs プロジェクト: pcdummy/Eto
 public virtual void OnCollapsing(TreeViewItemCancelEventArgs e)
 {
     if (_Collapsing != null)
     {
         _Collapsing(this, e);
     }
 }
コード例 #4
0
 /// <summary>
 /// Raises the label editing event.
 /// </summary>
 public void OnLabelEditing(TreeView widget, TreeViewItemCancelEventArgs e)
 {
     widget.Platform.Invoke(() => widget.OnLabelEditing(e));
 }
コード例 #5
0
 /// <summary>
 /// Raises the <see cref="LabelEditing"/> event.
 /// </summary>
 /// <param name="e">Event arguments</param>
 protected virtual void OnLabelEditing(TreeViewItemCancelEventArgs e)
 {
     Properties.TriggerEvent(LabelEditingEvent, this, e);
 }
コード例 #6
0
 /// <summary>
 /// Raises the <see cref="Collapsing"/> event.
 /// </summary>
 /// <param name="e">Event arguments</param>
 protected virtual void OnCollapsing(TreeViewItemCancelEventArgs e)
 {
     Properties.TriggerEvent(CollapsingEvent, this, e);
 }
コード例 #7
0
 /// <summary>
 /// Raises the label editing event.
 /// </summary>
 public void OnLabelEditing(TreeView widget, TreeViewItemCancelEventArgs e)
 {
     using (widget.Platform.Context)
         widget.OnLabelEditing(e);
 }
コード例 #8
0
ファイル: TreeView.cs プロジェクト: sami1971/Eto
 public virtual void OnExpanding(TreeViewItemCancelEventArgs e)
 {
     Properties.TriggerEvent(ExpandingEvent, this, e);
 }