static void Main(string[] arguments) { ITwitterCredentials credentials = Login.Instance.getCredentials(); if (credentials == null) { credentials = newCredentials(); } ; if (credentials == null) { return; } Auth.SetCredentials(credentials); //AchiveClean.clean(); while (true) { Eraser.CreateEraser(15).StartErase(); Thread.Sleep(1000 * 60 * 10); } //var application = new Application //{ // StartupUri = new Uri("MainWindow.xaml", UriKind.RelativeOrAbsolute) //}; //application.Run(); }
public static Eraser CreateEraser(int leftTweet) { if (Auth.Credentials != null) { var o = new Eraser(); o.safe_index = leftTweet; return(o); } else { return(null); } }