public ClientInfoWindow(Record record) { InitializeComponent(); ResizeMode = ResizeMode.NoResize; WindowStartupLocation = WindowStartupLocation.CenterScreen; Settings = new XraySettingsViewModel(record.Settings); DataContext = this; }
public RecordEditorWindow(Record record) { InitializeComponent(); ResizeMode = ResizeMode.NoResize; WindowStartupLocation = WindowStartupLocation.CenterScreen; this.Record = record; Host = new HostViewModel(record.Host.DeepClone()); Settings = new XraySettingsViewModel(record.Settings.DeepClone()); this.DataContext = this; }