Exemplo n.º 1
0
        //company add olunmasi ucun CustomerWPF cagirilmasi
        private void CompanyAdd_OnClick(object sender, RoutedEventArgs e)
        {
            CustomerWPF custom = new CustomerWPF();

            custom.AddButton();
            custom.UserID = currentUserID;
            custom.Show();
        }
Exemplo n.º 2
0
        //Company update olunmasi ucun doldurulma
        private void btnCompanyUpdate_Click(object sender, RoutedEventArgs e)
        {
            CustomerWPF c = new CustomerWPF();

            Customer customer = cmbCompany.SelectedItem as Customer;

            c.UpdateButton();
            c.Title = "Yenilə";
            c.txtCompanyName.Text = customer.CustomerName;
            c.AllCompany          = this;
            c.ModelCustomer       = db.Customers.Find(customer.CustomerId);
            c.ShowDialog();
        }