개정판 88b5fc73
Modify display text format of Splash Form ProgressBar
Change-Id: Icb3d1842bd1cad1b10d954262a42d208f842fa22
DTI_PID/SPPIDConverter/Form/ID2DBSetting.cs | ||
---|---|---|
48 | 48 |
|
49 | 49 |
private void btnProjectDriectory_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
50 | 50 |
{ |
51 |
if (!string.IsNullOrWhiteSpace(textBoxProjectDriectory.Text)) |
|
52 |
{ |
|
53 |
xtraFolderBrowserDialog.SelectedPath = textBoxProjectDriectory.Text; |
|
54 |
} |
|
51 | 55 |
if (xtraFolderBrowserDialog.ShowDialog() == DialogResult.OK) |
52 | 56 |
{ |
53 | 57 |
if (xtraFolderBrowserDialog.SelectedPath[xtraFolderBrowserDialog.SelectedPath.Length - 1] == '\\') |
DTI_PID/SPPIDConverter/Form/SPPIDSplashScreen.cs | ||
---|---|---|
18 | 18 |
{ |
19 | 19 |
InitializeComponent(); |
20 | 20 |
this.labelControl1.Text = "Copyright © 2018-" + DateTime.Now.Year.ToString(); |
21 |
progressBarControl.CustomDisplayText += ProgressBarControl_CustomDisplayText; |
|
21 | 22 |
} |
23 |
|
|
24 |
private void ProgressBarControl_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e) |
|
25 |
{ |
|
26 |
e.DisplayText = string.Format("[{0}/{1}] {2}", progressBarControl.Position, progressBarControl.Properties.Maximum, e.DisplayText); |
|
27 |
} |
|
28 |
|
|
22 | 29 |
int allStepCount; |
23 | 30 |
int currentCount; |
24 | 31 |
private void SPPIDSplashScreen_Load(object sender, EventArgs e) |
25 | 32 |
{ |
26 |
|
|
27 | 33 |
} |
28 | 34 |
|
29 | 35 |
#region Overrides |
내보내기 Unified diff