Example #1
0
        private void SaveEmail(Email email)
        {
            try
            {
                EmailInfo.Id = _serviceProxy.AddEmail(email);
                if (EmailInfo.Id != 0)
                {
                    Emails.Add(EmailInfo);
                    RaisePropertyChanged(nameof(EmailInfo));

                    MainWindow mw = new MainWindow();

                    mw.Reload();
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Данный Айди нельзя использовать");
            }
        }