public virtual AbstractUserControl Initialize(AbstractUserControlContext ctx) { _ctx = ctx; DeviceInfo info = ctx.Info; Name = info.type + info.id.ToString().Replace('-', '_'); return(this); }
public override AbstractUserControl Initialize(AbstractUserControlContext ctx) { base.Initialize(ctx); collectorsControl.Initialize(ctx.Info); DataContext = ctx.Info; return(this); }
public override AbstractUserControl Initialize(AbstractUserControlContext ctx) { base.Initialize(ctx); MachineNameTextBox.Text = ctx.Info.name; IpAddress.Text = ctx.Info.ipAddress; if (ctx.Groups != null && ctx.Groups.Count == 0) { ctx.Groups.CollectionChanged += onGroupsCollectionChanged; } UpdateGroups(groupComboBox, LeaveGroup); DataContext = ctx.Info; return(this); }