コード例 #1
0
        LoggingView GetMasterLoggingView()
        {
            var loggingView      = new LoggingView();
            var loggingViewModel = new LoggingViewModel(Dispatcher, new LoggerFacade(Logger.Instance, "Master Logging View"));

            loggingView.DataContext = loggingViewModel;
            return(loggingView);
        }
コード例 #2
0
ファイル: OdinPage.xaml.cs プロジェクト: Suprndm/odin
 public void OnStart <T>() where T : ORoot, new()
 {
     SKGLView.PaintSurface += SKGLView_PaintSurface;
     _oRoot = new T();
     _oRoot.ServicesRegistered += () =>
     {
         // Setup xaml dependant Stuff
         LoggingView.Setup();
     };
 }
コード例 #3
0
 public App()
 {
     InitializeComponent();
     loggingView  = new LoggingView();
     masterDetail = new MainMasterDetailPage();
     if (logged)
     {
         Current.MainPage = masterDetail;
     }
     else
     {
         Current.MainPage = loggingView;
     }
 }
コード例 #4
0
        LoggingView GetLoggingView()
        {
            var loggingView = new LoggingView();

            // Option 1: Pass in LoggerFacade with Group Id
            var loggingViewModel = new LoggingViewModel(Dispatcher, new LoggerFacade {
                GroupId = LoggerFacade.GetNewGroupId()
            });

            // Option 2: Pass Group Id in via Property Setter
            //if (loggingViewModel is IHaveLoggerGroup)
            //    (loggingViewModel as IHaveLoggerGroup).LogGroupId = LoggerFacade.GetNewGroupId();

            loggingView.DataContext = loggingViewModel;

            return(loggingView);
        }
コード例 #5
0
 public UnityLogger(LoggingView loggingView)
 {
     _lv = loggingView;
 }