コード例 #1
0
        void OnDialogResponse(object o, Gtk.ResponseArgs args)
        {
            if (args.ResponseId == ResponseType.Ok && selectedLayout != null)
            {
                // get current dataview
                if (dataBook != null && dataBook.NPages > 0)
                {
                    DataView dv = ((DataViewDisplay)dataBook.CurrentPageWidget).View;
                    dv.Display.Layout = new Layout(selectedLayout);
                }
            }

            // dispose preview Area pixmaps
            dataPreview.Cleanup();

            this.Destroy();
        }