Example #1
0
        private void DeleteLHSX()
        {
            var dialog = MsgBox.QuestionShow("确认删除?");

            if (dialog == MsgBoxResult.OK)
            {
                if (LHSXSelectedItem != null)
                {
                    LHSXCollection.Remove(LHSXSelectedItem);
                }
            }
            LHSXSelectedItem = null;
        }
Example #2
0
        private void AddLHSX()
        {
            LHSXInfo item = new LHSXInfo();

            item.srdy         = SRDYSelectedItem.Value;
            item.fzcy         = FZCSSelectedItem.Name;
            item.pdfw         = getCSSXXName();
            item.cjkt         = Iscj;
            item.dzzzTimeUnit = (RepeatUnitEnum)DZZXUnitSelectedIndex;
            item.dzzx         = DZZX + "-" + FunExt.GetRepeatUnitName(DZZXUnitSelectedIndex);
            item.gscTimeUnit  = (TimeUnitEnum)GSCUnitSelectedIndex;
            item.gsc          = GSC + "-" + FunExt.GetTimeUnitName(GSCUnitSelectedIndex);
            item.kscTimeUnit  = (TimeUnitEnum)KSCUnitSelectedIndex;
            item.ksc          = KSC + "-" + FunExt.GetTimeUnitName(KSCUnitSelectedIndex);
            LHSXCollection.Add(item);
        }