public IPhoneDeviceConsole () : base ("iPhone Device Console") { BorderWidth = 6; //FIXME: persist these values DefaultWidth = 400; DefaultHeight = 400; var vbox = new VBox () { Spacing = 12 }; var bbox = new HButtonBox () { Layout = ButtonBoxStyle.End, }; var closeButton = new Button (Gtk.Stock.Close); var reconnectButton = new Button () { Label = "Reconnect" }; log = new LogView (); this.Add (vbox); vbox.PackEnd (bbox, false, false, 0); vbox.PackEnd (log, true, true, 0); bbox.PackEnd (reconnectButton); bbox.PackEnd (closeButton); closeButton.Clicked += delegate { Destroy (); }; DeleteEvent += delegate { Destroy (); }; reconnectButton.Clicked += delegate { Disconnect (); Connect (); }; ShowAll (); Connect (); }
public FirstRun() : base(WindowType.Toplevel) { IconName = Stock.Convert; Title = "Import OPML file"; Resizable = false; BorderWidth = 6; vbox = new VBox(false, 6); Add(vbox); hbox = new HBox(false, 6); vbox.PackStart(hbox); image = new Image("dialog-question", IconSize.Dialog); hbox.PackStart(image); table = new Table(2, 3, false); table.RowSpacing = 6; hbox.PackStart(table); label = new Label("To import feeds, select an OPML file."); label.LineWrap = true; table.Attach(label, 1, 2, 0, 1); fcdialog = new OpmlDialog(); fcbutton = new FileChooserButton(fcdialog); table.Attach(fcbutton, 1, 2, 1, 2); bbox = new HButtonBox(); vbox.PackEnd(bbox); cancel_button = new Button(Stock.Cancel); cancel_button.Clicked += OnCancel; bbox.PackEnd(cancel_button); add_button = new Button(Stock.Convert); add_button.Clicked += new EventHandler(OnImport); bbox.PackEnd(add_button); }
void Build () { BorderWidth = 0; WidthRequest = 901; HeightRequest = 632; Name = "wizard_dialog"; Title = GettextCatalog.GetString ("New Project"); WindowPosition = WindowPosition.CenterOnParent; TransientFor = IdeApp.Workbench.RootWindow; projectConfigurationWidget = new GtkProjectConfigurationWidget (); projectConfigurationWidget.Name = "projectConfigurationWidget"; // Top banner of dialog. var topLabelEventBox = new EventBox (); topLabelEventBox.Name = "topLabelEventBox"; topLabelEventBox.HeightRequest = 52; topLabelEventBox.ModifyBg (StateType.Normal, bannerBackgroundColor); topLabelEventBox.ModifyFg (StateType.Normal, whiteColor); topLabelEventBox.BorderWidth = 0; var topBannerTopEdgeLineEventBox = new EventBox (); topBannerTopEdgeLineEventBox.Name = "topBannerTopEdgeLineEventBox"; topBannerTopEdgeLineEventBox.HeightRequest = 1; topBannerTopEdgeLineEventBox.ModifyBg (StateType.Normal, bannerLineColor); topBannerTopEdgeLineEventBox.BorderWidth = 0; var topBannerBottomEdgeLineEventBox = new EventBox (); topBannerBottomEdgeLineEventBox.Name = "topBannerBottomEdgeLineEventBox"; topBannerBottomEdgeLineEventBox.HeightRequest = 1; topBannerBottomEdgeLineEventBox.ModifyBg (StateType.Normal, bannerLineColor); topBannerBottomEdgeLineEventBox.BorderWidth = 0; topBannerLabel = new Label (); topBannerLabel.Name = "topBannerLabel"; Pango.FontDescription font = topBannerLabel.Style.FontDescription.Copy (); // UNDONE: VV: Use FontService? font.Size = (int)(font.Size * 1.8); topBannerLabel.ModifyFont (font); topBannerLabel.ModifyFg (StateType.Normal, whiteColor); var topLabelHBox = new HBox (); topLabelHBox.Name = "topLabelHBox"; topLabelHBox.PackStart (topBannerLabel, false, false, 20); topLabelEventBox.Add (topLabelHBox); VBox.PackStart (topBannerTopEdgeLineEventBox, false, false, 0); VBox.PackStart (topLabelEventBox, false, false, 0); VBox.PackStart (topBannerBottomEdgeLineEventBox, false, false, 0); // Main templates section. centreVBox = new VBox (); centreVBox.Name = "centreVBox"; VBox.PackStart (centreVBox, true, true, 0); templatesHBox = new HBox (); templatesHBox.Name = "templatesHBox"; centreVBox.PackEnd (templatesHBox, true, true, 0); // Template categories. var templateCategoriesBgBox = new EventBox (); templateCategoriesBgBox.Name = "templateCategoriesVBox"; templateCategoriesBgBox.BorderWidth = 0; templateCategoriesBgBox.ModifyBg (StateType.Normal, categoriesBackgroundColor); templateCategoriesBgBox.WidthRequest = 220; var templateCategoriesScrolledWindow = new ScrolledWindow (); templateCategoriesScrolledWindow.Name = "templateCategoriesScrolledWindow"; templateCategoriesScrolledWindow.HscrollbarPolicy = PolicyType.Never; // Template categories tree view. templateCategoriesTreeView = new TreeView (); templateCategoriesTreeView.Name = "templateCategoriesTreeView"; templateCategoriesTreeView.BorderWidth = 0; templateCategoriesTreeView.HeadersVisible = false; templateCategoriesTreeView.Model = templateCategoriesListStore; templateCategoriesTreeView.SearchColumn = -1; // disable the interactive search templateCategoriesTreeView.AppendColumn (CreateTemplateCategoriesTreeViewColumn ()); templateCategoriesScrolledWindow.Add (templateCategoriesTreeView); templateCategoriesBgBox.Add (templateCategoriesScrolledWindow); templatesHBox.PackStart (templateCategoriesBgBox, false, false, 0); // Templates. var templatesBgBox = new EventBox (); templatesBgBox.ModifyBg (StateType.Normal, templateListBackgroundColor); templatesBgBox.Name = "templatesVBox"; templatesBgBox.WidthRequest = 400; templatesHBox.PackStart (templatesBgBox, false, false, 0); var templatesScrolledWindow = new ScrolledWindow (); templatesScrolledWindow.Name = "templatesScrolledWindow"; templatesScrolledWindow.HscrollbarPolicy = PolicyType.Never; // Templates tree view. templatesTreeView = new TreeView (); templatesTreeView.Name = "templatesTreeView"; templatesTreeView.HeadersVisible = false; templatesTreeView.Model = templatesListStore; templatesTreeView.SearchColumn = -1; // disable the interactive search templatesTreeView.AppendColumn (CreateTemplateListTreeViewColumn ()); templatesScrolledWindow.Add (templatesTreeView); templatesBgBox.Add (templatesScrolledWindow); // Template var templateEventBox = new EventBox (); templateEventBox.Name = "templateEventBox"; templateEventBox.ModifyBg (StateType.Normal, templateBackgroundColor); templatesHBox.PackStart (templateEventBox, true, true, 0); templateVBox = new VBox (); templateVBox.Visible = false; templateVBox.BorderWidth = 20; templateVBox.Spacing = 10; templateEventBox.Add (templateVBox); // Template large image. templateImage = new ImageView (); templateImage.Name = "templateImage"; templateImage.HeightRequest = 140; templateImage.WidthRequest = 240; templateVBox.PackStart (templateImage, false, false, 10); // Template description. templateNameLabel = new Label (); templateNameLabel.Name = "templateNameLabel"; templateNameLabel.WidthRequest = 240; templateNameLabel.Wrap = true; templateNameLabel.Xalign = 0; templateNameLabel.Markup = MarkupTemplateName ("TemplateName"); templateVBox.PackStart (templateNameLabel, false, false, 0); templateDescriptionLabel = new Label (); templateDescriptionLabel.Name = "templateDescriptionLabel"; templateDescriptionLabel.WidthRequest = 240; templateDescriptionLabel.Wrap = true; templateDescriptionLabel.Xalign = 0; templateVBox.PackStart (templateDescriptionLabel, false, false, 0); templateVBox.PackStart (new Label (), true, true, 0); // Template - button separator. var templateSectionSeparatorEventBox = new EventBox (); templateSectionSeparatorEventBox.Name = "templateSectionSeparatorEventBox"; templateSectionSeparatorEventBox.HeightRequest = 1; templateSectionSeparatorEventBox.ModifyBg (StateType.Normal, templateSectionSeparatorColor); VBox.PackStart (templateSectionSeparatorEventBox, false, false, 0); // Buttons at bottom of dialog. var bottomHBox = new HBox (); bottomHBox.Name = "bottomHBox"; VBox.PackStart (bottomHBox, false, false, 0); // Cancel button - bottom left. var cancelButtonBox = new HButtonBox (); cancelButtonBox.Name = "cancelButtonBox"; cancelButtonBox.BorderWidth = 16; cancelButton = new Button (); cancelButton.Name = "cancelButton"; cancelButton.Label = "gtk-cancel"; cancelButton.UseStock = true; cancelButtonBox.PackStart (cancelButton, false, false, 0); bottomHBox.PackStart (cancelButtonBox, false, false, 0); // Previous button - bottom right. var previousNextButtonBox = new HButtonBox (); previousNextButtonBox.Name = "previousNextButtonBox"; previousNextButtonBox.BorderWidth = 16; previousNextButtonBox.Spacing = 9; bottomHBox.PackStart (previousNextButtonBox); previousNextButtonBox.Layout = ButtonBoxStyle.End; previousButton = new Button (); previousButton.Name = "previousButton"; previousButton.Label = GettextCatalog.GetString ("Previous"); previousButton.Sensitive = false; previousNextButtonBox.PackEnd (previousButton); // Next button - bottom right. nextButton = new Button (); nextButton.Name = "nextButton"; nextButton.Label = GettextCatalog.GetString ("Next"); previousNextButtonBox.PackEnd (nextButton); // Remove default button action area. VBox.Remove (ActionArea); if (Child != null) { Child.ShowAll (); } Show (); templatesTreeView.HasFocus = true; Resizable = false; }
private void DialogConstructPriv() { Title = "Add tag"; IconName = "add"; DeleteEvent += OnCancel; Resizable = false; BorderWidth = 6; vbox = new VBox(false, 6); Add(vbox); hbox = new HBox(false, 6); vbox.PackStart(hbox); image = new Image(Stock.Add, IconSize.Dialog); hbox.PackStart(image); table = new Table(2, 3, false); table.RowSpacing = 6; hbox.PackEnd(table); label = new Label(); label.Markup = "Enter the name of the tag:"; table.Attach(label, 1, 2, 0, 1); entry = new Entry(); table.Attach(entry, 1, 2, 1, 2); bbox = new HButtonBox(); bbox.Layout = ButtonBoxStyle.End; bbox.Spacing = 6; vbox.PackEnd(bbox); cancel_button = new Button(Stock.Cancel); cancel_button.Clicked += new EventHandler(OnCancel); bbox.PackStart(cancel_button); add_button = new Button(Stock.Add); bbox.PackEnd(add_button); }
public AddFeedDialog() : base(WindowType.Toplevel) { Title = StringCatalog.AddFeedTitle; IconName = "add"; DeleteEvent += OnCancel; Resizable = false; BorderWidth = 6; vbox = new VBox(false, 6); Add(vbox); hbox = new HBox(false, 6); vbox.PackStart(hbox); image = new Image(Stock.Add, IconSize.Dialog); hbox.PackStart(image); table = new Table(2, 3, false); table.RowSpacing = 6; hbox.PackEnd(table); label = new Label(); label.Markup = StringCatalog.AddFeedMessage; table.Attach(label, 1, 2, 0, 1); entry = new Entry(); entry.Activated += OnActivated; table.Attach(entry, 1, 2, 1, 2); bbox = new HButtonBox(); bbox.Layout = ButtonBoxStyle.End; bbox.Spacing = 6; vbox.PackEnd(bbox); cancel_button = new Button(Stock.Cancel); cancel_button.Clicked += new EventHandler(OnCancel); bbox.PackStart(cancel_button); add_button = new Button(Stock.Add); add_button.Clicked += new EventHandler(OnAdd); add_button.GrabFocus(); bbox.PackEnd(add_button); }
private Widget CreateBottomBar() { HButtonBox buttonBox = new HButtonBox (); buttonBox.Layout = ButtonBoxStyle.Edge; toggleSidebarButton = new Button (); toggleSidebarButton.Label = Catalog.GetString ("Close Sidebar"); toggleSidebarButton.Relief = ReliefStyle.None; toggleSidebarButton.Clicked += OnToggleSidebarButtonClicked; toggleSidebarButton.Show (); buttonBox.PackStart (toggleSidebarButton, false, false, 0); personHScale = new HScale (1, 3, 1); personHScale.DrawValue = false; personHScale.ValueChanged += OnPersonHScaledValueChanged; personHScale.Show (); buttonBox.PackEnd (personHScale, false, false, 0); buttonBox.Show (); return buttonBox; }
public MonoDroidDeviceConsole () : base ("MonoDroid Device Console") { BorderWidth = 6; //FIXME: persist these values DefaultWidth = 600; DefaultHeight = 400; var vbox = new VBox () { Spacing = 12 }; var bbox = new HButtonBox () { Layout = ButtonBoxStyle.End, }; HBox deviceBox = new HBox () { Spacing = 6 }; var chooseDeviceButton = new Button () { Label = "Choose Device" }; deviceLabel = new Label () { Xalign = 0, }; SetDeviceLabel (); var reconnectButton = new Button () { Label = "Reconnect" }; deviceBox.PackStart (deviceLabel, true, true, 0); deviceBox.PackStart (chooseDeviceButton, false, false, 0); deviceBox.PackStart (reconnectButton, false, false, 0); var closeButton = new Button (Gtk.Stock.Close); log = new LogView (); this.Add (vbox); vbox.PackStart (deviceBox, false, false, 0); vbox.PackStart (log, true, true, 0); vbox.PackStart (bbox, false, false, 0); bbox.PackEnd (closeButton); closeButton.Clicked += delegate { Destroy (); }; DeleteEvent += delegate { Destroy (); }; reconnectButton.Clicked += delegate { Disconnect (); Connect (); }; chooseDeviceButton.Clicked += delegate { Device = MonoDroidUtility.ChooseDevice (this); }; ShowAll (); }
private void build() { this.Title = "New Battlelords Character"; { // page 1 - intro Gtk.TextView tv = new Gtk.TextView(); Gtk.TextBuffer tb; tb = tv.Buffer; //tb.Text = MediaManager.GetHtml("intro.html"); tb.Text = "Welcome to the Battlelords Character Asistant.\n" + "\nThis will guide you thru the initial player character generation. " + "You will be presented with some initial options that can not change " + "once the character is created. " + "\nStep 1" + "\nStep 2" + "\nStep 3" + "\nStep 4" + "\nConculsion"; tv.WrapMode = WrapMode.Word; tv.Editable = false; this.AppendPage(tv); this.SetPageTitle(tv, "Introduction"); this.SetPageType(tv, AssistantPageType.Intro); this.SetPageComplete(tv, true); } { // page 2 - rolling method string method1 = "Percentile dice are rolled and marked down in order of the given visual statistics. " + "Eight rolls are initially made. The player then makes three additional dice rolls. " + "He has the option of replacing any three previously rolled statistics with one of these number. " + "Players may not move rolls around! First roll is Strength, second roll is Manual Dexterity, etc."; Gtk.VBox vb = new Gtk.VBox(); Gtk.HBox hb1 = new Gtk.HBox(); Gtk.Label lb1 = new Gtk.Label("Rolling Method"); string[] entries = {"Method 1", "Method 2", "Method 3", "Fill In"}; Gtk.ComboBox cb1 = new Gtk.ComboBox(entries); hb1.PackStart(lb1, true, false , 0); hb1.PackEnd(cb1, true, false, 0); cb1.Active = 0; Gtk.HBox hb2 = new Gtk.HBox(); Gtk.CheckButton b1 = new Gtk.CheckButton("Max Body Points"); Gtk.CheckButton b2 = new Gtk.CheckButton("Max Starting Money"); b1.Active = true; b2.Active = true; hb2.PackStart(b1, true, false, 1); hb2.PackEnd(b2, true, false, 1); Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow(); Gtk.TextView tv = new Gtk.TextView(); tv.WrapMode = WrapMode.Word; tv.Editable = false; Gtk.TextBuffer tb = tv.Buffer; tb.Text = method1; sw.Add(tv); //vb.PackStart(hb1, false, false, 0); vb.PackStart(hb2, false, false, 0); //vb.PackEnd(sw, true, true, 0); this.AppendPage(vb); this.SetPageTitle(vb, "Rolling Options"); this.SetPageType(vb, AssistantPageType.Content); this.SetPageComplete(vb, true); } { // page 3 - race TreeStore ts = new TreeStore(typeof(string), typeof(string)); foreach (BattlelordsRace r in this.session.Races) { ts.AppendValues(r.Name, r.Name); } TreeView tv = new TreeView(ts); tv.HeadersVisible = true; tv.AppendColumn("Battlelords Race", new CellRendererText(), "text", 0); this.AppendPage(tv); this.SetPageTitle(tv, "Select Race"); this.SetPageType(tv, AssistantPageType.Content); this.SetPageComplete(tv, true); } { // page 4 - Basics page /* * 1 char name * 2 player name * 3 height * 4 weight * 5 body pts * 6 start money */ Gtk.VBox vb2 = new Gtk.VBox(); Gtk.HBox hb1 = new Gtk.HBox(); Gtk.Label lb1 = new Gtk.Label("Player's Name:"); Gtk.Entry en1 = new Gtk.Entry(); hb1.PackStart(lb1, false, false, 0); hb1.PackStart(new Gtk.HSeparator(), true, false, 0); hb1.PackEnd(en1, true, true, 0); Gtk.HBox hb2 = new Gtk.HBox(); Gtk.Label lb2 = new Gtk.Label("Character's Name:"); Gtk.Entry en2 = new Gtk.Entry(); hb2.PackStart(lb2, false, false, 0); hb2.PackStart(new Gtk.HSeparator(), true, false, 0); hb2.PackEnd(en2, true, true, 0); Gtk.HBox hb3 = new Gtk.HBox(); Gtk.Label lb3 = new Gtk.Label("Height (ft):"); Gtk.Entry en3 = new Gtk.Entry(); en3.Sensitive = false; Gtk.Button b3 = new Gtk.Button(); //b3.Label = "roll"; b3.TooltipText = "Click here to roll height."; b3.Image = MediaManager.GetImageFromBaseFile("dice.png"); hb3.PackStart(lb3, false, false, 0); hb3.PackStart(new Gtk.HSeparator(), true, false, 0); hb3.PackStart(en3, true, true, 0); hb3.PackEnd(b3, false, false, 0); Gtk.HBox hb4 = new Gtk.HBox(); Gtk.Label lb4 = new Gtk.Label("Weight (lbs):"); Gtk.Entry en4 = new Gtk.Entry(); en4.Sensitive = false; Gtk.Button b4 = new Gtk.Button(); //b4.Label = "roll"; b4.TooltipText = "Click here to roll for weight."; b4.Image = MediaManager.GetImageFromBaseFile("dice.png"); hb4.PackStart(lb4, false, false, 0); hb4.PackStart(new Gtk.HSeparator(), true, false, 0); hb4.PackStart(en4, true, true, 0); hb4.PackEnd(b4, false, false, 0); Gtk.HBox hb5 = new Gtk.HBox(); Gtk.Label lb5 = new Gtk.Label("Body Points:"); Gtk.Entry en5 = new Gtk.Entry(); en5.Sensitive = false; Gtk.Button b5 = new Gtk.Button(); b5.TooltipText = "Click here to roll for body points."; b5.Image = MediaManager.GetImageFromBaseFile("dice.png"); hb5.PackStart(lb5, false, false, 0); hb5.PackStart(new Gtk.HSeparator(), true, false, 0); hb5.PackStart(en5, true, true, 0); hb5.PackEnd(b5, false, false, 0); Gtk.HBox hb6 = new Gtk.HBox(); Gtk.Label lb6 = new Gtk.Label("Starting Money:"); Gtk.Entry en6 = new Gtk.Entry(); en6.Sensitive = false; Gtk.Button b6 = new Gtk.Button(); b6.TooltipText = "Click here to roll for starting money."; b6.Image = MediaManager.GetImageFromBaseFile("dice.png"); hb6.PackStart(lb6, false, false, 0); hb6.PackStart(new Gtk.HSeparator(), true, false, 0); hb6.PackStart(en6, true, true, 0); hb6.PackEnd(b6, false, false, 0); vb2.PackStart(hb1, false, false, 0); vb2.PackStart(hb2, false, false, 0); vb2.PackStart(hb3, false, false, 0); vb2.PackStart(hb4, false, false, 0); vb2.PackStart(hb5, false, false, 0); vb2.PackStart(hb6, false, false, 0); this.AppendPage(vb2); this.SetPageTitle(vb2, "Enter Basic Information"); this.SetPageType(vb2, AssistantPageType.Content); this.SetPageComplete(vb2, true); } { // page 5 - vitals VBox vb5 = new VBox(); Gtk.Notebook nb = new Gtk.Notebook(); //Battle.Gui.VitalsControl stvc = new Battle.Gui.VitalsControl(this.session); //stvc.Sensitive = false; VitalsControl m1vitals = new VitalsControl(this.session); VitalsControl m2vitals = new VitalsControl(this.session); VitalsControl m3vitals = new VitalsControl(this.session); VitalsControl fillvitals = new VitalsControl(this.session); m1vitals.Enabled = false; m2vitals.Enabled = false; m3vitals.Enabled = false; nb.AppendPage(m1vitals, new Gtk.Label("Method 1")); nb.AppendPage(m2vitals, new Gtk.Label("Method 2")); nb.AppendPage(m3vitals, new Gtk.Label("Method 3")); nb.AppendPage(fillvitals, new Gtk.Label("Fill In")); HButtonBox bb5 = new HButtonBox(); Button rollBtn = new Button(Stock.Execute); rollBtn.Clicked += delegate(object sender, EventArgs e) { Console.WriteLine("{0}", sender.GetType().ToString()); }; rollBtn.Label = "Roll"; Button saveBtn = new Button(Stock.Save); saveBtn.Label = "Save"; bb5.PackStart(rollBtn); bb5.PackEnd(saveBtn); nb.SwitchPage += delegate(object o, SwitchPageArgs args) { if (args.PageNum == 3) { rollBtn.Sensitive = false; } else { rollBtn.Sensitive = true; } }; vb5.Add(nb); vb5.Add(bb5); this.AppendPage(vb5); this.SetPageTitle(vb5, "Enter Vitals"); this.SetPageType(vb5, AssistantPageType.Content); this.SetPageComplete(vb5, true); } { // page 6 - secondaries Gtk.Label not_completed_label = new Gtk.Label("not completed"); Pango.FontDescription d = new Pango.FontDescription(); d.Style = Pango.Style.Italic; not_completed_label.ModifyFont(d); this.AppendPage(not_completed_label); this.SetPageTitle(not_completed_label, "Enter Secondary Attributes"); this.SetPageType(not_completed_label, AssistantPageType.Content); this.SetPageComplete(not_completed_label, true); } { // page 7 - fate Gtk.Label not_completed_label = new Gtk.Label("not completed"); Pango.FontDescription d = new Pango.FontDescription(); d.Style = Pango.Style.Italic; not_completed_label.ModifyFont(d); this.AppendPage(not_completed_label); this.SetPageTitle(not_completed_label, "Determine Fate"); this.SetPageType(not_completed_label, AssistantPageType.Content); this.SetPageComplete(not_completed_label, true); } { // page 8 - social Gtk.Label not_completed_label = new Gtk.Label("not completed"); Pango.FontDescription d = new Pango.FontDescription(); d.Style = Pango.Style.Italic; not_completed_label.ModifyFont(d); this.AppendPage(not_completed_label); this.SetPageTitle(not_completed_label, "Social Status"); this.SetPageType(not_completed_label, AssistantPageType.Content); this.SetPageComplete(not_completed_label, true); } { // page 9 - skills Gtk.Label not_completed_label = new Gtk.Label("not completed"); Pango.FontDescription d = new Pango.FontDescription(); d.Style = Pango.Style.Italic; not_completed_label.ModifyFont(d); this.AppendPage(not_completed_label); this.SetPageTitle(not_completed_label, "Choose Initial Skills"); this.SetPageType(not_completed_label, AssistantPageType.Content); this.SetPageComplete(not_completed_label, true); } { // page 10 - matrixes Gtk.Label not_completed_label = new Gtk.Label("not completed"); Pango.FontDescription d = new Pango.FontDescription(); d.Style = Pango.Style.Italic; not_completed_label.ModifyFont(d); this.AppendPage(not_completed_label); this.SetPageTitle(not_completed_label, "Choose Initial Matrixes"); this.SetPageType(not_completed_label, AssistantPageType.Content); this.SetPageComplete(not_completed_label, true); } { // page 11 - confirm TextView tv11 = new TextView(); TextBuffer b11 = tv11.Buffer; b11.Text = "Confirm this new character."; tv11.Editable = false; this.AppendPage(tv11); this.SetPageTitle(tv11, "Confirm New Character"); this.SetPageType(tv11, AssistantPageType.Confirm); this.SetPageComplete(tv11, true); } this.Close += HandleHandleClose; this.Cancel += HandleHandleCancel; this.ShowAll(); }