Esempio n. 1
0
        public DSysButton(int xpos, int ypos) : base(xpos, ypos, 25, 25)
        {
            numOfThisType++;

            if (!this.SetVarName(type + numOfThisType.ToString()))
            {
                while (!this.SetVarName(type + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }
        }
Esempio n. 2
0
        public DComboBox(int xpos, int ypos) : base(xpos, ypos, 60, 70)
        {
            numOfThisType++;

            if (!this.SetVarName(type + numOfThisType.ToString()))
            {
                while (!this.SetVarName(type + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }
        }
Esempio n. 3
0
        public DNumPad(int xpos, int ypos) : base(xpos, ypos, 76, 92)
        {
            numOfThisType++;
            //this.sizeable = false;

            if (!this.SetVarName("Dnumpad" + numOfThisType.ToString()))
            {
                while (!this.SetVarName("Dnumpad" + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }
        }
Esempio n. 4
0
        public DMultiChoice(int xpos, int ypos) : base(xpos, ypos, 50, 21)
        {
            numOfThisType++;

            this.initialselectnum = 1;

            if (!this.SetVarName(type + numOfThisType.ToString()))
            {
                while (!this.SetVarName(type + numOfThisType.ToString() + Derma.RandomString(4, false)))
                {
                    continue;
                }
            }
        }
Esempio n. 5
0
        public static void Paint(object sender, PaintEventArgs e)
        {
            if (!DrawGrid)
            {
                return;
            }

            Form main = Derma.GetWorkspace();

            e.Graphics.SetClip(new Rectangle(0, 0, main.Size.Width, main.Size.Height));

            for (int i = GridSize; i < Derma.GetWorkspace().Size.Width; i += GridSize)
            {
                e.Graphics.DrawLine(blackPen, i, 0, i, Derma.GetWorkspace().Size.Height);
                e.Graphics.DrawLine(blackPen, 0, i, Derma.GetWorkspace().Size.Width, i);
            }

            return;
        }
Esempio n. 6
0
 public static void Register()
 {
     Derma.RegisterPanel("DNumPad", typeof(DNumPad), thumbnail);
 }
Esempio n. 7
0
 public static void Register()
 {
     Derma.RegisterPanel("DSysButton", typeof(DSysButton), thumbnail);
 }
Esempio n. 8
0
 public static void Register()
 {
     Derma.RegisterPanel("DComboBox", typeof(DComboBox), thumbnail);
 }
Esempio n. 9
0
 public static void Register()
 {
     Derma.RegisterPanel("DMultiChoice", typeof(DMultiChoice), thumbnail);
 }