Example #1
0
File: Files.cs Project: uvbs/LSharp
 internal static void Save()
 {
     SerializeXml.SerializeToXml(RelaxedWinner.MessageData, Path.Combine(Folder, FileName));
 }
Example #2
0
File: Files.cs Project: 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());
     }
 }