public AddComputer(DestinationBase db) : this() { this.dbEdit = db; if (db is Subscription) { this.isSubscription = true; } IDestinationHandler handler = null; if (isSubscription) { handler = SubscriptionManager.GetHandler(db); } else { handler = ForwardDestinationManager.GetHandler(db); } ShowInputs(null, handler); }
private void ShowInputs(DestinationListItem dli, IDestinationHandler handler) { this.panelBonjour.Visible = false; this.panelDetails.Visible = true; DestinationSettingsPanel panel = handler.GetSettingsPanel(this.dbEdit); this.settingsPanel = panel; panel.ValidChanged += new DestinationSettingsPanel.ValidChangedEventHandler(panel_ValidChanged); this.panelDetails.Controls.Add(panel); panel.Visible = true; panel.Initialize(this.isSubscription, dli, this.dbEdit); this.buttonSave.Visible = true; }
/// <summary> /// Initializes a new instance of the <see cref="DestinationListItem"/> class. /// </summary> /// <param name="text">The text of the item.</param> /// <param name="image">The icon of the item.</param> /// <param name="idh">The <see cref="IDestinationHandler"/> that manages the <see cref="DestinationBase"/> hat this item represents.</param> public DestinationListItem(string text, Image image, IDestinationHandler idh) { this.text = text; this.image = image; this.idh = idh; }
public DestinationListItem(string text, Image image, IDestinationHandler idh) { this.text = text; this.image = image; this.idh = idh; }