Exemplo n.º 1
0
        public static void Launch(string version, string email, string password)
        {
            var p       = new MainCore();
            var session = p.Login(email, password, true);

            p.start(session, version);
        }
Exemplo n.º 2
0
        public static string GetAccessToken(string password, string email)
        {
            var p       = new MainCore();
            var session = p.Login(email, password, true);

            LoggerUpdate("[Auth] Started getting access token");
            return(accessToken);
        }
Exemplo n.º 3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            loginPass = Password.Password;
            var p = new MainCore();

            var session = p.Login(loginEmail, loginPass, true);

            if (session != null)
            {
                p.start(session, versionSelected);
                LoginSuccess.Content   = "Login Successful!";
                LoginUnsuccess.Content = "";
            }
            else
            {
                LoginUnsuccess.Content = "Login Unsuccessful! Please check your email/password";
                LoginSuccess.Content   = "";
            }
        }