private void CreateCustomer(object sender, RoutedEventArgs e) { Views.SingleCustomer custWindow = new Views.SingleCustomer(new Models.Customer()); custWindow.Show(); }
private void TEST_button_Click(object sender, RoutedEventArgs e) { Views.SingleCustomer custWindow = new Views.SingleCustomer(Utilities.CustomerManager.customerList.Single(x => x.ID == 3)); custWindow.Show(); }
private void DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Models.Customer c = (Models.Customer)CustomerGrid.SelectedItem; SingleCustomer scWindow = new SingleCustomer(c); scWindow.Show(); }