Exemple #1
0
 public AccountWorkflow(WebBrowser wb, Account account)
 {
     _WB = wb;
     _Macro = new Macro(wb);
     _Completed = false;
     _Account = account;
 }
Exemple #2
0
 public bool Next()
 {
     string data = Controller.Execute("get-next-account");
     Account account = new Account();
     account.Setup(data);
     if (account.Success)
     {
         _Account = account;
         return true;
     }
     return false;
 }
Exemple #3
0
        public void Setup(string data)
        {
            string[] temp = data.Split(',');
            int n = Convert.ToInt32(temp[0]);
            if (n > 0 && temp[1] != "")
            {
                _Code = temp[1];
                _Account = new Account();
                _Account.SetupOrder(temp[2], temp[3], temp[4]);
            }

            if (_Code != null && _Account.Success)
            {
                _Success = true;
            }
        }
Exemple #4
0
 public static bool Return(bool success, Account account)
 {
     string param = "amazonid=" + account.AmazonId + "&success=" + Convert.ToInt32(success).ToString();
     return Controller.Return(param, "set-account");
 }