示例#1
0
 public virtual void OnAutoReconnecting(int disconnectReason, int attemptCount, out MSTSCLib.AutoReconnectContinueState pArcContinueStatus) {
     IMsTscAxEvents_OnAutoReconnectingEvent onautoreconnectingEvent = new IMsTscAxEvents_OnAutoReconnectingEvent(disconnectReason, attemptCount);
     this.parent.RaiseOnOnAutoReconnecting(this.parent, onautoreconnectingEvent);
     pArcContinueStatus = onautoreconnectingEvent.pArcContinueStatus;
 }
示例#2
0
        private AutoReconnectContinueState AxMsTscAxNotSafeForScripting1_OnAutoReconnecting(object sender, IMsTscAxEvents_OnAutoReconnectingEvent e)
        {
            try
            {
                string Res = "连接失败:";

                if (0 == e.disconnectReason)
                {
                    label5.Text = Res + "autoReconnectContinueAutomatic";
                    return(AutoReconnectContinueState.autoReconnectContinueAutomatic);
                }
                else if (1 == e.disconnectReason)
                {
                    label5.Text = Res + "autoReconnectContinueStop";
                    return(AutoReconnectContinueState.autoReconnectContinueStop);
                }
                else
                {
                    label5.Text = Res + "autoReconnectContinueManual";
                    return(AutoReconnectContinueState.autoReconnectContinueManual);
                }
            }
            catch
            {
                throw new NotImplementedException();
            }
        }
示例#3
0
 internal void RaiseOnOnAutoReconnecting(object sender, IMsTscAxEvents_OnAutoReconnectingEvent e) {
     if ((this.OnAutoReconnecting != null)) {
         this.OnAutoReconnecting(sender, e);
     }
 }