private async void BtnAddDoctor_Click(object sender, RoutedEventArgs e) { var winDoctor = new WinDoctor(); winDoctor.ShowDialog(); try { _doctorData = await DDoctor.GetViewData(); } catch (Exception exception) { Utility.MyMessageBox("خطا در بانک اطلاعاتی", "خطا در دریافت اطلاعات\n" + exception.Message); Close(); return; } _doctorSearchData = _doctorData; DgdDoctor.ItemsSource = _doctorSearchData; }
private void BtnDoctor_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { var winDoctor = new WinDoctor(); winDoctor.Show(); }