예제 #1
0
 private void TTson_Tick(object sender, EventArgs e)
 {
     pTYukari           = pTYukari + 5;
     pTAsagi            = pTAsagi - 3;
     pbTYukari.Location = new Point(px, pTYukari);
     pbTAsagi.Location  = new Point(px, pTAsagi);
     if (pbTYukari.Location.Y == 200)
     {
         TTson.Stop();
         //TTilk.Start();
     }
 }
예제 #2
0
        /// <summary>
        /// 读取
        /// </summary>
        public TTson Read <TTson>() where TTson : class, ITson, new()
        {
            //保存环境
            int start = m_start_postion;

            //更换参数做反序列化
            m_start_postion = m_postion;
            var data = new TTson();

            data.Deserialize(this);
            //还原环境做后续的序列化
            m_start_postion = start;
            m_postion       = m_end_postion;
            return(data);
        }