public AddDomainCompletedHandler(AddDomainThread thread) { this.thread = thread; }
private bool OnConnectClicked(object o, EventArgs args) { string serverName = ServerNameEntry.Text.Trim(); string userName = UserNameEntry.Text.Trim(); string password = PasswordEntry.Text; if (WaitDialog == null) { VBox vbox = new VBox(false, 0); Image connectingImage = new Image(Util.ImagesPath("ifolder48.png")); vbox.PackStart(connectingImage, false, false, 0); Label l = new Label("<span size=\"xx-small\">FIXME: This will be\nreplaced with an\nanimated image</span>"); vbox.PackStart(l); l.UseMarkup = true; l.LineWrap = true; WaitDialog = new iFolderWaitDialog( this, vbox, iFolderWaitDialog.ButtonSet.None, Util.GS("Connecting..."), Util.GS("Connecting..."), Util.GS("Please wait while your iFolder account is connecting.")); WaitDialog.Show(); } AddDomainThread addDomainThread = new AddDomainThread( domainController, serverName, userName, password, RememberPasswordCheckButton.Active, DefaultServerCheckButton.Active); addDomainThread.Completed += new EventHandler(OnAddDomainCompleted); addDomainThread.AddDomain(); return false; }
private bool OnConnectClicked(object o, EventArgs args) { string serverName = ServerNameEntry.Text.Trim(); string userName = UserNameEntry.Text.Trim(); string password = PasswordEntry.Text; if (WaitDialog == null) { VBox vbox = new VBox(false, 0); Image connectingImage = new Image(Util.ImagesPath("ifolder-add-account48.png")); vbox.PackStart(connectingImage, false, false, 0); WaitDialog = new iFolderWaitDialog( this, vbox, iFolderWaitDialog.ButtonSet.None, Util.GS("Connecting..."), Util.GS("Connecting..."), Util.GS("Please wait while your iFolder account is connecting.")); WaitDialog.Show(); } AddDomainThread addDomainThread = new AddDomainThread( domainController, serverName, userName, password, RememberPasswordCheckButton.Active, DefaultServerCheckButton.Active); addDomainThread.Completed += new EventHandler(OnAddDomainCompleted); addDomainThread.AddDomain(); return false; }