Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.Time_Traker = ((TimeTracker.MainWindow)(target));
         return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
        protected override void OnStartup( StartupEventArgs e )
        {
            base.OnStartup( e );

            #if DEBUG
            var provider = new DummyCurrentTimeProvider();
            #else
            //var provider = new StandardCurrentTimeProvider();
            var provider = new TimeFromTextProvider();
            #endif
            var m = new MainWindow(provider);

            provider.TextBox = m.startTime;

            m.Show();
        }