Esempio n. 1
0
 public void Clone(KaixinBase source, bool ignoreValidateEvent)
 {
     try
     {
         this.HH              = source.HH;
         this.CurrentAccount  = source.CurrentAccount;
         this.MessageChanged += new MessageChangedEventHandler(source.SetMessageByParam);
         if (!ignoreValidateEvent)
         {
             this.ValidateCodeNeeded += new ValidateCodeNeededEventHandler(source.SetValidateCodeByParam);
         }
         this.Operation        = source.Operation;
         this.Task             = source.Task;
         this.AllMyFriendsList = source.AllMyFriendsList;
         this.Caption          = source.Caption;
         this.Key          = source.Key;
         this.ExecutionLog = source.ExecutionLog;
     }
     catch (ThreadAbortException)
     {
         throw;
     }
     catch (ThreadInterruptedException)
     {
         throw;
     }
     catch (Exception ex)
     {
         LogHelper.Write("KaixinBase.Clone", ex);
         throw;
     }
 }
Esempio n. 2
0
 public DlgFriendValidation()
 {
     InitializeComponent();
     _kaixinbase = new KaixinBase();
     _kaixinbase.ValidateCodeNeeded += new KaixinBase.ValidateCodeNeededEventHandler(_kaixinbase_ValidateCodeNeeded);
     _kaixinbase.LoginFailed += new KaixinBase.LoginFailedEventHandler(_kaixinbase_LoginFailed);
     _kaixinbase.AllMyFriendsFetched += new KaixinBase.AllMyFriendsFetchedEventHandler(_kaixinbase_AllMyFriendsFetched);
 }
Esempio n. 3
0
 public void Clone(KaixinBase source, bool ignoreValidateEvent)
 {
     try
     {
         this.HH = source.HH;
         this.CurrentAccount = source.CurrentAccount;
         this.MessageChanged += new MessageChangedEventHandler(source.SetMessageByParam);
         if (!ignoreValidateEvent)
             this.ValidateCodeNeeded += new ValidateCodeNeededEventHandler(source.SetValidateCodeByParam);
         this.Operation = source.Operation;
         this.Task = source.Task;
         this.AllMyFriendsList = source.AllMyFriendsList;
         this.Caption = source.Caption;
         this.Key = source.Key;
         this.ExecutionLog = source.ExecutionLog;
     }
     catch (ThreadAbortException)
     {
         throw;
     }
     catch (ThreadInterruptedException)
     {
         throw;
     }
     catch (Exception ex)
     {
         LogHelper.Write("KaixinBase.Clone", ex);
         throw;
     }
 }
Esempio n. 4
0
 public void Clone(KaixinBase source)
 {
     Clone(source, false);
 }
Esempio n. 5
0
 public void Clone(KaixinBase source)
 {
     Clone(source, false);
 }
Esempio n. 6
0
 public DlgSelectionBase()
 {
     InitializeComponent();
     
     _kaixinBase = new KaixinBase();
 }