void SettingChange(object sender, EventArgs args) { UpdateServerListDelegate updater = new UpdateServerListDelegate(UpdateServerList); try { cboxServList?.Invoke(updater, -1); } catch { } }
private void SoftwareFrame_Load(object sender, EventArgs eventArgs) { _currentActionDescription = "OPC-QuickClient load"; _currentActionErrorCount = 0; _isActionRunning = false; SelectedMachineName = ""; SelectedServerId = ""; _updateServerListDelegate = UpdateServerListFunc; _updateTabListDelegate = UpdateTabListFunc; _updateReportDelegate = UpdateReportFunc; _updateStatusDelegate = UpdateStatusFunc; m_LocalSearchCheckBox.Checked = true; m_RemoteSearchCheckBox.Checked = false; m_RemoteMachineText.Text = ""; m_RemoteMachineText.Enabled = false; DisplayMessageInActionStatus(_currentActionDescription + " finished"); DisplayMessageInStateStatus(Convert.ToString(_currentActionErrorCount) + " error(s)"); }