public AddEditMilestoneTypeDialog()
        {
            InitializeComponent();

            var model = new AddEditMilestoneTypeModel {View = this};
            DataContext = model;
        }
        public AddEditMilestoneTypeDialog(int id)
        {
            InitializeComponent();

            var model = new AddEditMilestoneTypeModel(id) {View = this};
            model.DataLoaded += obj =>
            {
                DataContext = model;
                Utils.ResetOriginalValues(this);
            };
        }