//Callback for TTUS Server Login Status Updates
        void m_TTUSAPI_OnLoginStatusUpdate(object sender, LoginStatusEventArgs e)
        {
            if (e.LoginResultCode == TTUSAPI.LoginResultCode.Success)
            {
                UpdateStatusBar("Login was Successful");

                m_TTUSAPI.Initialize();
            }
            else
            {
                UpdateStatusBar("Error:  Login failed");
            }
        }
 //Callback for TTUS Server Login Status Updates
 void m_TTUSAPI_OnLoginStatusUpdate(object sender, LoginStatusEventArgs e)
 {
     if (e.LoginResultCode == TTUSAPI.LoginResultCode.Success)
     {
         Console.WriteLine("Login was Successful");
         //We have successfully logged in, so request users
         m_TTUSAPI.Initialize();   //Initialize the API to get all of the User, Fix Adapter, Account, and MGT data
     }
     else
     {
         Console.WriteLine("Error:  Login failed");
     }
 }
예제 #3
0
 void m_TTUSAPI_OnLoginStatusUpdate(object sender, LoginStatusEventArgs e)
 {
     if (e.LoginResultCode == TTUSAPI.LoginResultCode.Success)
     {
         UpdateStatusBar("Login was Successful");
         Console.WriteLine("Login was Successful");
         //We have successfully logged in, so request users and FA Servers...
         m_TTUSAPI.Initialize();   //Initialize the API to get all of the User, Fix Adapter, Account, and MGT data
         m_TTUSAPI.GetProducts();
     }
     else
     {
         UpdateStatusBar("Error:  Login failed");
         Environment.Exit(0);
     }
 }