private void Init(PartDataFormType type) { InitializeComponent(); Type = type; PartIds = new List <int>(); Prices = new List <PartPrice>(); Stocks = new List <StockTaking>(); this.Location = new Point(Cursor.Position.X, Cursor.Position.Y); }
public frmGetPartData(PartDataFormType type, List <int> partsId) { Init(type); PartIds = partsId; }
public frmGetPartData(PartDataFormType type, int partId) { Init(type); PartIds.Add(partId); }