Ejemplo n.º 1
0
 /// <summary>
 /// Request to delete offline data in pen.
 /// </summary>
 /// <param name="sectionId">section id of note</param>
 /// <param name="ownerId">owner id of note</param>
 public bool RemoveOfflineData(int sectionId, int ownerId, int noteId)
 {
     if (IsV1Comm)
     {
         return(mCommV1.ReqRemoveOfflineData(sectionId, ownerId));
     }
     else
     {
         return(mCommV2.ReqRemoveOfflineData(sectionId, ownerId, new int[] { noteId }));
     }
 }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (lbOfflineData.SelectedItem == null)
            {
                return;
            }
            OfflineDataInfo data = lbOfflineData.SelectedItem as OfflineDataInfo;

            Request(
                delegate { mPenCommV1.ReqRemoveOfflineData(data.Section, data.Owner); },
                delegate { mPenCommV2.ReqRemoveOfflineData(data.Section, data.Owner, new int[] { data.Note }); });
        }