コード例 #1
0
        void Initialize()
        {
            var app = MacUI.AppDelegate;

            app.MacUI.TestRunner.Run.NotifyStateChanged.StateChanged  += (sender, e) => CanRun = e;
            app.MacUI.TestRunner.Stop.NotifyStateChanged.StateChanged += (sender, e) => CanStop = e;

            UIBinding.Bind(app.MacUI.ServerManager.StatusMessage, ServerStatusMessage);
            UIBinding.Bind(app.MacUI.TestRunner.StatusMessage, ServerStatusMessage);

            SplitView.AddSubview(TestResultList);
            SplitView.AddSubview(TestResultDetails);

            app.SessionChangedEvent += (sender, e) => OnSessionChanged(e);

            app.Settings.SessionChangedEvent += (sender, e) => ReloadSession();
        }