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;
       }
 }
示例#2
0
        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;
            }
        }