Ejemplo n.º 1
0
 public Rechner(StackRechner rechner)
 {
     InitializeComponent();
     _rechner               = rechner;
     _currentText           = "";
     textBox1.AcceptsReturn = true;
     textBox1.ScrollBars    = ScrollBars.Vertical;
 }
Ejemplo n.º 2
0
        private static void Main(string[] args)
        {
            StackRechner rechner = new StackRechner();
            string       input   = Console.ReadLine();

            foreach (string s in input.Split(' '))
            {
                rechner.Push(s);
            }
            Console.ReadLine();
        }
Ejemplo n.º 3
0
        private static void Main(string[] args)
        {
            StackRechner stackRechner = new StackRechner();

            Application.Run(new Rechner(stackRechner));
        }
Ejemplo n.º 4
0
 private void OperationClear_Click(object sender, EventArgs e)
 {
     _currentText = "";
     _rechner     = new StackRechner();
     UpdateTextArea();
 }