예제 #1
0
        private void refreshGoogleToken()
        {
            GoogleOAuthForm form = new GoogleOAuthForm();

            form.ShowDialog();
            connection = new GoogleConnection(form.Result.Token);
            StreamWriter sw = new StreamWriter("token");

            sw.WriteLine(form.Result.Token);
            sw.Close();
        }
        private static IConnection refreshGoogleToken()
        {
            IConnection     connection;
            GoogleOAuthForm form = new GoogleOAuthForm();

            form.ShowDialog();
            connection = new GoogleConnection(form.Result.Token);
            StreamWriter sw = new StreamWriter("token");

            sw.WriteLine(form.Result.Token);
            sw.Close();
            return(connection);
        }