public AddEditControlSystemTypeDialog()
        {
            var model = new AddEditControlSystemTypeModel();
            model.View = this;
            this.DataContext = model;

            InitializeComponent();
        }
        public AddEditControlSystemTypeDialog(int id)
        {
            InitializeComponent();

            AddEditControlSystemTypeModel model = new AddEditControlSystemTypeModel(id) { View = this };
            model.DataLoaded += (s1) =>
                {
                    DataContext = model;
                    Utils.ResetOriginalValues(this);
                };
        }