示例#1
0
        /// <summary>Pane constructor, that gets called by the host.</summary>
        public PpsPdfViewerPane(IPpsWindowPaneHost paneHost)
            : base(paneHost)
        {
            InitializeComponent();

            // add commands
            Commands.AddButton("100;100", "print", new PpsAsyncCommand(ctx => PrintAsync(ctx), ctx => CanPrint(ctx)), "Drucken", "Druckt die Pdf-Datei.");
        }         // ctor
示例#2
0
        public PpsHelpPagePane(IPpsWindowPaneHost paneHost)
            : base(paneHost)
        {
            Commands.AddButton("100;100", "save",
                               PublishCommand,
                               "Veröffentlichen", "Änderungen für alle freigeben"
                               );

            this.AddCommandBinding(Shell, PublishCommand,
                                   new PpsAsyncCommand(
                                       ctx => PublishHelpPageAsync(),
                                       ctx => IsLocalChanged
                                       )
                                   );
        }         // ctor