Beispiel #1
0
        //添加时间
        public void 添加时间()
        {
            User_DateTime DateTime = new User_DateTime();

            DateTime.bDay                    = false;
            DateTime.bHour                   = true;
            DateTime.BkColor                 = 0;
            DateTime.bMin                    = true;
            DateTime.bMouth                  = false;
            DateTime.bMulOrSingleLine        = false;
            DateTime.bSec                    = true;
            DateTime.bWeek                   = false;
            DateTime.bYear                   = false;
            DateTime.bYearDisType            = false;
            DateTime.chTitle                 = "";
            DateTime.PartInfo.iFrameMode     = 1;
            DateTime.iDisplayType            = 1;
            DateTime.PartInfo.FrameColor     = 0xFFFF;
            DateTime.PartInfo.iHeight        = 32;
            DateTime.PartInfo.iWidth         = 64;
            DateTime.PartInfo.iX             = 0;
            DateTime.PartInfo.iY             = 0;
            DateTime.FontInfo.bFontBold      = false;
            DateTime.FontInfo.bFontItaic     = false;
            DateTime.FontInfo.bFontUnderline = false;
            DateTime.FontInfo.colorFont      = 0xFF;
            DateTime.FontInfo.iAlignStyle    = 1;
            DateTime.FontInfo.iFontSize      = 12;
            DateTime.FontInfo.strFontName    = "宋体";
            if (-1 == User_AddTime(g_iCardNum, ref DateTime, g_iProgramIndex))
            {
                Console.WriteLine("添加时间失败!");
            }
            else
            {
                Console.WriteLine("添加时间成功!");
            }
        }
Beispiel #2
0
 public static extern int User_AddTime(int CardNum, ref User_DateTime pdateTime, int iProgramIndex);