protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
Результат | void |
private void DeleteArticle() { dlgArticleAction = new ArticleActionDialog(2); try { dlgArticleAction.Summary = LastDelete; if (dlgArticleAction.ShowDialog(this) == DialogResult.OK) { LastDelete = dlgArticleAction.Summary; webBrowserEdit.DeletePage(TheArticle.Name, ArticleActionSummary); } } catch (Exception ex) { ErrorHandler.Handle(ex); } finally { dlgArticleAction.Dispose(); } }
private void MoveArticle() { dlgArticleAction = new ArticleActionDialog(1); try { dlgArticleAction.NewTitle = TheArticle.Name; dlgArticleAction.Summary = LastMove; if (dlgArticleAction.ShowDialog(this) == DialogResult.OK) { LastMove = dlgArticleAction.Summary; webBrowserEdit.MovePage(TheArticle.Name, dlgArticleAction.NewTitle, ArticleActionSummary); } } catch (Exception ex) { ErrorHandler.Handle(ex); } finally { dlgArticleAction.Dispose(); } }