private void loginAsUser(TimeSpan time) { service.toggleControlPanel(CONTROLPANEL_STATUS); service.toggleCMD(CMD_STATUS); startUser(); bw.CancelAsync(); this.Hide(); System.Windows.Window window = new TimerBox(time); window.Show(); }