/// <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); } }