Ejemplo n.º 1
0
Archivo: Files.cs Proyecto: uvbs/LSharp
 internal static void Save()
 {
     SerializeXml.SerializeToXml(RelaxedWinner.MessageData, Path.Combine(Folder, FileName));
 }
Ejemplo n.º 2
0
Archivo: Files.cs Proyecto: uvbs/LSharp
 public static void GetData()
 {
     if (true) /*!File.Exists(Path.Combine(Folder, FileName))*/
     {
         RelaxedWinner.MessageData.GameEnd = new List <Information>
         {
             new Information {
                 Message = "gg"
             },
             new Information {
                 Message = "GG"
             },
             new Information {
                 Message = "GG WP"
             },
             new Information {
                 Message = "gg wp"
             }
         };
         RelaxedWinner.MessageData.GameStart = new List <Information>
         {
             new Information {
                 Message = "gl & hf"
             },
             new Information {
                 Message = "GL & HF"
             },
             new Information {
                 Message = "gl && hf"
             },
             new Information {
                 Message = "GL && HF"
             },
             new Information {
                 Message = "GL HF"
             },
             new Information {
                 Message = "gl hf"
             },
             new Information {
                 Message = "gl"
             },
             new Information {
                 Message = "GL"
             },
             new Information {
                 Message = "HF"
             },
             new Information {
                 Message = "hf"
             }
         };
         //Save();
     }
     else
     {
         RelaxedWinner.MessageData =
             (Messages)
             SerializeXml.DeserializeFromXml(
                 Path.Combine(Folder, FileName), RelaxedWinner.MessageData.GetType());
     }
 }