public WttSubcDtViewModel() { this.LoadedCommand = new DelegateCommand <object>(OnLoaded); this.SaveCommand = new DelegateCommand <object>(OnSave); this.DeleteCommand = new DelegateCommand <object>(OnDelete); //행추가 this.AddCommand = new DelegateCommand <object>(delegate(object obj) { WttSubcDt addrow = new WttSubcDt(); GrdLst.Add(addrow); addrow.CHK = "Y"; }); }
public PdjtStockViewModel() { this.LoadedCommand = new DelegateCommand <object>(OnLoaded); this.SaveCommand = new DelegateCommand <object>(OnSave); this.DelCommand = new DelegateCommand <object>(OnDelete); //행추가 this.AddCommand = new DelegateCommand <object>(delegate(object obj) { PdjtInDtl addrow = new PdjtInDtl(); GrdLst.Add(addrow); addrow.CHK = "Y"; }); }
public PdjtHtViewModel() { this.LoadedCommand = new DelegateCommand <object>(OnLoaded); this.SaveCommand = new DelegateCommand <object>(OnSave); this.DelCommand = new DelegateCommand <object>(OnDelete); //행추가 this.AddCommand = new DelegateCommand <object>(delegate(object obj) { PdjtHtDtl row = new PdjtHtDtl(); row.SCL_NUM = Convert.ToInt16(SCL_NUM); row.FTR_CDE = FTR_CDE; row.FTR_IDN = Convert.ToInt16(FTR_IDN); row.SEQ = Convert.ToInt16(SEQ); GrdLst.Add(row); row.CHK = "Y"; }); }