コード例 #1
0
        public AddEditMilestoneTypeDialog()
        {
            InitializeComponent();

            var model = new AddEditMilestoneTypeModel {View = this};
            DataContext = model;
        }
コード例 #2
0
        public AddEditMilestoneTypeDialog(int id)
        {
            InitializeComponent();

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