public AddEditComponentTypeGroupDialog(List<string> existingGroupNames)
 {
     InitializeComponent();
     mComponentTypeGroup = new ComponentTypeGroup();
     mViewModel = new AddEditComponentTypeGroupViewModel(mComponentTypeGroup,existingGroupNames, 1) { View = this };
     DataContext = mViewModel;
     Utils.ResetOriginalValues(this);
 }
 public AddEditComponentTypeGroupDialog(ComponentTypeGroup componentTypeGroup, List<string> existingGroupNames, int ordinal)
 {
     InitializeComponent();
     Title = "Edit Group";
     mComponentTypeGroup = componentTypeGroup;
     mViewModel = new AddEditComponentTypeGroupViewModel(mComponentTypeGroup,existingGroupNames, ordinal) { View = this };
     DataContext = mViewModel;
     Utils.ResetOriginalValues(this);
 }