Пример #1
0
        public void RemoveDealClient()
        {
            try
            {
                //_investorContext.DealClients.Remove(SelectedDealClient);
                DealClients.Remove(SelectedDealClient);
                //_investorContext.SaveChanges();

                //DATABASE
            }
            catch (ArgumentNullException)
            {
                MessageBox.Show("Please, select contract!");
            }
        }
Пример #2
0
        public void AddDealClient()
        {
            try
            {
                NewDealClient.ClientId   = SelectedClient.Id;
                NewDealClient.ClientName = SelectedClient.Name;
                NewDealClient.DealId     = SelectedDeal.Id;
                NewDealClient.DealSubs   = SelectedDeal.Subscription;
                DealClients.Add(NewDealClient);
                //_investorContext.DealClients.Add(NewDealClient);
                //_investorContext.SaveChanges();

                //DATABASE
            }
            catch (ArgumentNullException)
            {
                MessageBox.Show("Sure, you complete all strings");
            }
        }