Example #1
0
        public void LoadPanel(String panelStr)
        {
            nfloat height = this.View.Bounds.Size.Height - this.NavigationController.NavigationBar.Frame.Bottom - 44;

            if (panelStr == "Note")
            {
                if (notePanel == null)
                {
                    notePanel             = new NotePanel(this, this.book, new CGRect(this.View.Bounds.Size.Width, this.NavigationController.NavigationBar.Frame.Bottom, 280, height));
                    notePanel.CloseEvent += HideNotePanel;
                    this.View.AddSubview(notePanel);
                }
            }
            else if (panelStr == "Print")
            {
                if (printPanel == null)
                {
                    printPanel             = new PrintPanel(this.book.ID, PrintButtonItem, new CGRect(this.View.Bounds.Size.Width, this.NavigationController.NavigationBar.Frame.Bottom, 280, height));
                    printPanel.CloseEvent += HidePrintPanel;
                    printPanel.EmailEvent += EmailPdfFile;
                    this.View.AddSubview(printPanel);
                }
            }
        }
Example #2
0
 public PrintDataSource(PrintPanel parent)
 {
     this.parent = parent;
 }