Esempio n. 1
0
        // Inserts an empty result block at the position
        public void InsertResult(int pos)
        {
            MovableCasResult movableCasResult = new MovableCasResult(user, "", "");

            movableCasResult.Attach(AddLockCheckButton(movableCasResult), 1, 100, 1, 1);
            movableCasResult.Attach(AddCommandButtons(movableCasResult), 100, 1, 1, 1);

            castextviews.Insert(pos, movableCasResult);

            Clear();
            Redraw();
            ShowAll();
        }
Esempio n. 2
0
        // Inserts a result widget
        public void InsertResult(string answer, string facit)
        {
            MovableCasResult MovableCasResult = new MovableCasResult(user, answer, facit);

            MovableCasResult.Attach(AddLockCheckButton(MovableCasResult), 1, 100, 1, 1);
            MovableCasResult.Attach(AddCommandButtons(MovableCasResult), 100, 1, 1, 1);

            castextviews.Add(MovableCasResult);

            Clear();
            Redraw();
            ShowAll();
        }