Update gestione UI x Adapter
This commit is contained in:
+500
-575
File diff suppressed because it is too large
Load Diff
@@ -90,15 +90,13 @@ namespace IOB_WIN_FORM
|
||||
{
|
||||
set
|
||||
{
|
||||
// se true --> comunica/verde, altrimenti grigio
|
||||
lblApp.ForeColor = value ? Color.SeaGreen : Color.Black;
|
||||
lblVers.ForeColor = value ? Color.SeaGreen : Color.DarkSlateGray;
|
||||
|
||||
if (!ShouldUpdateUI()) return;
|
||||
|
||||
this.UIThread(delegate
|
||||
{
|
||||
statusStrip1.Refresh();
|
||||
// se true --> comunica/verde, altrimenti grigio
|
||||
lblApp.ForeColor = value ? Color.SeaGreen : Color.Black;
|
||||
lblVers.ForeColor = value ? Color.SeaGreen : Color.DarkSlateGray;
|
||||
//statusStrip1.Invalidate();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -221,8 +219,10 @@ namespace IOB_WIN_FORM
|
||||
{
|
||||
resetProgBar++;
|
||||
}
|
||||
#if false
|
||||
// invalido x ridisegnare...
|
||||
MainProgrBar.Invalidate();
|
||||
MainProgrBar.Invalidate();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
@@ -242,7 +242,7 @@ namespace IOB_WIN_FORM
|
||||
// mostro solo se non minimizzata
|
||||
if (!ShouldUpdateUI()) return;
|
||||
lblStatus.Text = txt2show;
|
||||
lblStatus.Invalidate();
|
||||
//lblStatus.Invalidate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace IOB_WIN_SHELLY
|
||||
case tipoAdapter.ND:
|
||||
default:
|
||||
iobObj = new IOB_WIN_FORM.Iob.Simula(this, IOBConfFull);
|
||||
btnStart.Enabled = false;
|
||||
btnStart.Enabled = true;
|
||||
break;
|
||||
}
|
||||
if (!await iobInitAsync())
|
||||
|
||||
Reference in New Issue
Block a user