Example #1
0
        private void RunVSHlpViewerElevatedBtn_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)  //fill catalog drop down list
        {
            int i = (int)e.ClickedItem.Tag;

            _catList = FlatCatalogList.GetAll();
            if (i >= 0 && i < _catList.Count)
            {
                HlpViewer.StartReturn sRet = HlpViewer.RunAsAdmin("/catalogName", _catList[i].CatalogID, "/locale", _catList[i].Locale);
                if (sRet != HlpViewer.StartReturn.ok)
                {
                    MessageBox.Show("Error running HlpViewer.exe: " + sRet.ToString() + "\n" + HlpViewer.path);
                }
            }
        }
Example #2
0
 private void RunVSHlpViewerElevatedBtn_ButtonClick(object sender, EventArgs e)
 {
     _catList = FlatCatalogList.GetAll();
     if (_catList.Count > 0)
     {
         HlpViewer.StartReturn sRet = HlpViewer.RunAsAdmin("/catalogName", _catList[0].CatalogID, "/locale", _catList[0].Locale);
         if (sRet != HlpViewer.StartReturn.ok)
         {
             MessageBox.Show("Error running HlpViewer.exe: " + sRet.ToString() + "\n" + HlpViewer.path);
         }
     }
     else
     {
         MessageBox.Show("No VS 11 registered catalogs found.");
     }
 }