Esempio n. 1
0
        private async void BtnNew_Click(object sender, RoutedEventArgs e)
        {
            var winPerson = new WinPerson();

            winPerson.ShowDialog();
            try
            {
                _personData = await DPerson.GetData();
            }
            catch (Exception exception)
            {
                Utility.MyMessageBox("خطا در بانک اطلاعاتی", "خطا در دریافت اطلاعات\n" + exception.Message);
                Close();
                return;
            }
            _personSearchData     = _personData;
            DgdPerson.ItemsSource = _personSearchData;
        }
        private void BtnPerson_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            var winPerson = new WinPerson();

            winPerson.ShowDialog();
        }