Skip to content

Commit 1139dcc

Browse files
committed
Refactored progress dialogues
1 parent 9b06867 commit 1139dcc

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

SEOMacroscopeSeriesOne/src/MacroscopeForms/MacroscopeProgressForms/MacroscopeDoublePercentageProgressForm.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ string ProgressLabelMinor
133133
if( ( !this.FormShown ) && ( this.OperationDuration.ElapsedMilliseconds >= OperationDurationLimit ) )
134134
{
135135
this.FormShown = true;
136-
this.ShowDialog();
136+
this.TopLevel = true;
137+
this.ShowInTaskbar = true;
138+
this.Show();
139+
this.Activate();
137140
}
138141

139142
try

SEOMacroscopeSeriesOne/src/MacroscopeForms/MacroscopeProgressForms/MacroscopeSinglePercentageProgressForm.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ string ProgressLabelMajor
104104
if( ( !this.FormShown ) && ( this.OperationDuration.ElapsedMilliseconds >= OperationDurationLimit ) )
105105
{
106106
this.FormShown = true;
107-
this.ShowDialog();
107+
this.TopLevel = true;
108+
this.ShowInTaskbar = true;
109+
this.Show();
110+
this.Activate();
108111
}
109112

110113
try

SEOMacroscopeSeriesOne/src/MacroscopeForms/MacroscopeProgressForms/MacroscopeTriplePercentageProgressForm.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ string ProgressLabelSubMinor
150150
if( ( !this.FormShown ) && ( this.OperationDuration.ElapsedMilliseconds >= OperationDurationLimit ) )
151151
{
152152
this.FormShown = true;
153-
this.ShowDialog();
153+
this.TopLevel = true;
154+
this.ShowInTaskbar = true;
155+
this.Show();
156+
this.Activate();
154157
}
155158

156159
try

0 commit comments

Comments
 (0)