Example #1
0
    public static void Panel_Data(byte Index)
    {
        // Limpa os valores
        Clean.Panel(Index);

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

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

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