Esempio n. 1
0
        internal DetailsTemplatesEditor(string templateIdentity) : this()
        {
            this.templatePage.BindingSource.DataSource = typeof(DetailsTemplate);
            MonadDataHandler monadDataHandler = new MonadDataHandler(string.Empty, typeof(DetailsTemplate));

            monadDataHandler.Identity = templateIdentity;
            this.templatePage.Context = new DataContext(monadDataHandler, true);
            this.Text = templateIdentity;
        }
Esempio n. 2
0
        protected override ExchangePropertyPageControl[] OnGetSingleSelectionPropertyPageControls()
        {
            QueueViewerMessagesResultPane queueViewerMessagesResultPane = base.ResultPane as QueueViewerMessagesResultPane;
            MonadDataHandler monadDataHandler = new MonadDataHandler(queueViewerMessagesResultPane.SelectedIdentity.ToString(), "get-message", "");

            monadDataHandler.SelectCommand.Parameters.AddWithValue("IncludeRecipientInfo", true);
            DataContext context = new DataContext(monadDataHandler);

            return(new ExchangePropertyPageControl[]
            {
                new MessagePropertyPage
                {
                    Context = context
                },
                new RecipientsInfoPropertyPage
                {
                    Context = context
                }
            });
        }