private void StopWorking() { if (_formWork == null) { return; } _formWork.Close(); _formWork.Dispose(); _formWork = null; }
private void StartWorking(int count) { if (_formWork != null) { return; } _formWork = new FormWork(); _formWork.Initialize(count); _formWork.Show(this); }