public void UpdateDevice(DPDevice dev) { dpDevice = dev; devType = ProjectType.DP; propertyGrid1.SelectedObject = dpDevice; propertyGrid1.Refresh(); }
public ucDeviceProperty(DPDevice dev) { InitializeComponent(); dpDevice = dev; propertyGrid1.SelectedObject = dpDevice; devType = ProjectType.DP; }
public ucDeviceProperty(object dev) { InitializeComponent(); if (dev.GetType() == typeof(HartDevice)) { hartDevice = (HartDevice)dev; propertyGrid1.SelectedObject = hartDevice; devType = ProjectType.Hart; } else if (dev.GetType() == typeof(DPDevice)) { dpDevice = (DPDevice)dev; propertyGrid1.SelectedObject = dpDevice; devType = ProjectType.DP; } }
public void Add(DPDevice dev) { dPDevices.Add(dev); }