public AddEditMechanicalComponentTypeDialog()
 {
     InitializeComponent();
     mMechanicalEquipmentComponentType = new MechanicalEquipmentComponentType();
     viewModel = new AddEditMechanicalComponentTypeViewModel(mMechanicalEquipmentComponentType);
     viewModel.View = this;
     DataContext = viewModel;
 }
 public AddEditMechanicalComponentTypeDialog(MechanicalEquipmentComponentType mc)
 {
     InitializeComponent();
     Title = "Edit Mechanical Component Type";
     mMechanicalEquipmentComponentType = mc;
     viewModel = new AddEditMechanicalComponentTypeViewModel(mMechanicalEquipmentComponentType);
     viewModel.View = this;
     DataContext = viewModel;
     Utils.ResetOriginalValues(this);
 }