public void Remove(Base cProt) { try { this.List.Remove(cProt); } catch (Exception) { } }
public InterfaceControl(Control Parent, Base Protocol, Info Info) { try { this.Protocol = Protocol; this.Info = Info; this.Parent = Parent; this.Location = new Point(0, 0); this.Size = this.Parent.Size; this.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; InitializeComponent(); } catch (Exception ex) { Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, (string) ("Couldn\'t create new InterfaceControl" + Constants.vbNewLine + ex.Message)); } }
public Base Add(Base cProt) { this.List.Add(cProt); return cProt; }