Exemplo n.º 1
0
 public static bool Save(Column[] f)
 {
     //try
     {
         int load = 0;
         while (File.Exists(Application.StartupPath + "/Settings/Columns_" + load + ".dat"))
         {
             File.Delete(Application.StartupPath + "/Settings/Columns_" + load + ".dat");
             load++;
         }
         for (int i = 0; i < f.Length; i++)
         {
             Rc.SaveToXML <ColumnData>(f[i].ToColumnData(), Application.StartupPath + "/Settings/Columns_" + i + ".dat");
         }
         MessageBox.Show("Success to save.");
         return(true);
     }            /*
                   * catch
                   * {
                   *     MessageBox.Show("Failed to save.");
                   *     return false;
                   * }*/
 }