private Gnome.DruidPage CreateConnectPage() { ConnectPage = new DruidConnectPage( Util.GS("Verify and Connect"), AddAccountPixbuf, null); ConnectPage.CancelClicked += new Gnome.CancelClickedHandler(OnCancelClicked); ConnectPage.ConnectClicked += new ConnectClickedHandler(OnConnectClicked); ConnectPage.Prepared += new Gnome.PreparedHandler(OnConnectPagePrepared); Table table = new Table(6, 3, false); ConnectPage.VBox.PackStart(table, false, false, 0); table.ColumnSpacing = 6; table.RowSpacing = 6; table.BorderWidth = 12; Label l = new Label(Util.GS("Please verify that the information you've entered is correct.")); table.Attach(l, 0,3, 0,1, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); l.LineWrap = true; l.Xalign = 0.0F; table.Attach(new Label(""), 0,1, 1,2, AttachOptions.Fill, 0,12,0); l = new Label(Util.GS("Server Address:")); table.Attach(l, 1,2, 1,2, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); l.Xalign = 0.0F; ServerNameVerifyLabel = new Label(""); table.Attach(ServerNameVerifyLabel, 2,3, 1,2, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); ServerNameVerifyLabel.Xalign = 0.0F; l = new Label(Util.GS("User Name:")); table.Attach(l, 1,2, 2,3, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); l.Xalign = 0.0F; UserNameVerifyLabel = new Label(""); table.Attach(UserNameVerifyLabel, 2,3, 2,3, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); UserNameVerifyLabel.Xalign = 0.0F; l = new Label(Util.GS("Remember password:"******""); table.Attach(RememberPasswordVerifyLabel, 2,3, 3,4, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); RememberPasswordVerifyLabel.Xalign = 0.0F; MakeDefaultPromptLabel = new Label(Util.GS("Make default account:")); table.Attach(MakeDefaultPromptLabel, 1,2, 4,5, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); MakeDefaultPromptLabel.Xalign = 0.0F; MakeDefaultVerifyLabel = new Label(""); table.Attach(MakeDefaultVerifyLabel, 2,3, 4,5, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); MakeDefaultVerifyLabel.Xalign = 0.0F; l = new Label( string.Format( "\n\n{0}", Util.GS("Click \"Connect\" to validate your connection with the server."))); table.Attach(l, 0,3, 5,6, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); l.LineWrap = true; l.Xalign = 0.0F; return ConnectPage; }
private Gnome.DruidPage CreateMigratePage() { MigratePage = new DruidConnectPage(Util.GS("Verify and Migrate"),AddAccountPixbuf,null); MigratePage.CancelClicked += new Gnome.CancelClickedHandler(OnCancelClicked); MigratePage.ConnectClicked += new ConnectClickedHandler(OnMigrateClicked); MigratePage.Prepared += new Gnome.PreparedHandler(OnMigratePagePrepared); MigratePage.BackClicked += new Gnome.BackClickedHandler(OnBackButtonClicked); Table table = new Table(6, 3, false); MigratePage.VBox.PackStart(table, false, false, 0); table.ColumnSpacing = 6; table.RowSpacing = 6; table.BorderWidth = 12; Label l = new Label(Util.GS("Please verify that the information you've entered is correct")+"."); table.Attach(l, 0,3, 0,1, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); l.LineWrap = true; l.Xalign = 0.0F; table.Attach(new Label(""), 0,1, 1,2, AttachOptions.Fill, 0,12,0); l = new Label(Util.GS("Server Address:")); table.Attach(l, 1,2, 1,2, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); l.Xalign = 0.0F; ServerAddressLabel = new Label(""); table.Attach(ServerAddressLabel, 2,3, 1,2, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); ServerAddressLabel.Xalign = 0.0F; l = new Label(Util.GS("Location:")); table.Attach(l, 1,2, 2,3, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); l.Xalign = 0.0F; Location = new Label(""); table.Attach(Location, 2,3, 2,3, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); Location.Xalign = 0.0F; l = new Label(Util.GS("Migration Option")+":"); table.Attach(l, 1,2, 3,4, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); l.Xalign = 0.0F; MigrationOptionLabel = new Label(""); table.Attach(MigrationOptionLabel, 2,3, 3,4, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); MigrationOptionLabel.Xalign = 0.0F; ShowSecurityLabel = new Label(Util.GS("Security")+":"); table.Attach(ShowSecurityLabel, 1,2, 4,5, AttachOptions.Shrink | AttachOptions.Fill, 0,0,0); ShowSecurityLabel.Xalign = 0.0F; SecurityLabel = new Label(""); table.Attach(SecurityLabel, 2,3, 4,5, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); SecurityLabel.Xalign = 0.0F; l = new Label( string.Format( "\n\n{0}", Util.GS("Click \"Migrate\" to migrate your folder to the server specified")+".")); table.Attach(l, 0,3, 5,6, AttachOptions.Fill | AttachOptions.Expand, 0,0,0); l.LineWrap = true; l.Xalign = 0.0F; return MigratePage; }