public void Dispose() { if (IsDisposed) { return; } IsDisposed = true; if (CommandViewFactory != null) { CommandViewFactory.Dispose(); } _config = null; _parser = null; _gestureView = null; _intentStore = null; _pathTracker = null; SupportedCommands.Clear(); SupportedCommands = null; CommandViewFactory = null; _form.Dispose(); _form = null; //GC.Collect(); }
internal void ResetSupportedCommandList() { SupportedCommands.Clear(); SupportedCommands.Add(NNTPMessages.Article, false); SupportedCommands.Add(NNTPMessages.Group, false); SupportedCommands.Add(NNTPMessages.Help, true); SupportedCommands.Add(NNTPMessages.NewNews, false); SupportedCommands.Add(NNTPMessages.ListGroup, false); SupportedCommands.Add(NNTPMessages.ListNewsGroups, false); SupportedCommands.Add(NNTPMessages.NewsGroups, false); SupportedCommands.Add(NNTPMessages.Next, false); SupportedCommands.Add(NNTPMessages.Post, false); SupportedCommands.Add(NNTPMessages.Quit, false); SupportedCommands.Add(NNTPMessages.Slave, false); SupportedCommands.Add(NNTPMessages.AuthInfoUser, false); SupportedCommands.Add(NNTPMessages.AuthInfoPass, false); SupportedCommands.Add(NNTPMessages.AuthInfoGeneric, false); SupportedCommands.Add(NNTPMessages.Head, false); SupportedCommands.Add(NNTPMessages.Body, false); SupportedCommands.Add(NNTPMessages.Ihave, false); }