static void CalculatorInit()
        {
            gui = new GUI(new Position(47, 11), 1);

            fields    = new TextField[3];
            fields[0] = new TextField(new Position(2, 2), 15, "U");
            fields[1] = new TextField(new Position(17, 2), 15, "I");
            fields[2] = new TextField(new Position(32, 2), 15, "Ri");

            calculateButton           = new Button(new Position(17, 5), 15, "Calculate");
            calculateButton.Clicked  += Calculate;
            modeChangeButton          = new Button(new Position(2, 5), 15, "Current corr");
            modeChangeButton.Clicked += ChangeMode;
            resultField = new ProtectedTextField(new Position(17, 8), 15);

            foreach (var item in fields)
            {
                gui.AddTextField(item);
            }
            gui.AddButton(calculateButton);
            gui.AddButton(modeChangeButton);
            gui.AddProtectedTextField(resultField);

            gui.Start();
        }
        static void Testing()
        {
            GUI gui = new GUI(new Position(60, 30));

            gui.AddTextField(new TextField(new Position(5, 5), 15, 1, "Title"));

            Button button = new Button(new Position(7, 20), 20, "Button");

            button.Clicked += Button1Clicked;
            gui.AddButton(button);

            button          = new Button(new Position(10, 25), 30, 2, "Button2");
            button.Clicked += Button2Clicked;
            gui.AddButton(button);

            button          = new Button(new Position(25, 5), 15, 1, "Button3");
            button.Clicked += Button3Clicked;
            gui.AddButton(button);

            button          = new Button(new Position(15, 15), 15, 1, "Button4");
            button.Clicked += Button4Clicked;
            gui.AddButton(button);

            ProtectedTextField field = new ProtectedTextField(new Position(40, 20), 15, "Field1");

            gui.AddProtectedTextField(field);
            field.ChangeValue('2', 5);
            field.ChangeValue('3', 5);

            gui.Start();
        }