private void CommandCopy_Executed(object sender, ExecutedRoutedEventArgs e) { IntbusDevice intbusDevice = TreeView_IntbusDevices.SelectedItem as IntbusDevice; IntbusDeviceCloneBuffer = intbusDevice.Clone() as IntbusDevice; var a = IntbusDeviceCloneBuffer; }
public void AddIntbusDevice(IntbusDevice intbusDevice) { IntbusDevice clonedDevice = intbusDevice.Clone() as IntbusDevice; clonedDevice.MasterIntbusDevice = this; this.SlaveIntbusDevices.Add(clonedDevice); }