// public FlowDirect CurrentDirect = FlowDirect.WaitingOutPut; // // public void Add(BaseDCTAction action) // { // if(alWorkingAction.Count < 1) // { // this.alWorkingAction.Add(action); // } // } // public override void Login() { this.WorkingActionList.Clear(); ActionUser action = new ActionUser(); this.WorkingActionList.Add(action); }
//logon mes protected override void Login() { BaseDCTAction action = stack.GetNextAction(); // if(action == null) // { // action = new ActionUser(); // stack.Add(action); // } if (stack.CurrentDirect == FlowDirect.WaitingOutput && action == null) { action = new ActionUser(); if (bIsInitLoginMessage == true) { action.OutMesssage = new UserControl.Message(UserControl.MessageType.Normal, "$DCT_LOGIN"); bIsInitLoginMessage = false; } stack.Add(action); try { stack.SendMessage(client, action.Do(client), ""); //stack.CurrentDirect = action.FlowDirect; } catch (Exception ex) { UserControl.FileLog.FileLogOut("DCTControlPanel.log", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ex.StackTrace); UserControl.Messages msg = new UserControl.Messages(); msg.Add(new UserControl.Message(ex)); stack.SendMessage(client, msg, ""); } } }