/// <summary> /// Authenticate /// </summary> /// <returns>true on success</returns> private bool authenticate() { bool result = false; Connecting connecting = new Connecting(this.ifWebService, simiasWebService, simiasManager, domainInfo, password.Text, rememberPassword.Checked); if (connecting.ShowDialog() == DialogResult.OK) { result = true; } return(result); }
/// <summary> /// Method used to connect to the Simias server. /// </summary> /// <returns><b>True</b> if successfully connected; otherwise, <b>False</b> is returned.</returns> public bool ConnectToServer() { bool result = false; Connecting connecting = new Connecting(this.ifWebService, simiasWebService, simiasManager, serverPage.ServerAddress, identityPage.Username, identityPage.Password, serverPage.DefaultServer, identityPage.RememberPassword); connecting.EnterpriseConnect += new Novell.FormsTrayApp.Connecting.EnterpriseConnectDelegate(connecting_EnterpriseConnect); if (connecting.ShowDialog() == DialogResult.OK) { result = true; domainInfo = connecting.DomainInformation; this.defaultiFolderPage.DomainInfo = this.domainInfo; this.defaultiFolderPage.defaultPath = this.GetDefaultPath(this.identityPage.Username, this.defaultiFolderPage.DomainInfo.Name); this.defaultiFolderPage.defaultPath += "\\" + Resource.GetString("DefaultDirName") + "_" + this.identityPage.Username; Novell.FormsTrayApp.FormsTrayApp.globalProp().updateifListViewDomainStatus(domainInfo.ID, domainInfo.Authenticated); if (true == domainInfo.Authenticated) { Novell.FormsTrayApp.FormsTrayApp.globalProp().AddDomainToUIList(domainInfo); } } return(result); }
/// <summary> /// ShowWait Dialog /// </summary> private void ShowWaitDialog() { waitWindow = new Connecting(); waitWindow.ShowDialog(); }