Esempio n. 1
0
        public void StartInk()
        {
            if (FormDisplay != null || FormCollection != null)
            {
                return;
            }

            //Docked = false;
            FormDisplay      = new FormDisplay(this);
            FormCollection   = new FormCollection(this);
            FormButtonHitter = new FormButtonHitter(this);
            if (CurrentPen <= 0)
            {
                CurrentPen = 1;
            }
            SelectPen(CurrentPen);
            FormDisplay.Show();
            FormCollection.Show();
            FormDisplay.DrawButtons(true);

            if (UndoStrokes == null)
            {
                UndoStrokes    = new Ink[8];
                UndoStrokes[0] = FormCollection.IC.Ink.Clone();
                UndoDepth      = 0;
                UndoP          = 0;
            }

            //UponUndoStrokes = FormCollection.IC.Ink.Clone();
        }
Esempio n. 2
0
        public void StartInk()
        {
            if (FormDisplay != null || FormCollection != null)
            {
                return;
            }

            //Docked = false;
            FormDisplay      = new FormDisplay(this);
            FormCollection   = new FormCollection(this);
            FormButtonHitter = new FormButtonHitter(this);

            FormDisplay.Show();
            FormCollection.Show();
            FormDisplay.DrawButtons(true);
        }
Esempio n. 3
0
        public void StartInk()
        {
            if (FormDisplay != null || FormCollection != null)
            {
                return;
            }

            //Docked = false;
            FormDisplay      = new FormDisplay(this);
            FormCollection   = new FormCollection(this);
            FormButtonHitter = new FormButtonHitter(this);
            if (CurrentPen < 0)
            {
                CurrentPen = 0;
            }
            if (!PenEnabled[CurrentPen])
            {
                CurrentPen = 0;
                while (CurrentPen < MaxPenCount && !PenEnabled[CurrentPen])
                {
                    CurrentPen++;
                }
                if (CurrentPen == MaxPenCount)
                {
                    CurrentPen = -2;
                }
            }
            SelectPen(CurrentPen);
            SetInkVisible(true);
            FormCollection.ButtonsEntering = 1;
            FormDisplay.Show();
            FormCollection.Show();
            FormDisplay.DrawButtons(true);

            if (UndoStrokes == null)
            {
                UndoStrokes    = new Ink[8];
                UndoStrokes[0] = FormCollection.IC.Ink.Clone();
                UndoDepth      = 0;
                UndoP          = 0;
            }

            //UponUndoStrokes = FormCollection.IC.Ink.Clone();
        }