public Local_Media_Create(UserControl p, Libvirt.CS_Objects.Host con, Libvirt.Models.Concrete.Virtual_Machine d) { InitializeComponent(); this.Dock = DockStyle.Fill; _Previous = p; _Local_Media_Create_Model = new Local_Media_Create_Model(con, d); Init_Controls(); }
public Create_First_Step(UserControl p, Libvirt.CS_Objects.Host con, Libvirt.Models.Concrete.Virtual_Machine d) { InitializeComponent(); this.Dock = DockStyle.Fill; _Previous = p; _Create_First_Step_Model = new Create_First_Step_Model(con, d); textBox2.DataBindings.Add( Safe_Property.GetPropertyInfo(textBox2, a => a.Text).Name, d.Metadata, Safe_Property.GetPropertyInfo(d.Metadata, a => a.name).Name, false, DataSourceUpdateMode.OnPropertyChanged); }
public Cpu_Ram_Create(UserControl p, Libvirt.CS_Objects.Host con, Libvirt.Models.Concrete.Virtual_Machine d) { InitializeComponent(); this.Dock = DockStyle.Fill; _Previous = p; _Local_Media_Create_Model = new Cpu_Ram_Create_Model(con, d); UpdateControls(); Memory_num.DataBindings.Add( Safe_Property.GetPropertyInfo(Memory_num, a => a.Value).Name, d.Memory, Safe_Property.GetPropertyInfo(d.Memory, a => a.memory).Name, false, DataSourceUpdateMode.OnPropertyChanged); CPU_num.DataBindings.Add( Safe_Property.GetPropertyInfo(CPU_num, a => a.Value).Name, d.CPU, Safe_Property.GetPropertyInfo(d.CPU, a => a.vCpu_Count).Name, false, DataSourceUpdateMode.OnPropertyChanged); }