private void btnDevice1_Click(object sender, EventArgs e) { Button btn = ((Button)sender); int mainbelt = Convert.ToInt32(System.Text.RegularExpressions.Regex.Replace(btn.Name, @"[^0-9]+", "")); fd = new FM_Device(); handledevice += fd.GetMainInfo; handledevice(mainbelt, listuinongroup, IsOnLine); fd.ShowDialog(); }
private void 合流ToolStripMenuItem_Click(object sender, EventArgs e) { FM_Device fd = new FM_Device(); handledive += fd.GetMainInfo; }