private void RealtorLi_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            SecurityContext.idRealtor = int.Parse((dtRealtor.Rows[RealtorLi.SelectedIndex].ItemArray[0].ToString()));

            CurrentRealtor cur = new CurrentRealtor();

            this.Hide();
            cur.Show();
        }
Пример #2
0
        private void RealtorLi_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            try
            {
                SecurityContext.idRealtor = int.Parse((dtRealtor.Rows[RealtorLi.SelectedIndex].ItemArray[0].ToString()));

                CurrentRealtor cur = new CurrentRealtor();
                this.Hide();
                cur.Show();
            }
            catch
            {
                MessageBox.Show("Вы пытаетесь выбрать пустое поле");
                RealtorLi.ItemsSource = dtRealtor.DefaultView;
            }
        }