Example #1
0
 private static void TextBox(BinaryWriter Data, Lists.Structures.TextBox Tool)
 {
     // Escreve os dados
     Data.Write(Tool.Name);
     Data.Write(Tool.Position.X);
     Data.Write(Tool.Position.Y);
     Data.Write(Tool.Visible);
     Data.Write((byte)Tool.Window);
     Data.Write(Tool.Max_Characters);
     Data.Write(Tool.Width);
     Data.Write(Tool.Password);
 }
Example #2
0
 private static Lists.Structures.TextBox TextBox(BinaryReader Data)
 {
     // Lê os dados
     Lists.Structures.TextBox Tool = new Lists.Structures.TextBox
     {
         Name           = Data.ReadString(),
         Position       = new System.Drawing.Point(Data.ReadInt32(), Data.ReadInt32()),
         Visible        = Data.ReadBoolean(),
         Window         = (Globals.Windows)Data.ReadByte(),
         Max_Characters = Data.ReadInt16(),
         Width          = Data.ReadInt16(),
         Password       = Data.ReadBoolean()
     };
     return(Tool);
 }
Example #3
0
    private void butConfirm_Click(object sender, EventArgs e)
    {
        // Adiciona uma nova ferramenta
        Lists.Structures.Tool Tool = new Lists.Structures.Tool();
        switch ((Globals.Tools_Types)cmbType.SelectedIndex)
        {
        case Globals.Tools_Types.Button: Tool = new Lists.Structures.Button(); break;

        case Globals.Tools_Types.Panel: Tool = new Lists.Structures.Panel(); break;

        case Globals.Tools_Types.CheckBox: Tool = new Lists.Structures.CheckBox(); break;

        case Globals.Tools_Types.TextBox: Tool = new Lists.Structures.TextBox(); break;
        }
        Lists.Tool.Nodes[cmbWindows.SelectedIndex].Nodes.Add("[" + ((Globals.Tools_Types)cmbType.SelectedIndex).ToString() + "] ");
        Tool.Window = (Globals.Windows)cmbWindows.SelectedIndex;
        Lists.Tool.Nodes[cmbWindows.SelectedIndex].LastNode.Tag = Tool;
        grpNew.Visible = false;
    }
Example #4
0
 private static void TextBox(Lists.Structures.TextBox Tool)
 {
     // Desenha a ferramenta
     Render_Box(Win_Interface, Tex_TextBox, 3, Tool.Position, new Size(Tool.Width, TSize(Tex_TextBox).Height));
 }