public AccountWorkflow(WebBrowser wb, Account account) { _WB = wb; _Macro = new Macro(wb); _Completed = false; _Account = account; }
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; }
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; } }
public static bool Return(bool success, Account account) { string param = "amazonid=" + account.AmazonId + "&success=" + Convert.ToInt32(success).ToString(); return Controller.Return(param, "set-account"); }