Пример #1
0
        private List <UInt64> GetSmuSets()
        {
            List <UInt64> smus = new List <UInt64>();

            smuSet.Select(recipeNo);
            for (int i = 0; i < smuSet.RowCount; i++)
            {
                smuSet.Fetch(i);
                smus.Add(smuSet.Sets);
            }

            return(smus);
        }
Пример #2
0
        private string GetSmuString()
        {
            string ret = "None";

            smuSet.Select(recipeNo);

            if (smuSet.Empty == false)
            {
                ret = "";

                for (int i = 0; i < smuSet.RowCount; i++)
                {
                    smuSet.Fetch(i);

                    if (smuSet.Sets > 0)
                    {
                        if (ret == "")
                        {
                            ret = $"{i + 1}";
                        }
                        else
                        {
                            ret += $",{i + 1}";
                        }
                    }
                }
            }

            return(ret);
        }
Пример #3
0
        private void RefreshStringToSmus()
        {
            UlBinSets sets = new UlBinSets(8);

            stringToSmus.Clear();
            smuSet.Select(recipeNo);

            for (int i = 0; i < smuSet.RowCount; i++)
            {
                smuSet.Fetch(i);
                sets.DDWord(0, smuSet.Sets);

                if (sets.DDWord(0) == 0)
                {
                    stringToSmus.Add(-1);
                }
                else
                {
                    for (int j = 0; j < sets.Count * 8; j++)
                    {
                        if (sets[j] == true)
                        {
                            stringToSmus.Add(j);
                        }
                    }
                }
            }
        }
Пример #4
0
        private void SetEditValueFromDataSet()
        {
            nameEdit.Text      = recipeSet.Name;
            memoEdit.Text      = recipeSet.Memo;
            st1XEdit.EditValue = recipeSet.ST1_X;
            st1YEdit.EditValue = recipeSet.ST1_Y;
            st1QREdit.Text     = recipeSet.ST1_QR;
            st2XEdit.EditValue = recipeSet.ST2_X;
            st2YEdit.EditValue = recipeSet.ST2_Y;
            st2QREdit.Text     = recipeSet.ST2_QR;

            masterSet.Select(recipeNo);
            masterSet.Fetch();

            Int64 masterPatternNo = masterSet.RecNo;

            xLengthEdit.Value     = masterSet.XLength;
            yHeightEdit.Value     = masterSet.YHeight;
            stringCountEdit.Value = masterSet.StrCount;
            ledCountEdit.Value    = masterSet.LedCount;

            ctrlPatternGrid.XLength     = masterSet.XLength;
            ctrlPatternGrid.YHeight     = masterSet.YHeight;
            ctrlPatternGrid.StringCount = masterSet.StrCount;
            ctrlPatternGrid.LedCount    = masterSet.LedCount;
            ctrlPatternGrid.RefreshGrid();

            masterLedSet.Select(masterPatternNo);

            for (int i = 0; i < masterLedSet.RowCount; i++)
            {
                masterLedSet.Fetch(i);

                int x = masterLedSet.X;
                int y = masterLedSet.Y;

                ctrlPatternGrid.PatternRows[y].Leds[x].RecNo       = masterLedSet.RecNo;
                ctrlPatternGrid.PatternRows[y].Leds[x].X           = x;
                ctrlPatternGrid.PatternRows[y].Leds[x].Y           = y;
                ctrlPatternGrid.PatternRows[y].Leds[x].StringIndex = masterLedSet.StrNo;
                ctrlPatternGrid.PatternRows[y].Leds[x].LedIndex    = masterLedSet.LedNo;
                ctrlPatternGrid.PatternRows[y].Leds[x].Type        = masterLedSet.Type;
            }
            ctrlPatternGrid.RefreshGridData();

            smuSet.Select(recipeNo);
            RefreshSmuGrid(AppRes.Properties.SmuCount, masterSet.StrCount);

            for (int i = 0; i < smuSet.RowCount; i++)
            {
                smuSet.Fetch(i);

                stringRows[smuSet.StringNo].RecNo = smuSet.RecNo;
                stringRows[smuSet.StringNo].Sets.DDWord(0, smuSet.Sets);
            }
            RefreshSmuGridData();

            binSet.Select(recipeNo);

            for (int i = 0; i < binSet.RowCount; i++)
            {
                binSet.Fetch(i);
                binRows[i].RecNo = binSet.RecNo;
                binRows[i].Type  = binSet.Type;
                binRows[i].Index = binSet.Index;
                binRows[i].Name  = binSet.Name;
                binRows[i].Mark  = binSet.Mark;
            }
            AppHelper.RefreshGridData(binGridView);
        }