Exemplo n.º 1
0
 /// <summary>
 /// Updates the current directory display label.
 /// </summary>
 /// <param name="dirname">The path (name) of the current directory.</param>
 private void ReportDirName(string dirname)
 {
     if (labelCurrentDirectory.InvokeRequired)
     {
         ReportDirNameCallback rfc = new ReportDirNameCallback(ReportDirName);
         this.Invoke(rfc, dirname);
     }
     else
     {
         labelCurrentDirectory.Text = Path.GetDirectoryName(dirname);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Updates the current directory display label.
 /// </summary>
 /// <param name="dirname">The path (name) of the current directory.</param>
 private void ReportDirName(string dirname)
 {
     if (labelCurrentDirectory.InvokeRequired)
     {
         ReportDirNameCallback rfc = new ReportDirNameCallback(ReportDirName);
         this.Invoke(rfc, dirname);
     }
     else
     {
         labelCurrentDirectory.Text = Path.GetDirectoryName(dirname);
     }
 }