public ProductGroupDetailViewModel(ProductGroup productGroup) : base(new ProductGroupDetail()) { base.View.ControlMode = ZeroCommonClasses.Interfaces.ControlMode.Update; CurrentProductGroup = productGroup; ViewHeader = Properties.Resources.EditGroup; }
/// <summary> /// Deprecated Method for adding a new object to the ProductGroups EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductGroups(ProductGroup productGroup) { base.AddObject("ProductGroups", productGroup); }
/// <summary> /// Create a new ProductGroup object. /// </summary> /// <param name="code">Initial value of the Code property.</param> public static ProductGroup CreateProductGroup(global::System.Int32 code) { ProductGroup productGroup = new ProductGroup(); productGroup.Code = code; return productGroup; }