public static string Buy() { price = stocks * min; csDBOperator obj = new csDBOperator(); string s = obj.mdbuyWithAI(min, price, stocks); ccom = 1; csSale obj2 = new csSale(1, price, stocks); return(s); }
public static void saleAi() { if (ccom == 1) { max = getVal[0]; for (int i = 0; i < getVal.Count; i++) { if (max < getVal[i]) { max = getVal[i]; ccom = 0; csSale obj = new csSale(); obj.sale(); } } } }