public CutlistHeaderInfo(Part p, CutlistData cd, CutlistFunction c) { InitializeComponent(); SetLWHVisibility(Properties.Settings.Default.CHIHideLWH); Location = Properties.Settings.Default.CutlistHeaderLocation; Size = Properties.Settings.Default.CutlistHeaderSize; switch (c) { case CutlistFunction.AddToExistingAlreadySelected: InitControlsWithPart(p, cd); break; case CutlistFunction.AddToExistingNotSelected: InitControlsWithPart(p, cd); break; case CutlistFunction.CreateNew: InitControlsWithNewPart(p, cd); break; default: break; } }