Пример #1
0
 public static TrainingSideTool Get()
 {
     if (instance == null)
     {
         instance = new TrainingSideTool();
     }
     return(instance);
 }
Пример #2
0
        public TrainingSideTool()
        {
            TrainingSideToolViewModel tstvm = TrainingSideToolViewModel.Get();

            this.InitializeComponent();
            this.DataContext = tstvm;
            SideToolsViewModel.Get().setTrainingV(this);
            SideToolsViewModel.Get().setTrainingVM(tstvm);
            instance = this;
        }