// インスタンス作成
 public static EditModeMapAreaInnerViewModel CreateInstance(
     MapAreaInnerView mapAreaInnerView,
     EditModeViewModel parent)
 {
     var instance = new EditModeMapAreaInnerViewModel();
     instance.Parent = parent;
     instance.SetView(mapAreaInnerView);
     return instance;
 }
Ejemplo n.º 2
0
 // インスタンス作成
 public static EditModeViewModel CreateInstance()
 {
     var instance = new EditModeViewModel();
     instance.EditModeMapAreaInnerViewModel =
         EditModeMapAreaInnerViewModel.CreateInstance(
         MainWindow.EditModePanel.EditModeMapAreaOuterPanel.MapAreaInnerView, instance);
     //instance.ProblemModel = new ProblemModel();
     return instance;
 }
 public static EditPointQuestionItemViewModel CreateInstance(EditModeViewModel parent)
 {
     var instance = new EditPointQuestionItemViewModel();
     instance.Parent = parent;
     instance.Init(
         new EditPointQuestionItemView(),
         MainWindow.EditModePanel.EditModeMapAreaOuterPanel.MapAreaInnerView.Root);
     instance.Size = new Size(16, 16);
     //instance.EditModeAnswerViewModel = EditModeAnswerViewModel.CreateInstance(
     //    instance.Model.Answer,
     //    MainWindow.EditModePanel.InterFacePanel.editModeAnswerView1);
     return instance;
 }