Exemple #1
0
 protected internal override void MessagesDataChanged(DataSourceChangedEventArgs args)
 {
     partName = args.Caption;
     gridControl1Test2.DataSource = args.List;
     if (args.Type == MailType.Deleted)
     {
         gcDate.Caption = Properties.Resources.DateDeleted;
         gcFrom.Caption = Properties.Resources.FromDeleted;
         OwnerForm.FilterColumnManager.UpdateColumnsCaption(Properties.Resources.DateDeleted, Properties.Resources.FromDeleted);
     }
     else if (args.Type == MailType.Inbox)
     {
         gcDate.Caption = Properties.Resources.DateInbox;
         gcFrom.Caption = Properties.Resources.FromInbox;
         OwnerForm.FilterColumnManager.UpdateColumnsCaption(Properties.Resources.DateInbox, Properties.Resources.FromInbox);
     }
     else
     {
         gcDate.Caption = Properties.Resources.DateOutbox;
         gcFrom.Caption = Properties.Resources.FromOutbox;
         OwnerForm.FilterColumnManager.UpdateColumnsCaption(Properties.Resources.DateOutbox, Properties.Resources.FromOutbox);
     }
     if (FindControl != null)
     {
         FindControl.FindEdit.Properties.NullValuePrompt = StringResources.GetSearchPrompt(args.Type);
         FindControl.FindEdit.Properties.NullValuePromptShowForEmptyValue = true;
         if (findControlManager == null)
         {
             findControlManager = new FindControlManager(ribbon, FindControl);
         }
     }
     UpdateCurrentMessage();
 }
Exemple #2
0
 protected internal override void MessagesDataChanged(DataSourceChangedEventArgs args)
 {
     partName = args.Caption;
     gridControl1.DataSource = args.List;
     if(args.Type == MailType.Deleted) {
         gcDate.Caption = Properties.Resources.DateDeleted;
         gcFrom.Caption = Properties.Resources.FromDeleted;
         OwnerForm.FilterColumnManager.UpdateColumnsCaption(Properties.Resources.DateDeleted, Properties.Resources.FromDeleted);
     } else if(args.Type == MailType.Inbox) {
         gcDate.Caption = Properties.Resources.DateInbox;
         gcFrom.Caption = Properties.Resources.FromInbox;
         OwnerForm.FilterColumnManager.UpdateColumnsCaption(Properties.Resources.DateInbox, Properties.Resources.FromInbox);
     } else {
         gcDate.Caption = Properties.Resources.DateOutbox;
         gcFrom.Caption = Properties.Resources.FromOutbox;
         OwnerForm.FilterColumnManager.UpdateColumnsCaption(Properties.Resources.DateOutbox, Properties.Resources.FromOutbox);
     }
     if(FindControl != null) {
         FindControl.FindEdit.Properties.NullValuePrompt = StringResources.GetSearchPrompt(args.Type);
         FindControl.FindEdit.Properties.NullValuePromptShowForEmptyValue = true;
         if(findControlManager == null)
             findControlManager = new FindControlManager(ribbon, FindControl);
     }
     UpdateCurrentMessage();
 }