예제 #1
0
        //private void btnNewTrack_Click(object sender, EventArgs e)
        //{
        //    FuncCallDelegate func = new FuncCallDelegate(_btnNewTrack_Click);
        //    func.BeginInvoke(null, null, null, null);
        //}

        private void btnNewTrack_Click(object sender, EventArgs e)
        {
            NewTrackOperation result = session.NewTrack();

            if (result.OK)
            {
                log("New track ID: " + result.Result);
            }
            else
            {
                log(result.Message);
            }
        }
예제 #2
0
 private void _btnNewTrack_Click(object sender, EventArgs e)
 {
     try
     {
         NewTrackOperation result = session.NewTrack();
         if (result.OK)
         {
             output("New track: " + result.Result);
             updateTrackID(result.Result + "");
         }
         else
         {
             output("New track: failed");
         }
     }
     catch (Exception ex)
     {
         output(ex.Message);
     }
 }