Exemplo n.º 1
0
        private void FSTI_Login()
        {
            string message = null; // used to hold a return message, from the logon

            int status;            // receives the return value from the logon call

            if (!FSTI_Is_Loged)
            {
                status = _fstiClient.Logon(FSUser, FSPass, ref message);
                if (status > 0)
                {
                    FSTI_ErrorMsg = "Invalid user id or password";
                    FSTI_Is_Loged = false;
                }
                else
                {
                    FSTI_Is_Loged = true;
                }
            }
        }
Exemplo n.º 2
0
        private void FS_Login_Client()
        {
            string message = null; // used to hold a return message, from the logon
            int    status;         // receives the return value from the logon call

            if (!FSTI_loged)
            {
                status = _fstiClient.Logon(FS_User.Text, FS_Pass.Text, ref message);
                if (status > 0)
                {
                    MessageBox.Show("Invalid user id or password");
                }
                else
                {
                    FSTI_Login.Enabled       = false;
                    Server_Start.Enabled     = true;
                    FSTI_CloseClient.Enabled = true;
                    FSTI_loged = true;
                }
            }
        }