示例#1
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (gridFunc.SelectedRows.Count == 1)
     {
         selected     = gridFunc.SelectedRows[0].Cells[0].Value as ELFunction;
         DialogResult = DialogResult.OK;
         Close();
     }
 }
示例#2
0
 void LoadWiki(ELFunction func)
 {
     webBrowser.Stop();
     if (string.IsNullOrEmpty(func?.wikiUrl))
     {
         webBrowser.DocumentText = $"<b>{func?.function}():</b> Wiki not available for this function";
     }
     else
     {
         webBrowser.Navigate(func?.wikiUrl);
     }
 }
示例#3
0
 void LoadWiki(string name, ELFunction func)
 {
     webBrowser.Stop();
     if (name == null)
     {
         webBrowser.DocumentText = $"no function highlighted";
     }
     else if (string.IsNullOrEmpty(func?.wikiUrl))
     {
         webBrowser.DocumentText = $"<b>{name}():</b> Wiki not available for this function";
     }
     else
     {
         webBrowser.Navigate(func?.wikiUrl);
     }
 }