예제 #1
0
        // BtnUpdate_Delete_Click eventi Contactlar ucun

        private void BtnUpdate_Delete_Click(object sender, RoutedEventArgs e)
        {
            if (CmbContacts.SelectedItem == null)
            {
                MessageBox.Show("sehv var");
                LblContacts.Foreground = Brushes.Red;
                return;
            }

            Fullname  vwReservs = CmbContacts.SelectedItem as Fullname;
            AddPerson update    = new AddPerson(this);

            LblContacts.Foreground  = Brushes.White;
            update.Title            = "Yenilə və ya Sil";
            update.lblentry.Content = "Şəxləri yenilə və ya sil";
            update.mw = this;
            update.ForUpdate();
            update.Contact = db.Contacts.Find(vwReservs.Id);
            update.FillAllFields();
            update.ShowDialog();
        }
예제 #2
0
        //Şəxsləri əlavə et butonu
        private void BtnPersonAdd_Click_1(object sender, RoutedEventArgs e)
        {
            AddPerson addPerson = new AddPerson(this);

            addPerson.ShowDialog();
        }