private void AddInst() { var fm = new InstInfoDialog(mPack); fm.ShowDialog(); DispInstList(); DispPresetList(); }
private void PasteInst() { if (null == mClipboardInst) { return; } var fm = new InstInfoDialog(mPack, mClipboardInst); fm.ShowDialog(); DispInstList(); }
private void MultiSelectInst() { var lst = GetSelectedInsts(); if (1 == lst.Count) { var fm = new InstInfoDialog(mPack, lst[0]); fm.ShowDialog(); DispInstList(); return; } if (1 < lst.Count) { var inst = new Inst(); var fm = new InstInfoDialog(mPack, inst); fm.ShowDialog(); foreach (var p in lst) { p.Info.Category = inst.Info.Category; } DispInstList(); return; } }