public void Start() { _ProcessDialog = new Dialogs.ProgressRunningDialog(this, Abort); m_WorkerThread = new Thread(Calculate); m_WorkerThread.Start(); _ProcessDialog.ShowDialog(); }
public void Start() { _ProcessDialog = new ProgressRunningDialog(this, Abort); _ProcessDialog.FormClosed += OnProcessDialogFormClosed; _WorkerThread = new Thread(Import); _WorkerThread.Start(); _ProcessDialog.ShowDialog(); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> /// <filterpriority>2</filterpriority> public void Dispose() { if(_ProcessDialog != null) { _ProcessDialog.FormClosed -= OnProcessDialogFormClosed; _ProcessDialog.Dispose(); _ProcessDialog = null; } _WorkerThread = null; _FilesToImportAsLabels = null; StatusChanged = null; }