Beispiel #1
0
 protected void InboxDataGrid_Delete(System.Object sender, System.Web.UI.WebControls.DataGridCommandEventArgs args)
 {
     if (this.delete != null && this.delete.Count > 0)
     {
         anmar.SharpWebMail.CTNInbox inbox = (anmar.SharpWebMail.CTNInbox)Session["inbox"];
         foreach (System.String item in this.delete)
         {
             if (item != null)
             {
                 inbox.DeleteMessage(item);
             }
         }
         if ((bool)Application["sharpwebmail/read/inbox/commit_ondelete"])
         {
             inbox.Client.PurgeInbox(inbox, false);
         }
         this.SharpUI.setVariableLabels();
     }
 }