void dsAddID()
        {
            dispalyClass.clearID();
            dispalyClass.FilterEnabled = true;
            dispalyClass.dispalyMode   = DISPLAYMODE.COUNTINGMODE;

            for (int i = 0; i < dsClass.discreteIDs.Count; i++)
            {
                dispalyClass.insertID(dsClass.discreteIDs[i].obj.ID);
            }
        }
示例#2
0
        /*---------------------------------------------------------------------------------------------------*/
        void prepareID()
        {
            displayClass.clearID();
            for (int index = 0; index < dataGridViewfilter.Rows.Count; index++)
            {
                if ((bool)dataGridViewfilter.Rows[index].Cells[0].Value)
                {
                    uint id;
                    try { id = Convert.ToUInt32(dataGridViewfilter.Rows[index].Cells[1].Value.ToString(), 16); }
                    catch (Exception) { MessageBox.Show(string.Format("第{0}行ID输入错误", index + 1)); return; }

                    displayClass.insertID(id);
                }
            }
        }