private void Reinitiate() { if (InvokeRequired) { Invoke(_reinitiate); return; } _clientStepShift = 0; BannerUrl = string.Empty; if (_fakeClient != null) { _fakeClient.Flush(); } if (_fakeServer != null) { _fakeServer.Flush(); } _packetloggerF.Halt(); Hide(); _packetloggerF.Hide(); Task.Factory.StartNew(Initiate); }
private void Reinitiate() { if (InvokeRequired) { Invoke(_reinitiate); return; } if (ISSchedulerLstvw.Items.Count > 0) { ISSchedulerLstvw.StopAllSchedules(); } foreach (ExtensionBase extension in _contractor.Extensions) { _contractor.Dispose(extension); } if (_fakeClient != null) { _fakeClient.Dispose(); } if (_fakeServer != null) { _fakeServer.Dispose(); } Hide(); _packetlogger.Halt(); _packetlogger.Hide(); Task.Factory.StartNew(Initiate); }