Exemple #1
0
        //-------------------------------------------------------------------


        //Phone CRUD butonları
        private void btnAddPhone_Click(object sender, RoutedEventArgs e)
        {
            CustomerPhoneContract customerPhone = new CustomerPhoneContract();

            customerPhone.CustomerId = customerDetail.Id;
            CustomerPhoneWindow.MainWindow addPhoneWindow = new CustomerPhoneWindow.MainWindow(customerPhone);
            addPhoneWindow.Show();
        }
Exemple #2
0
        private void btnUpdatePhone_Click(object sender, RoutedEventArgs e)
        {
            CustomerPhoneContract customerPhone = new CustomerPhoneContract();

            customerPhone.CustomerId = customerDetail.Id;
            if (dgCustomerPhone.SelectedItem == null)
            {
                MessageBox.Show("Lütfen Gridden güncellenecek Telefon adresini seçiniz."); return;
            }
            customerPhone            = dgCustomerPhone.SelectedItem as CustomerPhoneContract;
            customerPhone.CustomerId = customerDetail.Id;
            CustomerPhoneWindow.MainWindow addPhoneWindow = new CustomerPhoneWindow.MainWindow(customerPhone);
            addPhoneWindow.Show();
        }