/// <summary> /// Opens the dioctionary dialog. /// </summary> public static void OpenDioctionaryDialog() { using (DictionaryDialog dic = new DictionaryDialog()) { if (!dic.OnOpenDictionary()) { return; } dic.ShowDialog(); dic.m_BrowseTreeCtrl.Clear(); } }
/// <summary> /// Opens the dioctionary dialog. /// </summary> /// <param name="server">The server.</param> /// <param name="filters">The filters.</param> public static void OpenDioctionaryDialog(Server server, OpcDa::BrowseFilters filters) { if (server == null) { return; } using (DictionaryDialog dic = new DictionaryDialog()) { if (filters == null) { filters = new OpcDa::BrowseFilters(); filters.ReturnAllProperties = true; filters.ReturnPropertyValues = true; } dic.ShowSingleServer(server, filters); dic.ShowDialog(); dic.m_BrowseTreeCtrl.Clear(); } }