Example #1
0
File: Bll.cs Project: lym82148/DBL
 internal static void CheckDefault()
 {
     if (!File.Exists(defaultfile))
     {
         FormConfig result = new FormConfig();
         result.font     = FormConfig.defaultfont;
         result.location = FormConfig.defaultlocation;
         result.size     = FormConfig.defaultsize;
         result.text     = FormConfig.defaulttext;
         FileStream      fileStream = new FileStream(defaultfile, FileMode.Create);
         BinaryFormatter b          = new BinaryFormatter();
         b.Serialize(fileStream, result);
         fileStream.Close();
     }
     if (!File.Exists(allfile))
     {
         List <FormConfig> list = new List <FormConfig>();
         list.Add(new FormConfig());
         SaveAllConfig(list);
     }
 }