using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Windows; namespace CountdownTimer { /// /// Interaction logic for App.xaml /// public partial class App : Application { // this has to be the worst way to do this ... public static string InitialTime; protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); InitialTime = e.Args[0]; } } }