private void startButton_Click(object sender, RoutedEventArgs e) { ExerciceAndRestTimeShenanigans(); timerWin = new TimerWindow(exerciseTime, restTime, this); timerWin.Show(); this.Hide(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.HIIT_Timer = ((HIIT_Timer.TimerWindow)(target)); #line 8 "..\..\TimerWindow.xaml" this.HIIT_Timer.Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden #line 8 "..\..\TimerWindow.xaml" this.HIIT_Timer.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 8 "..\..\TimerWindow.xaml" this.HIIT_Timer.KeyDown += new System.Windows.Input.KeyEventHandler(this.HIIT_Timer_KeyDown); #line default #line hidden return; case 2: this.timeLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.stageLabel = ((System.Windows.Controls.Label)(target)); return; case 4: this.exerciseLabel = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }