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