示例#1
0
文件: Form3.cs 项目: trananh1992/MSC
        void CreateData()
        {
            WRegistry.SetReg();

            if (Line != null)
            {
                for (int i = 0; i < 3; ++i)
                {
                    if (Line[i] != null && Line[i] != PrevLine[i])
                    {
                        PrevLine[i] = Line[i];
                        WRegistry.SetLine(Line[i], i);
                    }
                }
            }

            if (TempKey != null)
            {
                for (int i = 0; i < 5; ++i)
                {
                    if (TempKey[i] != null && TempKey[i] != PrevTempKey[i])
                    {
                        PrevTempKey[i] = TempKey[i];
                        WRegistry.SetKey(TempKey[i], i);
                    }
                }
            }

            WRegistry.CloseReg();
        }
示例#2
0
文件: Form4.cs 项目: trananh1992/MSC
        void WriteRG()
        {
            WRegistry.SetReg();

            WRegistry.SetText(key.ToString());

            WRegistry.CloseReg();
        }