public CarPartsEditor(DBModelPart model) { this._openforms = new List <Form>(); this.InitializeComponent(); this.ToggleTheme(); this.Model = model; this.Text = $"{this.Model.CollectionName} Editor"; this.LoadTreeView(); this.ToggleMenuStripControls(null); this.FindAndReplaceToolStripMenuItem.Enabled = true; }
/// <summary> /// Initializes new instance of <see cref="RealCarPart"/>. /// </summary> /// <param name="model"><see cref="DBModelPart"/> to which this instance belongs to.</param> /// <param name="capacity">Initial capacity of the attribute list.</param> public RealCarPart(DBModelPart model, int capacity) : this(capacity) { this.Model = model; }
/// <summary> /// Initializes new instance of <see cref="RealCarPart"/>. /// </summary> /// <param name="model"><see cref="DBModelPart"/> to which this instance belongs to.</param> public RealCarPart(DBModelPart model) : this() { this.Model = model; }