예제 #1
0
 /// <summary>
 /// Gets the unique instance of the valutech userlog client
 /// </summary>
 /// <returns></returns>
 public static ValutechUserLogClient GetInstance()
 {
     if (instance == null)
     {
         instance = new ValutechUserLogClient();
     }
     return(instance);
 }
예제 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public LoginForm()
        {
            InitializeComponent();
            this.ActiveControl = this.userTextBox;
            this.AcceptButton  = this.loginButton;

            client            = ValutechUserLogClient.GetInstance();
            client.LoggedOut += new ValutechUserLogClient.LoggedOutEventHandler(client_LoggedOut);

            SetEnabledStates(client.Logged);
        }