private void AddBusiness(object sender, RoutedEventArgs e) { StatusRow.Title = "AddBuisness"; businessAddEditWindow = new BusinessAddEditWindow(this); businessAddEditWindow.DataContext = null; BusinessListView.SelectedItem = null; businessAddEditWindow.ShowDialog(); }
private void editBusiness(object sender, MouseButtonEventArgs e) { Business rc = BusinessListView.SelectedItem as Business; if (rc != null) { StatusRow.Title = "EditBuisness"; businessAddEditWindow = new BusinessAddEditWindow(this); businessAddEditWindow.ShowDialog(); } }