private void Button_Click(object sender, RoutedEventArgs e) { MediaEdit.AddCustomerWindow acw = new AddCustomerWindow(); acw.vm_CustomerEditWindow.IsEdit = false; acw.ShowDialog(); DataBinding(); }
private void editmenu_Click(object sender, RoutedEventArgs e) { MediaEdit.AddCustomerWindow acw = new AddCustomerWindow(); acw.vm_CustomerEditWindow.CustomerModel = CustomerLbox.Items[CustomerLbox.SelectedIndex] as AMS.Model.AMS_AdCustomer; acw.vm_CustomerEditWindow.IsEdit = true; acw.ShowDialog(); DataBinding(); }