Ejemplo n.º 1
0
        private void Initialize()
        {
            recipeNo = 0;

            recipeSet    = new RecipeDataSet(AppRes.DB.Connect, null, null);
            masterSet    = new MasterPatternDataSet(AppRes.DB.Connect, null, null);
            masterLedSet = new MasterPatternLedDataSet(AppRes.DB.Connect, null, null);
            slaveSet     = new SlavePatternDataSet(AppRes.DB.Connect, null, null);
            slaveLedSet  = new SlavePatternLedDataSet(AppRes.DB.Connect, null, null);
            smuSet       = new SmuDataSet(AppRes.DB.Connect, null, null);
            binSet       = new BinDataSet(AppRes.DB.Connect, null, null);

            mode     = EDataSetMode.View;
            bookmark = new GridBookmark(recipeGridView);

            stringToSmus = new List <int>();
            stringRows   = new List <StringRow>();

            ctrlPatternGrid             = new CtrlPatternGrid(EPatternDispMode.String, stringToSmus);
            ctrlPatternGrid.XLength     = (int)xLengthEdit.Value;
            ctrlPatternGrid.YHeight     = (int)yHeightEdit.Value;
            ctrlPatternGrid.StringCount = (int)stringCountEdit.Value;
            ctrlPatternGrid.LedCount    = (int)ledCountEdit.Value;

            patternGridPanel.Controls.Add(ctrlPatternGrid);

            smuGrid.DataSource = stringRows;

            smuGridView.BeginUpdate();
            try
            {
                smuGridView.Columns.Clear();
                smuGridView.Columns.Add(CreateGridColumn(" ", "StringNo", 64));

                for (int i = 0; i < 20; i++)
                {
                    smuGridView.Columns.Add(CreateGridColumn($"SMU{i + 1}", $"SMU{i + 1}", 64, true, true));
                }
            }
            finally
            {
                smuGridView.EndUpdate();
            }

            binRows = new List <RecipeBinRow>();

            for (int i = 0; i < AppRes.Properties.BinCount; i++)
            {
                RecipeBinRow row = new RecipeBinRow();
                row.Clear(i + 1);
                binRows.Add(row);
            }

            binTypeLookUpEdit.DataSource    = EnumHelper.GetNameValues <EBinType>();
            binTypeLookUpEdit.DisplayMember = "Name";
            binTypeLookUpEdit.ValueMember   = "Value";
            binTypeLookUpEdit.KeyMember     = "Value";
        }
Ejemplo n.º 2
0
        private void Initialize()
        {
            masterSet   = new MasterPatternDataSet(AppRes.DB.Connect, null, null);
            slaveSet    = new SlavePatternDataSet(AppRes.DB.Connect, null, null);
            slaveLedSet = new SlavePatternLedDataSet(AppRes.DB.Connect, null, null);
            smuSet      = new SmuDataSet(AppRes.DB.Connect, null, null);

            stringToSmus = new List <int>();
            RefreshStringToSmus();
            DispSmuColorButtons();

            ctrlPatternGrid = new CtrlPatternGrid(EPatternDispMode.StringAndLamp, stringToSmus);
            patternGridPanel.Controls.Add(ctrlPatternGrid);
        }
Ejemplo n.º 3
0
        private void Initialize()
        {
            recipeSet    = new RecipeDataSet(AppRes.DB.Connect, null, null);
            masterSet    = new MasterPatternDataSet(AppRes.DB.Connect, null, null);
            masterLedSet = new MasterPatternLedDataSet(AppRes.DB.Connect, null, null);
            slaveSet     = new SlavePatternDataSet(AppRes.DB.Connect, null, null);
            slaveLedSet  = new SlavePatternLedDataSet(AppRes.DB.Connect, null, null);
            smuSet       = new SmuDataSet(AppRes.DB.Connect, null, null);

            stringToSmus = new List <int>();

            mode     = EDataSetMode.View;
            bookmark = new GridBookmark(patternGridView);

            ctrlPatternGrid = new CtrlPatternGrid(EPatternDispMode.StringAndLamp, stringToSmus);
            patternGridPanel.Controls.Add(ctrlPatternGrid);

            DispSmuColorButtons();
            LoadRecipeComboItems();
        }