mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-23 03:39:43 -10:00
70 lines
1.0 KiB
C#
70 lines
1.0 KiB
C#
//
|
|
// System.Windows.Forms.NodeLabelEditEventArgs.cs
|
|
//
|
|
// Author:
|
|
// stubbed out by Paul Osman ([email protected])
|
|
// Partially completed by Dennis Hayes ([email protected])
|
|
// Gianandrea Terzi ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc
|
|
//
|
|
|
|
namespace System.Windows.Forms {
|
|
|
|
// <summary>
|
|
//
|
|
// </summary>
|
|
|
|
public class NodeLabelEditEventArgs : EventArgs {
|
|
|
|
#region Fields
|
|
|
|
private TreeNode node;
|
|
private string label = "";
|
|
private bool canceledit = false;
|
|
|
|
#endregion
|
|
|
|
//
|
|
// --- Constructor
|
|
//
|
|
|
|
public NodeLabelEditEventArgs(TreeNode node)
|
|
{
|
|
this.node = node;
|
|
}
|
|
|
|
public NodeLabelEditEventArgs(TreeNode node, string label)
|
|
{
|
|
this.node = node;
|
|
this.label = label;
|
|
}
|
|
|
|
#region Public Properties
|
|
|
|
public bool CancelEdit {
|
|
get {
|
|
return canceledit;
|
|
}
|
|
set {
|
|
canceledit = value;
|
|
}
|
|
}
|
|
|
|
public string Label
|
|
{
|
|
get {
|
|
return label;
|
|
}
|
|
}
|
|
|
|
public TreeNode Node {
|
|
get {
|
|
return node;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|