Ejemplo 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();
        }
Ejemplo 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);
        }
Ejemplo 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();
        }
Ejemplo n.º 4
0
Archivo: Root.cs Proyecto: geovens/gInk
		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);

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

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