コード例 #1
0
 public AddEditDocumentDisciplineDialog(int id)
 {
     InitializeComponent();
     AddEditDocumentDisciplineModel model = new AddEditDocumentDisciplineModel(id);
     model.View = this;
     model.DataLoaded += () =>
         {
             DataContext = model;
             Utils.ResetOriginalValues(this);
         };
 }
コード例 #2
0
 public AddEditDocumentDisciplineDialog()
 {
     InitializeComponent();
     DataContext = new AddEditDocumentDisciplineModel { View = this };
 }