コード例 #1
0
 public ProductGroupDetailViewModel(ProductGroup productGroup)
     : base(new ProductGroupDetail())
 {
     base.View.ControlMode = ZeroCommonClasses.Interfaces.ControlMode.Update;
     CurrentProductGroup = productGroup;
     ViewHeader = Properties.Resources.EditGroup;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductGroups EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductGroups(ProductGroup productGroup)
 {
     base.AddObject("ProductGroups", productGroup);
 }
コード例 #3
0
 /// <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;
 }