private void Button_AddDevice(IDeviceBLE pDevice) { var dev = new MultimeterPage(pDevice); AddDevice(dev); Children.Add(dev); CurrentPage = Children[Children.Count - 1]; }
private void AddDevice(MultimeterPage Device) { MathChart.AddDevice(Device); if (MathChart.Devices.Count == 1) { AddPage("< Maths >", MathChart); } }