private void _reporter_UpgradeCompleted(object sender, UpgradeCompletedEventArgs e)
        {
            _reporter         = null;
            _upgrading        = false;
            _statusLabel.Text = "";
            UpdateUI();

            if (e.UpgradeSucceeded)
            {
                MessageBox.Show("Upgrade Succeeded!", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("Upgrade failed! Error: " + e.Message, "Error", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
            }
        }
        private void Handler_OnUpgradeCompleted(object sender, UpgradeCompletedEventArgs completeddata)
        {
            activeHandler = sender as WebSocketHttpServerHandler;
            var handler = OnOverlayConnected;

            if (handler != null)
            {
                handler(this, activeHandler.GetRemoteIPEndpoint().ToString());
            }

            foreach (var key in m_ModuleCSS.Keys)
            {
                ComposeCssAdditionMessage(key, m_ModuleCSS[key]);
            }
            foreach (var key in m_ModuleJS.Keys)
            {
                ComposeJSAdditionMessage(key, m_ModuleJS[key]);
            }
        }
Пример #3
0
        private void HandlerOnOnUpgradeCompleted(object sender, UpgradeCompletedEventArgs completeddata)
        {
            WebSocketHttpServerHandler obj = sender as WebSocketHttpServerHandler;

            _activeHandlers.Add(obj);
        }
Пример #4
0
 private void HandlerOnOnUpgradeCompleted(object sender, UpgradeCompletedEventArgs completeddata)
 {
     WebSocketHttpServerHandler obj = sender as WebSocketHttpServerHandler;
     _activeHandlers.Add(obj);
 }
Пример #5
0
        private void _reporter_UpgradeCompleted(object sender, UpgradeCompletedEventArgs e)
        {
            _reporter = null;
            _upgrading = false;
            _statusLabel.Text = "";
            UpdateUI();

            if(e.UpgradeSucceeded)
            {
                MessageBox.Show("Upgrade Succeeded!", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("Upgrade failed! Error: " + e.Message, "Error", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
            }
        }
 private void Handler_OnUpgradeCompleted(object sender, UpgradeCompletedEventArgs completeddata)
 {
     activeHandler = sender as WebSocketHttpServerHandler;
 }