/// <summary> /// 詳細コピーメソッド /// </summary> /// <returns>コピーデータ</returns> public CommandJsonObject Clone() { // 簡易コピー CommandJsonObject cloned = (CommandJsonObject)MemberwiseClone(); // 参照型フィールドの複製を作成する(簡易コピーを行う) if (Controls != null) { List <Item> ItemList = new List <Item>(); foreach (var i in Controls) { if (i != null) { ItemList.Add(i.Clone()); } } cloned.Controls = ItemList; } return(cloned); }
public CommandJsonObject GetListData() { Data = (CommandJsonObject)Form.CommandObj; return(Data); }
public ListSetting() : this(new CommandJsonObject()) { Data = new CommandJsonObject(); }
public ListSetting(CommandJsonObject srcDataObj) { Data = srcDataObj; Form = new FormMain(Data.Name, Data.Version); Form.CommandObj = Data; }