Beispiel #1
0
 private void save_Click(object sender, EventArgs e)
 {
     if (saveFileDialog.ShowDialog() == DialogResult.OK)
     {
         try
         {
             FileTls fileTls = new FileTls(saveFileDialog.FileName);
             fileTls.WriteArr(DataGridViewUtils.GridToArray <int>(OutputGrid));
         }
         catch (Exception eror)
         {
             MessageBox.Show(eror.Message, "ошибка");
         }
     }
 }
Beispiel #2
0
 private static void ArrFile(int[] Arr)
 {
     while (true)
     {
         try
         {
             Console.Write("введите имя файла: ");
             FileTls fileTls = new FileTls(Console.ReadLine());
             fileTls.WriteArr(Arr);
             return;
         }
         catch (Exception eror)
         {
             Console.WriteLine(eror.Message);
         }
     }
 }