//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();
        }
        //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();
        }