private void SetQuotationStatus() { switch (SelectedQuotationStatusIndex) { case 0: Quotation.ChangeStatus(new QuotationStatus(DateTime.Now, QuotationStatusType.Created)); break; case 1: Quotation.ChangeStatus(new QuotationStatus(DateTime.Now, QuotationStatusType.Sent)); break; case 2: Quotation.ChangeStatus(new QuotationStatus(DateTime.Now, QuotationStatusType.Lost)); break; case 3: Quotation.ChangeStatus(new QuotationStatus(DateTime.Now, QuotationStatusType.Confirmed)); break; case 4: Quotation.ChangeStatus(new QuotationStatus(DateTime.Now, QuotationStatusType.Canceled)); break; default: break; } }