Beispiel #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();
 }
Beispiel #2
0
 private void OnDataSourceChanged()
 {
     if (DataSourceChanged != null)
     {
         DataSourceChangedEventArgs e = new DataSourceChangedEventArgs(this._dataSource.String);
         DataSourceChanged(this, e);
     }
 }
Beispiel #3
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();
 }
 //-------------------------------------------------------------------------
 protected virtual void RaiseDataSourceChangedEvent(DataSourceChangedEventArgs e)
 {
     DataSourceChangedEvent?.Invoke(this, e);
 }
Beispiel #5
0
 protected internal virtual void MessagesDataChanged(DataSourceChangedEventArgs args)
 {
 }
 private void ucMailTree1_DataSourceChanged(object sender, DataSourceChangedEventArgs e)
 {
     _currentMailType = e.Type;
     _modulesNavigator.CurrentModule.MessagesDataChanged(e);
     ShowInfo(e.List.Count);
 }