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