コード例 #1
0
 public void Init()
 {
     App.Current.DrawingToolkit = new Mock <IDrawingToolkit> ().Object;
     App.Current.ViewLocator    = new VAS.Core.MVVMC.ViewLocator();
     DrawingInit.ScanViews();
     LMDrawingInit.ScanViews();
 }
コード例 #2
0
ファイル: GUIToolkit.cs プロジェクト: kuggaa/longomatch-core
 private GUIToolkit()
 {
     MainWindow = new MainWindow(this);
     MainWindow.Hide();
     Scanner.ScanViews(App.Current.ViewLocator);
     DrawingInit.ScanViews();
     LMDrawingInit.ScanViews();
     VASUIMultimediaInit.ScanViews();
 }
コード例 #3
0
        public void TestViewInstanceCreation()
        {
            AnalysisEventButtonView analysisButtonView;
            TimerButtonView         timerButtonView;

            DrawingInit.ScanViews();
            App.Current.DrawingToolkit = new CairoBackend();

            Assert.DoesNotThrow(() => analysisButtonView = (AnalysisEventButtonView)App.Current.ViewLocator.Retrieve(dashboard.ViewModels [0].View));
            Assert.DoesNotThrow(() => timerButtonView    = (TimerButtonView)App.Current.ViewLocator.Retrieve(dashboard.ViewModels [5].View));
        }