Пример #1
0
    public static void Button_Data(byte Index)
    {
        // Limpa os valores
        Clean.Button(Index);

        // Cria um sistema Binary para a manipulação dos Data
        FileInfo     Arquivo = new FileInfo(Directories.Buttons_Data.FullName + Index + Directories.Format);
        BinaryReader Binary  = new BinaryReader(Arquivo.OpenRead());

        // Lê os Data
        Buttons.List[Index].Geral.Name       = Binary.ReadString();
        Buttons.List[Index].Geral.Position.X = Binary.ReadInt32();
        Buttons.List[Index].Geral.Position.Y = Binary.ReadInt32();
        Buttons.List[Index].Geral.Visible    = Binary.ReadBoolean();
        Buttons.List[Index].Texture          = Binary.ReadByte();

        // Fecha o sistema
        Binary.Dispose();
    }