السلام عليكم
ودي أعمل ألة حسبة لكن من دون أستخدام أزرار تقرأ ما يكتب. عندي مشكلة في قرأة النص مثلا لو أدخلت 4594.654n+74 سيخد 4594.65474
public bool isNumber(String line) { bool isIt = false; bool run = true; String strNumaricValue =""; double Value; // spilled the line for(int i = 0 ; i <line.Length; i++) { // chech each char in line for (int j = 0; j < NUMARIC.Length; j++) { // check if it's a unmber if (line == NUMARIC[j]) { Console.WriteLine("test"); strNumaricValue += line.ToString(); } // stop if it's not a number else { run = false; break; } } if (!run) { break; } } // convert and add number for (int k = 0; k < NUMARIC.Length ; k++ ) { if (strNumaricValue.Length >= 0 && strNumaricValue[0] == NUMARIC[k] ) { Value = Convert.ToDouble(strNumaricValue); numaric.addNumber(Value); isIt = true; } } return isIt; }//end of IsNumber