3、Common Controls
3.10 ProgressBarControl控件
进度条
效果如下:
示例代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.IO;
using System.Threading;
namespace DXApplication_1
{
public partial class ProgressBarControlForm : DevExpress.XtraEditors.XtraForm
{
public ProgressBarControlForm()
{
InitializeComponent();
}
private void Encapsulation_DeleteFiles()
{
string dirPath = "C:\\Users\\teeking_scx\\source\\repos\\DXApplication_1\\test";
if (Directory.Exists(dirPath))
{
string[] fileArr = Directory.GetFiles(dirPath);
progressBarCont