public MachineProgramManager(SwProperties p, string searchterm)
        {
            InitializeComponent();
              prop = p;
              cutlistData = p.cutlistData;
              string s = OnlyDigits(searchterm);
              dtP1 = cutlistData.GetMachinesByProg(s, 1);
              dtP2 = cutlistData.GetMachinesByProg(s, 2);
              dtP3 = cutlistData.GetMachinesByProg(s, 3);
              wubp = cutlistData.GetWhereUsedByProg(s);
              gpbc = cutlistData.GetPartsByCNC(s);

              init();
        }
        public MachineProgramManager(SwProperties p, string searchterm)
        {
            InitializeComponent();
            prop        = p;
            cutlistData = p.cutlistData;
            string s = OnlyDigits(searchterm);

            dtP1 = cutlistData.GetMachinesByProg(s, 1);
            dtP2 = cutlistData.GetMachinesByProg(s, 2);
            dtP3 = cutlistData.GetMachinesByProg(s, 3);
            wubp = cutlistData.GetWhereUsedByProg(s);
            gpbc = cutlistData.GetPartsByCNC(s);

            init();
        }