예제 #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();
        }
예제 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.WindowAddPerson = ((ReservationFootballStadiums.AddPerson)(target));
                return;

            case 2:
                this.LblName = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.TxtName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.LblSurname = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.TxtSurname = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.LblPhone = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.TxtPhone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.BtnAdd = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\AddPerson.xaml"
                this.BtnAdd.Click += new System.Windows.RoutedEventHandler(this.BtnAdd_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.LblEmail = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.TxtEmail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.BtnDelete = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\AddPerson.xaml"
                this.BtnDelete.Click += new System.Windows.RoutedEventHandler(this.BtnDelete_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.BtnUpdate = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\AddPerson.xaml"
                this.BtnUpdate.Click += new System.Windows.RoutedEventHandler(this.BtnUpdate_Click_1);

            #line default
            #line hidden
                return;

            case 13:
                this.lblentry = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }