using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Ubik.Engine.Client;
using StoresAndStockPricing.Model;
namespace StoresAndStockPricing.Client{
public partial class BrandDetailsForm : Form
{
private Session _session;
private Brand _brand;
public BrandDetailsForm()
{
InitializeComponent();
}
public BrandDetailsForm(Session session, Brand brand)
: this()
{
if (session == null)
throw new ArgumentNullException("session");
if (brand == null)
throw new ArgumentNullException("brand");
_session = session;
_brand = brand;
_nameEdit.DataBindings.Add(new Binding("Text", _brand, "Name"));
_notesEdit.DataBindings.Add(new Binding("Text", _brand, "Notes"));
}
}
}
|