public void Close()
 {
     if (CloseAction != null)
     {
         _ConditionBillViewModel = null;
         CloseAction();
     }
 }
        public static ConditionBillViewModel Intstace(ConditionBillModelViewModel condtion)
        {
            if (_ConditionBillViewModel == null)
            {
                _ConditionBillViewModel = new ConditionBillViewModel(condtion);
            }

            return(_ConditionBillViewModel);
        }
        public static ConditionBillViewModel Intstace(string ContractCode, double price, string pricetype, int num)
        {
            if (_ConditionBillViewModel == null)
            {
                _ConditionBillViewModel = new ConditionBillViewModel(ContractCode, price, pricetype, num);
            }

            return(_ConditionBillViewModel);
        }
 public void Clear()
 {
     _ConditionBillViewModel = null;
 }