예제 #1
0
        private void initializeGUIWaferFabSettings(WaferFabSettings settings)
        {
            // Initialize workcenters
            foreach (var wc in settings.WorkCenters)
            {
                WorkCenters.Add(new WorkCenterData(wc, settings.WCServiceTimeDistributions[wc].Mean));
            }
            // Initialize lotstarts
            foreach (var lotStart in settings.ManualLotStartQtys)
            {
                LotStartQty newLotStart = new LotStartQty(lotStart.Key, lotStart.Value);
                newLotStart.PropertyChanged += LotStartQtys_PropertyChanged;

                LotStartQtys.Add(newLotStart);
            }
        }
예제 #2
0
        /// <summary>
        /// Va chercher tout les workcenter présent en db et les ajoutes à la combobox
        /// </summary>
        private void GetWorkCenter()
        {
            lblName.Text    = $"Bonjour {FormUser.ToString()}";
            lblMessage.Text = "Merci de sélectionner une section.";

            List <ADR_WorkCenter> WorkCenters;

            using (WorkCenterRepository WorkCenterRepository = new WorkCenterRepository())
            {
                WorkCenters = WorkCenterRepository.Get().ToList();
            }

            cbWorkCenter.DataSource    = WorkCenters;
            cbWorkCenter.DisplayMember = "WorkCenter";
            cbWorkCenter.ValueMember   = "Id";

            if (WorkCenterUser != null)
            {
                cbWorkCenter.Text = WorkCenters.Where((wk) => wk.Id == WorkCenterUser.WorkCenterId).Select((wk) => wk.WorkCenter).FirstOrDefault();
            }
        }
예제 #3
0
 public void AddWorkCenter(string name, WorkCenter workCenter)
 {
     WorkCenters.Add(name, workCenter);
 }