Пример #1
0
 /// <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();
     }
 }
Пример #2
0
 /// <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();
     }
 }
 /// <summary>
 /// Displays the address space of the server in a modal dialog.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void TSMI_BrowseItems_Click(object sender, EventArgs e)
 {
     DictionaryDialog.OpenDioctionaryDialog((Server)m_Node.MyServer.Duplicate(), null);
 }