コード例 #1
0
 /// <summary>
 /// Sets the datagridviews datasource to be the datatable constructed by the readfile method.
 /// </summary>
 public void PerformRefresh(bool opened)
 {
     if (FileOP.GetFile() != "")
     {
         if (!opened)
         {
             UnlockFile();
         }
         dataGridView1.DataSource = FileOP.ReadFile();
         LockFile();
     }
     else
     {
         dataGridView1.DataSource = null;
     }
 }