private void OnFormLoad(object sender, EventArgs e) { switch (ActionExportImport) { case ExportImportDeleteAction.ActionImport: ExportImportTargetCount = BatchSize; lblTitle.Text = "Importing inventory"; break; case ExportImportDeleteAction.ActionExport: lblTitle.Text = "Exporting inventory"; break; } lblExportImport.Text = $"Processing {FileName.EllipsisString()}"; lblStatus.Visible = true; }