Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="Message"></param>
        protected void HandleGetClientMessage(GetClientMessage Message)
        {
            // set connection state
            connectionState = ConnectionState.Authenticated;

            // log
            Logger.Log(MODULENAME, LogType.Info, "ConnectionState: Authenticated");
        }
Esempio n. 2
0
        /// <summary>
        /// Handler for "GetClient" message, your minor/major versions don't match server.
        /// </summary>
        /// <param name="Message"></param>
        protected override void HandleGetClientMessage(GetClientMessage Message)
        {
            // tell user about mismatching major/minor version
            MessageBox.Show(APPVERSIONMISMATCH);

            // close connection, we're not going to download the proposed meridian.exe
            ServerConnection.Disconnect();

            // reset logincontrol
            MainForm.LoginControl.ConnectedState = false;
        }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="Message"></param>
        protected override void HandleGetClientMessage(GetClientMessage Message)
        {
            // server proposed client update
            // adjust major/min version in configuration.xml

            // close connection and exit
            ServerConnection.Disconnect();
            IsRunning = false;

            Log("ERROR", LOG_APPVERSIONERROR);
            Thread.Sleep(SLEEPAFTERERROR);
        }
Esempio n. 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Message"></param>
 protected override void HandleGetClientMessage(GetClientMessage Message)
 {
     ui.ShowAppVersionError();
 }