public void AddNewSequenceViewer(Schedule _schedule) { SequenceCounter++; SequenceCtrl seqCtrl = new SequenceCtrl(_schedule, true); SequenceLoader.Controls.Add(new SequenceItem(seqCtrl, SequenceCounter)); AppHistory his = new AppHistory { SysActionCode = (int)(SysActionCode.VIEW_SEQUENCE), Remark = $"PO:{(_schedule as Schedule).PoNumber}", }; SysHistoryQuery.AddNewAppHistory(his); }