예제 #1
0
        private void AddInst()
        {
            var fm = new InstInfoDialog(mPack);

            fm.ShowDialog();
            DispInstList();
            DispPresetList();
        }
예제 #2
0
        private void PasteInst()
        {
            if (null == mClipboardInst)
            {
                return;
            }
            var fm = new InstInfoDialog(mPack, mClipboardInst);

            fm.ShowDialog();
            DispInstList();
        }
예제 #3
0
        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;
            }
        }