public AddEditExistingElectricalComponentPropertyDialog(ElectricalEquipmentComponentType electricalEquipmentComponentType)
        {
            InitializeComponent();

            AddEditExistingElectricalComponentPropertyViewModel model =new AddEditExistingElectricalComponentPropertyViewModel(electricalEquipmentComponentType) {Ordinal = "0"};
            model.DataLoaded +=
                () =>
                {
                    model.View = this;
                    DataContext = model;
                };
        }
        public AddEditExistingElectricalComponentPropertyDialog(int componentPropertyId)
        {
            InitializeComponent();

            AddEditExistingElectricalComponentPropertyViewModel model = new AddEditExistingElectricalComponentPropertyViewModel(componentPropertyId);
            model.View = this;
            model.DataLoaded +=
                () =>
                    {
                        DataContext = model;
                        Utils.ResetOriginalValues(this);
                    };
        }