public static int GetValue(PCCPackage p, int index) { Nameselect prompt = new Nameselect(); prompt.Init(p, index); return prompt.ShowDialog() == DialogResult.OK ? prompt.returnValue() : -1; }
public static int GetValue(PCCPackage p, int index) { Nameselect prompt = new Nameselect(); prompt.Init(p, index); return(prompt.ShowDialog() == DialogResult.OK ? prompt.returnValue() : -1); }