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;
                }
            }
        }
Exemple #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;
                }
            }
        }
Exemple #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;
                }
            }
        }
Exemple #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;
                }
            }
        }
Exemple #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;
        }
Exemple #6
0
 public static void Register()
 {
     Derma.RegisterPanel("DNumPad", typeof(DNumPad), thumbnail);
 }
 public static void Register()
 {
     Derma.RegisterPanel("DSysButton", typeof(DSysButton), thumbnail);
 }
Exemple #8
0
 public static void Register()
 {
     Derma.RegisterPanel("DComboBox", typeof(DComboBox), thumbnail);
 }
Exemple #9
0
 public static void Register()
 {
     Derma.RegisterPanel("DMultiChoice", typeof(DMultiChoice), thumbnail);
 }