Пример #1
0
        void buildPreviewToolbar()
        {
            pageSpinButton = new ToolBarSpinButton(40, 1, 1, 1);
            pageSpinButton.SpinButton.ValueChanged += delegate(object sender, EventArgs e) {
                pageNumber  = (int)(pageSpinButton.SpinButton.Value);
                pageNumber -= 1;
                previewDrawingArea.QueueDraw();
            };

            ToolBarLabel pagelabel = new ToolBarLabel("Page: ");

            previewToolbar.Insert(pagelabel, 0);
            previewToolbar.Insert(pageSpinButton, 1);
        }
Пример #2
0
        void buildPreviewToolbar()
        {
            pageSpinButton = new ToolBarSpinButton (40, 1, 1, 1);
            pageSpinButton.SpinButton.ValueChanged += delegate(object sender, EventArgs e) {

                pageNumber = (int)(pageSpinButton.SpinButton.Value);
                pageNumber -= 1;
                previewDrawingArea.QueueDraw ();
            };

            ToolBarLabel pagelabel = new ToolBarLabel ("Page: ");
            previewToolbar.Insert (pagelabel, 0);
            previewToolbar.Insert (pageSpinButton, 1);
        }