public AddEditCalibrationPropertyDialog()
        {
            InitializeComponent();

            AddEditCalibrationPropertyViewModel model = new AddEditCalibrationPropertyViewModel();
            model.View = this;
            DataContext = model;
            Utils.ResetOriginalValues(this);
        }
        public AddEditCalibrationPropertyDialog(int calibrationPropertyId)
        {
            InitializeComponent();

            Title = "Edit Calibration Property";
            AddEditCalibrationPropertyViewModel model = new AddEditCalibrationPropertyViewModel(calibrationPropertyId);
            model.View = this;
            model.DataLoaded += () =>
                {
                    DataContext = model;
                    Utils.ResetOriginalValues(this);
                };
        }