/// <summary> /// コンストラクタです。 /// </summary> /// <param name="name">項目名</param> /// <param name="personCommand">実行コマンド</param> public TreeMenuNode(string name, TreeMenuNodeCommand personCommand = null) { Name = name; Path = name; if (personCommand is null) { LeftClickCommand = null; } else { LeftClickCommand = personCommand; } }
/// <summary> /// コンストラクタです。 /// </summary> /// <param name="name">項目名</param> /// <param name="personCommand">実行コマンド</param> public TreeMenuNode(string name, string hintText, TreeMenuNodeCommand personCommand = null) { Name = name; Path = name; if (hintText != null && hintText != "") { HintText = hintText; } if (personCommand is null) { LeftClickCommand = new TreeMenuNodeCommand(); } else { LeftClickCommand = personCommand; } }