public CustomerEditViewModel(CustomerTabViewModel parentViewModel, Customer customer)
 {
     ContextualTabGroup = parentViewModel.ContextualTabGroup;
     Customer = customer;
     TabItem = new ContextualTabItem(this) { DataContext = this };
     tabContent = new ContextualTabContent() { DataContext = this };
     ParentViewModel = parentViewModel;
     ContextualTabList = new ObservableCollection<TabItem>();
     ContextualTabList.Add(new EditView.EditViewTabItem());
     EditMode = true;
 }
 public CustomerEditViewModel(CustomerTabViewModel parentViewModel, int ID = -1)
 {
     ContextualTabGroup = parentViewModel.ContextualTabGroup;
     Customer = new Core.Customers.Customer();
     TabItem = new ContextualTabItem(this) { DataContext = this };
     tabContent = new ContextualTabContent() { DataContext = this };
     ParentViewModel = parentViewModel;
     ContextualTabList = new ObservableCollection<TabItem>();
     ContextualTabList.Add(new EditView.EditViewTabItem());
     if (ID != -1)
     {
         Customer.CustomerID = ID.ToString();
     }
     EditMode = false;
 }