예제 #1
0
            /// <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);
            }
예제 #2
0
 public CommandJsonObject GetListData()
 {
     Data = (CommandJsonObject)Form.CommandObj;
     return(Data);
 }
예제 #3
0
 public ListSetting() : this(new CommandJsonObject())
 {
     Data = new CommandJsonObject();
 }
예제 #4
0
 public ListSetting(CommandJsonObject srcDataObj)
 {
     Data            = srcDataObj;
     Form            = new FormMain(Data.Name, Data.Version);
     Form.CommandObj = Data;
 }