예제 #1
0
 private void SafeSendListItemUpdate(object sender, ListItemUpdateEventArgs e)
 {
     try
     {
         if (OnListItemUpdate != null)
         {
             OnListItemUpdate(this, e);
         }
     }
     catch
     {
     }
 }
예제 #2
0
 void convertWorker_OnListItemUpdate(object sender, ListItemUpdateEventArgs e)
 {
     if (workerId != e.Id)
     {
         return;
     }
     if (e.Index < listViewSourceFiles.Items.Count)
     {
         FileConvertListViewItem li = listViewSourceFiles.Items[e.Index] as FileConvertListViewItem;
         if (li != null)
         {
             li.SubItems["status"].Text = e.Message ?? string.Empty;
             this.Refresh();
         }
     }
 }