public ImportKeysDialog(iFolderWebService ifws, SimiasWebService simws) : base() { this.ifws = ifws; this.simws = simws; SetupDialog(); }
public EnterPassphrasePage(iFolderWebService ifws, SimiasWebService simws, Manager simiasManager) { InitializeComponent(); this.simiasWebService = simws; this.ifolderWebService = ifws; this.simiasManager = simiasManager; }
/// <summary> /// CReate the singlePageWizard object /// </summary> /// <param name="ifws"></param> /// <param name="simws"></param> public SinglePageWizard(iFolderWebService ifws, SimiasWebService simws) { InitializeComponent(); this.ifWebService = ifws; this.simiasWebService = simws; SinglePageWizard.log = iFolderLogManager.GetLogger(typeof(SinglePageWizard)); }
public MigrationWindow(iFolderWebService ifWebService, SimiasWebService simiasWebService) { windowActive = false; this.ifWebService = ifWebService; this.simiasWebService = simiasWebService; InitializeComponent(); }
public ServerDetails(SimiasWebService simiasWebService, iFolderWebService ifolderWebService, Domain domain) { InitializeComponent(); this.simiasWebService = simiasWebService; ifWebService = ifolderWebService; this.domain = domain; }
public EnterPassPhraseDialog(string domainID, SimiasWebService simiasws) : base() { this.DomainID = domainID; this.simws = simiasws; SetupDialog(); }
public PrefsAccountsPage( Gtk.Window topWindow ) : base() { this.topLevelWindow = topWindow; this.simiasManager = Util.GetSimiasManager(); this.simws = new SimiasWebService(); simws.Url = simiasManager.WebServiceUri.ToString() + "/Simias.asmx"; LocalService.Start(simws, simiasManager.WebServiceUri, simiasManager.DataPath); curDomains = new Hashtable(); InitializeWidgets(); domainController = DomainController.GetDomainController(); if (domainController != null) { domainController.DomainAdded += new DomainAddedEventHandler(OnDomainAddedEvent); domainController.DomainDeleted += new DomainDeletedEventHandler(OnDomainDeletedEvent); domainController.DomainLoggedIn += new DomainLoggedInEventHandler(OnDomainLoggedInEvent); domainController.DomainLoggedOut += new DomainLoggedOutEventHandler(OnDomainLoggedOutEvent); domainController.DomainActivated += new DomainActivatedEventHandler(OnDomainActivatedEvent); domainController.DomainInactivated += new DomainInactivatedEventHandler(OnDomainInactivatedEvent); domainController.NewDefaultDomain += new DomainNewDefaultEventHandler(OnNewDefaultDomainEvent); domainController.DomainInGraceLoginPeriod += new DomainInGraceLoginPeriodEventHandler(OnDomainInGraceLoginPeriodEvent); } detailsDialogs = new Hashtable(); this.Realized += new EventHandler(OnRealizeWidget); }
public ResetPassphrase(SimiasWebService simws, iFolderWebService ifws) { InitializeComponent(); this.simws = simws; this.ifws = ifws; GetLoggedInDomains(); }
/// <summary> /// Event Handler for ServerInfo load event /// </summary> private void ServerInfo_Load(object sender, System.EventArgs e) { // Load the application icon. try { this.Icon = new Icon(Path.Combine(Application.StartupPath, @"res\ifolder_16.ico")); banner.Image = Image.FromFile(Path.Combine(Application.StartupPath, @"res\ifolder-banner.png")); bannerFill.SizeMode = PictureBoxSizeMode.StretchImage; bannerFill.Image = Image.FromFile(Path.Combine(Application.StartupPath, @"res\ifolder-banner-scaler.png")); } catch { // Ignore. } try { simiasWebService = new SimiasWebService(); simiasWebService.Url = simiasManager.WebServiceUri.ToString() + "/Simias.asmx"; LocalService.Start(simiasWebService, simiasManager.WebServiceUri, simiasManager.DataPath); if (domainInfo != null) { serverName.Text = domainInfo.Name; userName.Text = domainInfo.MemberName; } } catch (Exception ex) { Novell.iFolderCom.MyMessageBox mmb = new Novell.iFolderCom.MyMessageBox(resourceManager.GetString("domainInfoReadError"), string.Empty, ex.Message, MyMessageBoxButtons.OK, MyMessageBoxIcon.Error); mmb.ShowDialog(); } }
/// <summary> /// Default constructor for iFolderPropertiesDialog /// </summary> public iFolderUserSelector(Gtk.Window parent, SimiasWebService SimiasWS, string domainID) : base() { this.Title = Util.GS("Add Users"); if (SimiasWS == null) { throw new ApplicationException("SimiasWebService was null"); } this.simws = SimiasWS; this.domainID = domainID; this.HasSeparator = false; // this.BorderWidth = 10; this.Resizable = true; this.Modal = true; if (parent != null) { this.TransientFor = parent; } InitializeWidgets(); this.Realized += new EventHandler(OnRealizeWidget); searchTimeoutID = 0; selectedUsers = new Hashtable(); KeyPressEvent += new KeyPressEventHandler(KeyPressHandler); KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler); AddEvents((int)Gdk.EventMask.KeyPressMask | (int)Gdk.EventMask.KeyReleaseMask); }
public Connecting( iFolderWebService ifws, SimiasWebService simiasWebService, Manager simiasManager, DomainInformation domainInfo, string password, bool rememberPassword ) : this(ifws, simiasWebService, simiasManager, domainInfo, password) { this.updatePasswordPreference = true; this.rememberPassword = rememberPassword; this.autoAccountEnabled = false; }
public ResetPassPhraseDialog(SimiasWebService simiasws, iFolderWebService ifws) : base() { this.simws= simiasws; this.ifws = ifws; SetupDialog(); }
/// <summary> /// Default constructor for iFolderConflictResolver /// </summary> public iFolderConflictDialog(Gtk.Window parent, iFolderWeb ifolder, iFolderWebService iFolderWS, SimiasWebService SimiasWS) : base() { this.Title = Util.GS("Resolve Conflicts"); if (iFolderWS == null) { throw new ApplicationException("iFolderWebServices was null"); } this.ifws = iFolderWS; this.simws = SimiasWS; this.ifolder = ifolder; this.HasSeparator = false; this.Resizable = true; this.Modal = true; if (parent != null) { this.TransientFor = parent; } conflictTable = new Hashtable(); InitializeWidgets(); EnableConflictControls(false); this.Realized += new EventHandler(OnRealizeWidget); // Bind ESC and C-w to close the window ControlKeyPressed = false; KeyPressEvent += new KeyPressEventHandler(KeyPressHandler); KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler); oldFileName = null; }
public VerifyPassphraseDialog(string domainID, SimiasWebService simws) { this.DomainID = domainID; this.simws = simws; this.resManager = new System.Resources.ResourceManager(typeof(VerifyPassphraseDialog)); InitializeComponent(); }
/// <summary> /// Constructor /// </summary> /// <param name="ifws">iFolder WebService</param> /// <param name="simws">SimiasWebService</param> public ExportKeysDialog(iFolderWebService ifws, SimiasWebService simws) : base() { this.ifws = ifws; this.simws = simws; //this.DomainID = DomainID; SetupDialog(); }
public SinglePageWizard(iFolderWebService ifws, SimiasWebService simws) { InitializeComponent(); this.ifWebService = ifws; this.simiasWebService = simws; SinglePageWizard.log = iFolderLogManager.GetLogger(typeof(SinglePageWizard)); }
/// <summary> /// Authenticate to a remote Simias server /// </summary> /// <returns>Simias.Client.Authentication.Status object</returns> public Status Authenticate(Uri webServiceUri, string simiasDataPath) { Status status = null; try { SimiasWebService simiasSvc = new SimiasWebService(); simiasSvc.Url = webServiceUri.ToString() + "/Simias.asmx"; LocalService.Start(simiasSvc, webServiceUri, simiasDataPath); DomainInformation cInfo = simiasSvc.GetDomainInformation(this.domainID); if (cInfo != null) { // Call Simias for a remote domain authentication status = simiasSvc.LoginToRemoteDomain(this.domainID, this.password); } else { //status = new Status( StatusCodes.UnknownDomain ); } } catch (Exception ex) { // DEBUG if (MyEnvironment.Mono) { Console.WriteLine("Authentication - caught exception: {0}", ex.Message); } //status = new Status( StatusCodes.InternalException ); //status.ExceptionMessage = ex.Message; } return(status); }
/// <summary> /// Default constructor for iFolderPropertiesDialog /// </summary> public iFolderPropertiesDialog(Gtk.Window parent, iFolderWeb ifolder, iFolderWebService iFolderWS, SimiasWebService SimiasWS, Manager simiasManager) : base() { if (iFolderWS == null) { throw new ApplicationException("iFolderWebService was null"); } this.ifws = iFolderWS; if (SimiasWS == null) { throw new ApplicationException("SimiasWebService was null"); } this.simws = SimiasWS; this.simiasManager = simiasManager; // Make sure that we have the latest information by forcing this // a reread from the server. try { this.ifolder = this.ifws.GetiFolder(ifolder.ID); } catch (Exception) { throw new ApplicationException( "Unable to read the iFolder"); } this.Modal = false; this.TypeHint = Gdk.WindowTypeHint.Normal; this.HasSeparator = false; this.Title = string.Format("{0} {1}", ifolder.Name, Util.GS("Properties")); // ifHash = new Hashtable(); InitializeWidgets(); /* iFolderWindow ifwin = (iFolderWindow)parent; * if( ifwin != null) * { * if( ifwin.isConnected == false) * { * this.SettingsPage.EnableSync = false; * } * } */ SetValues(); // Bind ESC and C-w to close the window ControlKeyPressed = false; KeyPressEvent += new KeyPressEventHandler(KeyPressHandler); KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler); }
public ExportKeysDialog(iFolderWebService ifws, SimiasWebService simws) : base() { this.ifws = ifws; this.simws = simws; this.DomainID = DomainID; SetupDialog(); }
public MigrationDialog( Gtk.Window topWindow, iFolderWebService ifws, SimiasWebService simws, bool ShowForMerge, String ifolderName) { this.Modal = false; this.iFolderName = ifolderName; curDomains = new Hashtable(); CreateWidgets(); PopulateWidgets(); }
public DefaultiFolderPage(iFolderWebService ifws, SimiasWebService simws, DomainInformation domainInfo ) { this.resManager = new System.Resources.ResourceManager(typeof(Novell.FormsTrayApp.FormsTrayApp)); InitializeComponent(); this.simws = simws; this.domainInfo = domainInfo; this.ifws = ifws; }
/// <summary> /// Default constructor for iFolderPropertiesDialog /// </summary> public iFolderPropertiesDialog(string ifolderID, Manager manager) : base() { if (manager == null) { return; } this.simiasManager = manager; String localServiceUrl = simiasManager.WebServiceUri.ToString(); if (localServiceUrl == null) { return; } this.ifws = new iFolderWebService(); if (this.ifws == null) { throw new ApplicationException( "Unable to obtain iFolderWebService"); } this.ifws.Url = localServiceUrl + "/iFolder.asmx"; LocalService.Start(this.ifws, simiasManager.WebServiceUri, simiasManager.DataPath); this.simws = new SimiasWebService(); if (this.simws == null) { throw new ApplicationException( "Unable to obtain SimiasWebService"); } this.simws.Url = localServiceUrl + "/Simias.asmx"; LocalService.Start(this.simws, simiasManager.WebServiceUri, simiasManager.DataPath); try { this.ifolder = this.ifws.GetiFolder(ifolderID); } catch (Exception) { throw new ApplicationException( "Unable to read the iFolder"); } this.HasSeparator = false; this.Modal = true; this.Title = Util.GS("iFolder Properties"); // ifHash = new Hashtable(); InitializeWidgets(); SetValues(); // Bind ESC and C-w to close the window ControlKeyPressed = false; KeyPressEvent += new KeyPressEventHandler(KeyPressHandler); KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler); }
private void connectToWebService() { if (ifWebService == null) { if (simiasRunning == false) { Process[] processArray = Process.GetProcessesByName("simias"); if (processArray == null || processArray.Length == 0) { System.Diagnostics.Debug.WriteLine(string.Format("simias is not running dude...")); return; } simiasRunning = true; } System.Diagnostics.Debug.WriteLine(string.Format("In connectToWebService(). Simias is running...", SimiasRunning)); /// If simias is not started do not start the web services... //if (SimiasRunning == false) // return; // Use the language stored in the registry. Thread.CurrentThread.CurrentUICulture = new CultureInfo(GetLanguageDirectory()); // Check if the iFolder Client is running. string windowName = resourceManager.GetString("iFolderServices") + Environment.UserName; Novell.Win32Util.Win32Window window = Novell.Win32Util.Win32Window.FindWindow(null, windowName); if (window != null) { DateTime currentTime = DateTime.Now; if ((currentTime.Ticks - ticks) > delta) { ticks = currentTime.Ticks; // The registry holds the information needed to connect to the web service. RegistryKey regKey = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Novell\iFolder"); if (regKey != null) { string webServiceUri = regKey.GetValue("WebServiceUri") as string; string simiasDataPath = regKey.GetValue("SimiasDataPath") as string; if ((webServiceUri != null) && (simiasDataPath != null)) { ifWebService = new iFolderWebService(); ifWebService.Url = webServiceUri + "/iFolder.asmx"; LocalService.Start(ifWebService, new Uri(webServiceUri), simiasDataPath); simws = new SimiasWebService(); simws.Url = webServiceUri + "/Simias.asmx"; LocalService.Start(simws, new Uri(webServiceUri), simiasDataPath); } regKey.Close(); } } } else { throw new Exception("iFolder Client not running"); } } }
/// <summary> /// Constructs a ServerPage object. /// </summary> public DefaultiFolderPage(iFolderWebService ifws, SimiasWebService simws, DomainInformation domainInfo) { // This call is required by the Windows Form Designer. this.resManager = new System.Resources.ResourceManager(typeof(Novell.FormsTrayApp.FormsTrayApp)); InitializeComponent(); this.simws = simws; this.domainInfo = domainInfo; this.ifws = ifws; }
/// <summary> /// Default constructor for iFolderAccountsPage /// </summary> public PrefsAccountsPage(Gtk.Window topWindow) : base() { this.topLevelWindow = topWindow; this.simiasManager = Util.GetSimiasManager(); string localServiceUrl = simiasManager.WebServiceUri.ToString(); ifws = new iFolderWebService(); ifws.Url = localServiceUrl + "/iFolder.asmx"; LocalService.Start(ifws, simiasManager.WebServiceUri, simiasManager.DataPath); this.simws = new SimiasWebService(); simws.Url = simiasManager.WebServiceUri.ToString() + "/Simias.asmx"; LocalService.Start(simws, simiasManager.WebServiceUri, simiasManager.DataPath); ClientUpgradeDialog = null; this.ClientUpgradeStatus = null; this.NewClientVersion = null; this.NewClientDomainID = null; curDomains = new Hashtable(); removedDomains = new Hashtable(); InitializeWidgets(); domainProviderUI = DomainProviderUI.GetDomainProviderUI(); domainController = DomainController.GetDomainController(); if (domainController != null) { domainController.DomainAdded += new DomainAddedEventHandler(OnDomainAddedEvent); domainController.DomainDeleted += new DomainDeletedEventHandler(OnDomainDeletedEvent); domainController.DomainLoggedIn += new DomainLoggedInEventHandler(OnDomainLoggedInEvent); domainController.DomainLoggedOut += new DomainLoggedOutEventHandler(OnDomainLoggedOutEvent); domainController.DomainActivated += new DomainActivatedEventHandler(OnDomainActivatedEvent); domainController.DomainInactivated += new DomainInactivatedEventHandler(OnDomainInactivatedEvent); domainController.NewDefaultDomain += new DomainNewDefaultEventHandler(OnNewDefaultDomainEvent); domainController.DomainInGraceLoginPeriod += new DomainInGraceLoginPeriodEventHandler(OnDomainInGraceLoginPeriodEvent); domainController.DomainClientUpgradeAvailable += new DomainClientUpgradeAvailableEventHandler(OnClientUpgradeAvailableEvent); } detailsDialogs = new Hashtable(); this.Realized += new EventHandler(OnRealizeWidget); }
public Connecting( iFolderWebService ifws, SimiasWebService simiasWebService, Manager simiasManager, string server, string user, string password, bool defaultServer, bool rememberPassword ) : this(ifws, simiasWebService, simiasManager, password) { UriBuilder UriSchemeForServer = new UriBuilder(server); this.server = UriSchemeForServer.Uri.Authority; this.user = user; this.defaultServer = defaultServer; this.rememberPassword = rememberPassword; this.autoAccountEnabled = false; }
/// <summary> /// Default constructor for LogWindow /// </summary> public MigrationWindow(Gtk.Window topWindow, iFolderWebService ifws, SimiasWebService simws) : base(Util.GS("iFolder Migration")) { // this.topLevelWindow = topWindow; this.Modal = false; this.ifws = ifws; this.simws = simws; curDomains = new Hashtable(); CreateWidgets(); PopulateWidgets(); }
public MigrationWindow( Gtk.Window topWindow, iFolderWebService ifws, SimiasWebService simws) : base(Util.GS("iFolder Migration")) { this.topLevelWindow = topWindow; this.Modal = false; this.ifws = ifws; this.simws = simws; curDomains = new Hashtable(); CreateWidgets(); PopulateWidgets(); }
/// <summary> /// Constructor /// </summary> /// <param name="DomainID">Domain ID</param> /// <param name="SimiasWS">Simias Web Service</param> public MemberListModel(String DomainID, SimiasWebService SimiasWS) { domainID = DomainID; simws = SimiasWS; searchContext = null; total = 0; memberInfos = new Hashtable(); memberFullNames = new Hashtable(); duplicateMembers = new Hashtable(); }
/// <summary> /// Default constructor for LogWindow /// </summary> public MigrationDialog(Gtk.Window topWindow, iFolderWebService ifws, SimiasWebService simws, bool ShowForMerge, String ifolderName) //: base (Util.GS("iFolder Migration")) { // this.topLevelWindow = topWindow; this.Modal = false; //this.ifws = ifws; //this.simws = simws; this.iFolderName = ifolderName; curDomains = new Hashtable(); CreateWidgets(); PopulateWidgets(); }
/// <summary> /// Constructor /// </summary> /// <param name="ifws">iFolder WebService</param> /// <param name="simws">Simias WebService</param> public ExportKeysDialog(iFolderWebService ifws, SimiasWebService simws) { // // Required for Windows Form Designer support // InitializeComponent(); this.simiasWebService = simws; this.ifWebService = ifws; // // TODO: Add any constructor code after InitializeComponent call // }
public iFolderPropSharingPage( Gtk.Window topWindow, iFolderWebService iFolderWS, SimiasWebService SimiasWS) : base() { this.ifws = iFolderWS; this.simws = SimiasWS; this.topLevelWindow = topWindow; curUsers = new Hashtable(); memberFullNames = new Hashtable(); duplicateMembers = new Hashtable(); InitializeWidgets(); }
/// <summary> /// Default constructor for iFolderPropSharingPage /// </summary> public iFolderPropSharingPage(Gtk.Window topWindow, iFolderWebService iFolderWS, SimiasWebService SimiasWS) : base() { this.ifws = iFolderWS; this.simws = SimiasWS; this.topLevelWindow = topWindow; curUsers = new Hashtable(); memberFullNames = new Hashtable(); duplicateMembers = new Hashtable(); InitializeWidgets(); }
/// <summary> /// Constructor /// </summary> /// <param name="simws">SimiasWebService</param> /// <param name="ifws">iFolderWebService</param> public ResetPassphrase(SimiasWebService simws, iFolderWebService ifws) { // // Required for Windows Form Designer support // InitializeComponent(); this.simws = simws; this.ifws = ifws; GetLoggedInDomains(); // // TODO: Add any constructor code after InitializeComponent call // }
/// <summary> /// Constructor /// </summary> /// <param name="ifWebService">iFolderWebService</param> /// <param name="simiasWebService">SimiasWebService</param> public MigrationWindow(iFolderWebService ifWebService, SimiasWebService simiasWebService) { windowActive = false; this.ifWebService = ifWebService; this.simiasWebService = simiasWebService; // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // }
/// <summary> /// Constructor /// </summary> /// <param name="domainID">ID of the iFolder Domain</param> /// <param name="simws">Simias WebService</param> public EnterPassphraseDialog(string domainID, SimiasWebService simws) { this.DomainID = domainID; this.simws = simws; // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // }
/// <summary> /// Constructor /// </summary> /// <param name="domainID">Domain ID</param> /// <param name="simws">Simias WebService</param> public VerifyPassphraseDialog(string domainID, SimiasWebService simws) { this.DomainID = domainID; this.simws = simws; this.resManager = new System.Resources.ResourceManager(typeof(VerifyPassphraseDialog)); // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // }
public PrefsAccountsPage( Gtk.Window topWindow ) : base() { this.topLevelWindow = topWindow; this.simiasManager = Util.GetSimiasManager(); string localServiceUrl = simiasManager.WebServiceUri.ToString(); ifws = new iFolderWebService(); ifws.Url = localServiceUrl + "/iFolder.asmx"; LocalService.Start(ifws, simiasManager.WebServiceUri, simiasManager.DataPath); this.simws = new SimiasWebService(); simws.Url = simiasManager.WebServiceUri.ToString() + "/Simias.asmx"; LocalService.Start(simws, simiasManager.WebServiceUri, simiasManager.DataPath); ClientUpgradeDialog = null; this.ClientUpgradeStatus = null; this.NewClientVersion = null; this.NewClientDomainID = null; curDomains = new Hashtable(); removedDomains = new Hashtable(); InitializeWidgets(); domainProviderUI = DomainProviderUI.GetDomainProviderUI(); domainController = DomainController.GetDomainController(); if (domainController != null) { domainController.DomainAdded += new DomainAddedEventHandler(OnDomainAddedEvent); domainController.DomainDeleted += new DomainDeletedEventHandler(OnDomainDeletedEvent); domainController.DomainLoggedIn += new DomainLoggedInEventHandler(OnDomainLoggedInEvent); domainController.DomainLoggedOut += new DomainLoggedOutEventHandler(OnDomainLoggedOutEvent); domainController.DomainActivated += new DomainActivatedEventHandler(OnDomainActivatedEvent); domainController.DomainInactivated += new DomainInactivatedEventHandler(OnDomainInactivatedEvent); domainController.NewDefaultDomain += new DomainNewDefaultEventHandler(OnNewDefaultDomainEvent); domainController.DomainInGraceLoginPeriod += new DomainInGraceLoginPeriodEventHandler(OnDomainInGraceLoginPeriodEvent); domainController.DomainClientUpgradeAvailable += new DomainClientUpgradeAvailableEventHandler(OnClientUpgradeAvailableEvent); } detailsDialogs = new Hashtable(); this.Realized += new EventHandler(OnRealizeWidget); }
/// <summary> /// Pings the local web service to get simias started if it is not /// started already. /// </summary> /// <param name="webServiceUri">Uri that references the local web service.</param> /// <returns>True if ping was successful, otherwise false is returned.</returns> static private bool Ping(Uri webServiceUri) { bool pingSuccessful = true; try { SimiasWebService webService = new SimiasWebService(); webService.Url = webServiceUri.ToString() + "/Simias.asmx"; webService.PingSimias(); } catch { pingSuccessful = false; } return(pingSuccessful); }
public AddAccountWizard(SimiasWebService simws) : base(WindowType.Toplevel) { this.Title = Util.GS("iFolder Account Assistant"); this.Resizable = false; this.Modal = true; this.WindowPosition = Gtk.WindowPosition.Center; this.Icon = new Gdk.Pixbuf(Util.ImagesPath("ifolder24.png")); this.simws = simws; domainController = DomainController.GetDomainController(); ConnectedDomain = null; WaitDialog = null; this.Add(CreateWidgets()); ControlKeyPressed = false; KeyPressEvent += new KeyPressEventHandler(KeyPressHandler); KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler); SetUpButtons(); }
public iFolderUserSelector( Gtk.Window parent, SimiasWebService SimiasWS, string domainID) : base() { this.Title = Util.GS("Select Users"); if (SimiasWS == null) throw new ApplicationException("SimiasWebService was null"); this.simws = SimiasWS; this.domainID = domainID; this.HasSeparator = false; this.Resizable = true; this.Modal = true; if(parent != null) this.TransientFor = parent; InitializeWidgets(); this.Realized += new EventHandler(OnRealizeWidget); searchTimeoutID = 0; selectedUsers = new Hashtable(); }
/// <summary> /// Constructor /// </summary> private iFolderController() { string localServiceUrl = Simias.Client.Manager.LocalServiceUrl.ToString(); try { ifws = new iFolderWebService(); ifws.Url = localServiceUrl + "/iFolder.asmx"; LocalService.Start(ifws); } catch (Exception e) { ifws = null; throw new Exception("Unable to create ifolder web service in iFolderController"); } try { simws = new SimiasWebService(); simws.Url = localServiceUrl + "/Simias.asmx"; LocalService.Start(simws); } catch (Exception e) { simws = null; throw new Exception("Unable to create simias web service in iFolderController"); } keyediFolders = new Hashtable(); keyedSubscriptions = new Hashtable(); domainController = DomainController.GetDomainController(); if (domainController != null) { domainController.DomainLoggedIn += new DomainLoggedInEventHandler(OnDomainLoggedInEvent); domainController.DomainLoggedOut += new DomainLoggedOutEventHandler(OnDomainLoggedOutEvent); } }
public MigrationWizard(string User, string path, iFolderWebService ifws, SimiasWebService simws, MigrationWindow page, bool encrypted) : base(WindowType.Toplevel) { this.Title = Util.GS("iFolder Migration Assistant"); this.Resizable = false; this.WindowPosition = Gtk.WindowPosition.Center; this.location = path; prevLocation = ""; this.ifdata = iFolderData.GetData(); this.ifws = ifws; this.simws = simws; this.Uname = User; this.page = page; this.Icon = new Gdk.Pixbuf(Util.ImagesPath("ifolder16.png")); this.alreadyEncrypted = encrypted; domainController = DomainController.GetDomainController(); WaitDialog = null; this.Add(CreateWidgets()); ControlKeyPressed = false; KeyPressEvent += new KeyPressEventHandler(KeyPressHandler); KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler); SetUpButtons(); }
public iFolderPropertiesDialog( string ifolderID, Manager manager ) : base() { if (manager == null) return; this.simiasManager = manager; String localServiceUrl = simiasManager.WebServiceUri.ToString(); if (localServiceUrl == null) return; this.ifws = new iFolderWebService(); if(this.ifws == null) throw new ApplicationException( "Unable to obtain iFolderWebService"); this.ifws.Url = localServiceUrl + "/iFolder.asmx"; LocalService.Start(this.ifws, simiasManager.WebServiceUri, simiasManager.DataPath); this.simws = new SimiasWebService(); if (this.simws == null) throw new ApplicationException( "Unable to obtain SimiasWebService"); this.simws.Url = localServiceUrl + "/Simias.asmx"; LocalService.Start(this.simws, simiasManager.WebServiceUri, simiasManager.DataPath); try { this.ifolder = this.ifws.GetiFolder(ifolderID); } catch(Exception e) { throw new ApplicationException( "Unable to read the iFolder"); } this.HasSeparator = false; this.Modal = true; this.Title = Util.GS("iFolder Properties"); InitializeWidgets(); SetValues(); ControlKeyPressed = false; KeyPressEvent += new KeyPressEventHandler(KeyPressHandler); KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler); }
/// <summary> /// Commits the member object on master server, will be called by slave /// </summary> /// <param name="domainID">domain id</param> /// <param name="member">member object to be committed</param> /// <param name="sn">shallow node object, but currently unused</param> /// <returns>true if success</returns> public bool CommitOnMaster(string domainID, Member member, ShallowNode sn) { Store store = Store.GetStore(); Domain domain = store.GetDomain(domainID); string userID = store.GetUserIDFromDomainID(domain.ID); HostNode mNode = HostNode.GetMaster(domainID); bool result = false; if (mNode == null) { return(false); } try { Node ModifiedNode = member as Node; log.Debug("going to call xnode constr and loading its : "); XmlDocument xNode = new XmlDocument(); xNode.LoadXml(ModifiedNode.Properties.ToString()); log.Debug("modifiednode.prop.string is : " + ModifiedNode.Properties.ToString()); SimiasConnection smConn = new SimiasConnection(domainID, userID, SimiasConnection.AuthType.PPK, mNode); SimiasWebService svc = new SimiasWebService(); svc.Url = mNode.PublicUrl; smConn.Authenticate(); smConn.InitializeWebClient(svc, "Simias.asmx"); log.Debug("going to call svc.commitdomainmember"); result = svc.CommitDomainMember(domain.ID, xNode); log.Debug("returned from web-service call and return is " + result); } catch (Exception ex) { log.Debug("simiasconnection to master failed: " + ex.ToString()); log.Debug("Could not establish connection to master for user: " + member.UserID); result = false; } return(result); }
private iFolderController() { string localServiceUrl = Simias.Client.Manager.LocalServiceUrl.ToString(); try { ifws = new iFolderWebService(); ifws.Url = localServiceUrl + "/iFolder.asmx"; LocalService.Start(ifws); } catch(Exception e) { ifws = null; throw new Exception("Unable to create ifolder web service in iFolderController"); } try { simws = new SimiasWebService(); simws.Url = localServiceUrl + "/Simias.asmx"; LocalService.Start(simws); } catch(Exception e) { simws = null; throw new Exception("Unable to create simias web service in iFolderController"); } keyediFolders = new Hashtable(); keyedSubscriptions = new Hashtable(); domainController = DomainController.GetDomainController(); if (domainController != null) { domainController.DomainLoggedIn += new DomainLoggedInEventHandler(OnDomainLoggedInEvent); domainController.DomainLoggedOut += new DomainLoggedOutEventHandler(OnDomainLoggedOutEvent); } }
public iFolderPropertiesDialog( Gtk.Window parent, iFolderWeb ifolder, iFolderWebService iFolderWS, SimiasWebService SimiasWS, Manager simiasManager) : base() { if(iFolderWS == null) throw new ApplicationException("iFolderWebService was null"); this.ifws = iFolderWS; if(SimiasWS == null) throw new ApplicationException("SimiasWebService was null"); this.simws = SimiasWS; this.simiasManager = simiasManager; try { this.ifolder = this.ifws.GetiFolder(ifolder.ID); } catch(Exception e) { throw new ApplicationException( "Unable to read the iFolder"); } this.Modal = false; this.TypeHint = Gdk.WindowTypeHint.Normal; this.HasSeparator = false; this.Title = string.Format("{0} {1}", ifolder.Name, Util.GS("Properties")); InitializeWidgets(); SetValues(); ControlKeyPressed = false; KeyPressEvent += new KeyPressEventHandler(KeyPressHandler); KeyReleaseEvent += new KeyReleaseEventHandler(KeyReleaseHandler); }
public Connecting( iFolderWebService ifws, SimiasWebService simiasWebService, Manager simiasManager, string server, string user, string password, bool defaultServer, bool rememberPassword ) : this(ifws, simiasWebService, simiasManager, password) { server = server.Trim(); if(!server.StartsWith("http")) { server = string.Format("https://{0}",server); } UriBuilder UriSchemeForServer = new UriBuilder(server); string serverName = UriSchemeForServer.Uri.Authority; if (UriSchemeForServer.Scheme != Uri.UriSchemeHttps) { UriSchemeForServer.Scheme = Uri.UriSchemeHttps; } if (UriSchemeForServer.Port == 80) { UriSchemeForServer.Port = 443; } this.server = UriSchemeForServer.ToString(); this.user = user; this.defaultServer = defaultServer; this.rememberPassword = rememberPassword; this.autoAccountEnabled = false; }
/// <summary> /// Create the import key page object /// </summary> /// <param name="ifws">iFolderWebService</param> /// <param name="simws">simiasWebService</param> public ImportKeyPage(iFolderWebService ifws, SimiasWebService simws) { InitializeComponent(); this.ifWebService = ifws; this.simiasWebService = simws; }
public iFolderWindow(iFolderWebService webService, SimiasWebService SimiasWS, Manager simiasManager) : base(Util.GS("iFolder")) { if(webService == null) throw new ApplicationException("iFolderWebServices was null"); ifws = webService; simws = SimiasWS; this.simiasManager = simiasManager; ifdata = iFolderData.GetData(); serverGroups = new Hashtable(); serverGroupFilters = new Hashtable(); PropDialogs = new Hashtable(); ConflictDialogs = new Hashtable(); lastXPos = -1; lastYPos = -1; searchTimeoutID = 0; domainController = DomainController.GetDomainController(); bAvailableFoldersShowing = false; CreateWidgets(); RefreshiFolders(true); if (domainController != null) { domainController.DomainAdded += new DomainAddedEventHandler(OnDomainAddedEvent); domainController.DomainDeleted += new DomainDeletedEventHandler(OnDomainDeletedEvent); } }
/// <summary> /// Constructs an MigrationWizard object. /// </summary> public MigrationWizard(string Uname, string path, bool encryptedOriginal, iFolderWebService ifws, SimiasWebService simiasWebService) { // // Required for Windows Form Designer support // this.encryptedOriginal = encryptedOriginal; this.UserName = Uname; this.location = path; this.ifws = ifws; this.simiasWebService = simiasWebService; InitializeComponent(); // Initialize the wizard pages ... I had to move this here so that // dev studio wouldn't wipe it out (when it was in InitializeComponent()). this.welcomePage = new MigrationWelcomePage(); this.serverPage = new MigrationServerPage(path); this.identityPage = new MigrationIdentityPage(ifws); this.passphrasePage = new MigrationPassphrasePage(); this.passphraseVerifyPage = new MigrationPassphraseVerifyPage(); this.verifyPage = new MigrationVerifyPage(); this.completionPage = new MigrationCompletionPage(); // // welcomePage // // TODO: Localize this.welcomePage.ActionText = Resource.GetString("MigrationWelcomepgAT"); //"This wizard will guide you through migrating your iFolder account to 3.x."; this.welcomePage.DescriptionText = Resource.GetString("WelcomePageAction"); //"To continue, click Next."; this.welcomePage.Location = new System.Drawing.Point(0, 0); this.welcomePage.Name = "welcomePage"; this.welcomePage.Size = new System.Drawing.Size(496, 304); this.welcomePage.TabIndex = 1; this.welcomePage.WelcomeTitle = Resource.GetString("MigrationWelcomeTitle"); //"Welcome to the iFolder Migration Assistant"; // // serverPage // // TODO: Localize //this.serverPage.HeaderSubTitle = "Enter the name of your iFolder server."; this.serverPage.HeaderTitle = Resource.GetString("MigrationOptions"); //"Migration Options"; this.serverPage.Location = new System.Drawing.Point(0, 0); this.serverPage.Name = "serverPage"; this.serverPage.Size = new System.Drawing.Size(496, 304); this.serverPage.TabIndex = 1; // // identityPage // // TODO: Localize //this.identityPage.HeaderSubTitle = "Enter your iFolder username and password."; this.identityPage.HeaderTitle = Resource.GetString("ServerInfo"); //"Server Information"; this.identityPage.Location = new System.Drawing.Point(0, 0); this.identityPage.Name = "identityPage"; this.identityPage.Size = new System.Drawing.Size(496, 304); this.identityPage.TabIndex = 1; // // passphrasePage // this.passphrasePage.HeaderTitle = "Passphrase Entry"; this.passphrasePage.Location = new Point(0, 0); this.passphrasePage.Name = "passphrasePage"; this.passphrasePage.Size = new Size(496, 304); this.passphrasePage.TabIndex = 1; // // passphraseVerifyPage // this.passphraseVerifyPage.HeaderTitle = "Passphrase"; this.passphraseVerifyPage.Location = new Point(0, 0); this.passphraseVerifyPage.Size = new Size(496, 304); // // verifyPage // // TODO: Localize //this.verifyPage.HeaderSubTitle = "Verify the iFolder account information."; this.verifyPage.HeaderTitle = Resource.GetString("MigrateVerify"); //"Verify and Migrate"; this.verifyPage.Location = new System.Drawing.Point(0, 0); this.verifyPage.Name = "verifyPage"; this.verifyPage.Size = new System.Drawing.Size(496, 304); this.verifyPage.TabIndex = 1; // // completionPage // // TODO: Localize this.completionPage.DescriptionText = Resource.GetString("CompletionPageDT"); //"Description..."; this.completionPage.Location = new System.Drawing.Point(0, 0); this.completionPage.Name = "completionPage"; this.completionPage.Size = new System.Drawing.Size(496, 304); this.completionPage.TabIndex = 1; this.completionPage.WelcomeTitle = Resource.GetString("MigrationCompleteWT"); //"Completing the iFolder Migration Wizard"; /* * this.Controls.Add(this.welcomePage); * this.Controls.Add(this.serverPage); * this.Controls.Add(this.identityPage); * this.Controls.Add(this.verifyPage); * this.Controls.Add(this.completionPage); */ this.Controls.Add(this.welcomePage); this.Controls.Add(this.serverPage); this.Controls.Add(this.identityPage); this.Controls.Add(this.passphrasePage); this.Controls.Add(this.passphraseVerifyPage); this.Controls.Add(this.verifyPage); this.Controls.Add(this.completionPage); // Load the application icon. try { this.Icon = new Icon(Path.Combine(Application.StartupPath, @"ifolder_app.ico")); } catch {} // Ignore // Put the wizard pages in order. pages = new MigrationBaseWizardPage[maxPages]; pages[0] = this.welcomePage; pages[1] = this.serverPage; pages[2] = this.identityPage; pages[3] = this.passphrasePage; pages[4] = this.passphraseVerifyPage; pages[5] = this.verifyPage; pages[6] = this.completionPage; /* * pages[1] = this.serverPage; * pages[2] = this.identityPage; * pages[3] = this.verifyPage; * pages[4] = this.completionPage; */ try { // Load the watermark. // TODO: Image image = Image.FromFile(Path.Combine(Application.StartupPath, "invitewiz.png")); this.welcomePage.Watermark = image; this.completionPage.Watermark = image; // TODO: image = Image.FromFile(Path.Combine(Application.StartupPath, @"res\ifolder_invite_32.png")); this.serverPage.Thumbnail = image; this.verifyPage.Thumbnail = image; this.identityPage.Thumbnail = image; } catch {} // Ignore. for (int i = 0; i < maxPages; i++) { pages[i].Hide(); } // Activate the first wizard page. pages[0].ActivatePage(0); }
private void FormsTrayApp_Load(object sender, System.EventArgs e) { if (shutdown) { this.Close(); } else { try { if (!Preferences.HideiFolderInTray) { ShowStartupScreen(); } Environment.CurrentDirectory = Application.StartupPath; for (int i = 0; i < 3; i++) { Process[] processArray = Process.GetProcessesByName("simias"); foreach (Process proc in processArray) { if (proc != null) { simiasManager.Stop(); } } } ifWebService = null; simiasWebService = null; eventQueue = new Queue(); workEvent = new AutoResetEvent(false); eventClient = new IProcEventClient(new IProcEventError(errorHandler), null); preferences = new Preferences(ifWebService, simiasWebService, simiasManager); preferences.EnterpriseConnect += new Novell.FormsTrayApp.Preferences.EnterpriseConnectDelegate(preferences_EnterpriseConnect); preferences.ChangeDefaultDomain += new Novell.FormsTrayApp.Preferences.ChangeDefaultDomainDelegate(preferences_EnterpriseConnect); preferences.RemoveDomain += new Novell.FormsTrayApp.Preferences.RemoveDomainDelegate(preferences_RemoveDomain); preferences.ShutdownTrayApp += new Novell.FormsTrayApp.Preferences.ShutdownTrayAppDelegate(preferences_ShutdownTrayApp); preferences.UpdateDomain += new Novell.FormsTrayApp.Preferences.UpdateDomainDelegate(preferences_UpdateDomain); preferences.DisplayiFolderDialog += new Novell.FormsTrayApp.Preferences.DisplayiFolderDialogDelegate(preferences_DisplayiFolderDialog); preferences.CreateControl(); IntPtr handle = preferences.Handle; syncLog = new SyncLog(); syncLog.CreateControl(); handle = syncLog.Handle; infolog = new SyncLog(); infolog.Customize(); globalProperties = new GlobalProperties(ifWebService, simiasWebService, eventClient); globalProperties.RemoveDomain += new Novell.FormsTrayApp.GlobalProperties.RemoveDomainDelegate(globalProperties_RemoveDomain); globalProperties.PreferenceDialog = preferences; globalProperties.SyncLogDialog = syncLog; globalProperties.CreateControl(); handle = globalProperties.Handle; if (RegularStart) { DelayedStart(); } else { try { LogInit(); } catch { } shellNotifyIcon.Text = resourceManager.GetString("iFolderServices"); shellNotifyIcon.Icon = trayIcon; SimiasTimer = new System.Windows.Forms.Timer(); SimiasTimer.Interval = 120000; SimiasTimer.Tick += new EventHandler(SimiasTimer_Tick); SimiasTimer.Start(); } } catch (Exception ex) { MessageBox.Show(string.Format("Exception: {0}--{1}", ex.Message, ex.StackTrace)); ShutdownTrayApp(ex); } finally { CloseStartupScreen(); } } }
public void StartSimias() { try { DateTime starttime = DateTime.Now; simiasManager.Start(); if (simiasManager.WebServiceUri == null || simiasManager.DataPath == null) { simiasManager.Start(); if (simiasManager.WebServiceUri == null || simiasManager.DataPath == null) { MessageBox.Show("Unable to start xsp web service, iFolder will not be able to work, restart the application.", "iFolder", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } } SetWebServiceInformation(simiasManager.WebServiceUri, simiasManager.DataPath); ifWebService = new iFolderWebService(); ifWebService.Url = simiasManager.WebServiceUri + "/iFolder.asmx"; simiasWebService = new SimiasWebService(); simiasWebService.Url = simiasManager.WebServiceUri + "/Simias.asmx"; LocalService.Start(simiasWebService, simiasManager.WebServiceUri, simiasManager.DataPath); LocalService.Start(ifWebService, simiasManager.WebServiceUri, simiasManager.DataPath); eventClient.Register(); if (!eventError) { eventClient.SetEvent(IProcEventAction.AddNodeChanged, new IProcEventHandler(trayApp_nodeEventHandler)); eventClient.SetEvent(IProcEventAction.AddNodeCreated, new IProcEventHandler(trayApp_nodeEventHandler)); eventClient.SetEvent(IProcEventAction.AddNodeDeleted, new IProcEventHandler(trayApp_nodeEventHandler)); eventClient.SetEvent(IProcEventAction.AddCollectionSync, new IProcEventHandler(trayApp_collectionSyncHandler)); eventClient.SetEvent(IProcEventAction.AddFileSync, new IProcEventHandler(trayApp_fileSyncHandler)); eventClient.SetEvent(IProcEventAction.AddNotifyMessage, new IProcEventHandler(trayApp_notifyMessageHandler)); } this.globalProperties.iFWebService = ifWebService; this.globalProperties.Simws = simiasWebService; this.globalProperties.EventClient = eventClient; this.globalProperties.simManager = simiasManager; this.preferences.ifolderWebService = ifWebService; this.preferences.Simws = simiasWebService; this.preferences.simManager = simiasManager; DateTime endtime = DateTime.Now; simiasRunning = true; iFolderComponent.SimiasRunning = true; simiasStarting = false; iFolderComponent.SimiasStarting = false; } catch (Exception ex) { MessageBox.Show(string.Format("Exception in starting simias: {0}--{1}", ex.Message, ex.StackTrace)); } }
public Preferences(iFolderWebService ifolderWebService, SimiasWebService simiasWebService, Manager simiasManager) { InitializeComponent(); defaultInterval.TextChanged += new EventHandler(defaultInterval_ValueChanged); ifWebService = ifolderWebService; this.simiasWebService = simiasWebService; this.simiasManager = simiasManager; { } int delta = calculateSize(label1, 0); if (delta > 0) { groupBox1.Height += 8 * (int)Math.Ceiling((float)delta / (float)label1.Width); } this.StartPosition = FormStartPosition.CenterScreen; }
public EnterPassphraseDialog(string domainID, SimiasWebService simws) { this.DomainID = domainID; this.simws = simws; InitializeComponent(); }
/// <summary> /// Constructor /// </summary> /// <param name="ifws">iFolder WebService</param> /// <param name="simws">Simias WebService</param> public ImportKeysDialog(iFolderWebService ifws, SimiasWebService simws) : base() { this.ifws = ifws; this.simws = simws; SetupDialog(); }
/// <summary> /// Creates a KeyRecoveryWizard object with the member pages /// </summary> /// <param name="ifWebService">iFolderwebservice</param> /// <param name="simiasWebService">simiasWebService</param> public KeyRecoveryWizard(iFolderWebService ifWebService, SimiasWebService simiasWebService, Manager simiasManager) { this.simiasWebService = simiasWebService; this.ifWebService = ifWebService; this.simiasManager = simiasManager; // // Required for Windows Form Designer support // InitializeComponent(); // Initialize the wizard pages this.domainSelectionPage = new DomainSelectionPage(this.ifWebService, this.simiasWebService); this.enterPassphrasePage = new EnterPassphrasePage(this.ifWebService, this.simiasWebService, this.simiasManager); this.infoPage = new InfoPage(); this.selectionPage = new SelectionPage(); //selection 1 = have all parameters to do things this.singleWizPage = new SinglePageWizard(this.ifWebService, this.simiasWebService); //selection 2 = have only decrypted file sent by admin this.importKeyPage = new ImportKeyPage(this.ifWebService, this.simiasWebService); this.finalPage = new FinalPage();//successfully reset passphrase //selection 3= have nothing this.exportKeyPage = new ExportKeyPage(this.ifWebService, this.simiasWebService); this.emailPage = new EmailPage(); //domainSelectionPage this.domainSelectionPage.HeaderTitle = TrayApp.Properties.Resources.domainSelectionPageTitle; this.domainSelectionPage.Location = new System.Drawing.Point(0, 0); this.domainSelectionPage.Name = TrayApp.Properties.Resources.domainSelectionPageName; this.domainSelectionPage.Size = new System.Drawing.Size(496, 304); this.domainSelectionPage.TabIndex = 1; //enterpassphrasepage this.enterPassphrasePage.HeaderTitle = TrayApp.Properties.Resources.setNewPassphraseTitle; this.enterPassphrasePage.Location = new System.Drawing.Point(0, 0); this.enterPassphrasePage.Name = TrayApp.Properties.Resources.enterPassphrasePageName; this.enterPassphrasePage.Size = new System.Drawing.Size(496, 304); this.enterPassphrasePage.TabIndex = 1; //infoPage this.infoPage.HeaderTitle = TrayApp.Properties.Resources.infoPageTitle; // "Welcome to the Passphrase Recovery Wizard"; this.infoPage.Location = new System.Drawing.Point(0, 0); this.infoPage.Name = TrayApp.Properties.Resources.infoPageName; this.infoPage.Size = new System.Drawing.Size(496, 304); this.infoPage.TabIndex = 1; //selectionPage this.selectionPage.HeaderTitle = TrayApp.Properties.Resources.selectionPageTitle; // "Select Passphrase Recovery step"; this.selectionPage.Location = new System.Drawing.Point(0, 0); this.selectionPage.Name = TrayApp.Properties.Resources.selectionPageName; // "keyRecoverySelectionPage"; this.selectionPage.Size = new System.Drawing.Size(496, 304); this.selectionPage.TabIndex = 1; //singlewizpage this.singleWizPage.HeaderTitle = TrayApp.Properties.Resources.setNewPassphraseTitle; // "Set New Passphrase"; this.singleWizPage.Location = new System.Drawing.Point(0, 0); this.singleWizPage.Name = TrayApp.Properties.Resources.singleWizPageName; // "keyRecoverySingleWizPage"; this.singleWizPage.Size = new System.Drawing.Size(496, 304); this.singleWizPage.TabIndex = 1; //importKeyPage this.importKeyPage.HeaderTitle = TrayApp.Properties.Resources.setNewPassphraseTitle;//"Resetting Passphrase Using Decrypted Key File"; this.importKeyPage.Location = new System.Drawing.Point(0, 0); this.importKeyPage.Name = TrayApp.Properties.Resources.importPageName; this.importKeyPage.Size = new System.Drawing.Size(496, 304); this.importKeyPage.TabIndex = 1; //finalPage this.finalPage.HeaderTitle = TrayApp.Properties.Resources.finalPageTitle; // "Passphrase is reset successfully."; this.finalPage.Location = new System.Drawing.Point(0, 0); this.finalPage.Name = TrayApp.Properties.Resources.finalPageName; // "finalPage"; this.finalPage.Size = new System.Drawing.Size(496, 304); this.finalPage.TabIndex = 1; // exportKeyPage this.exportKeyPage.HeaderTitle = TrayApp.Properties.Resources.exportPageTitle; // "Export Key File from the Server"; this.exportKeyPage.Location = new System.Drawing.Point(0, 0); this.exportKeyPage.Name = TrayApp.Properties.Resources.exportPageName; //"keyRecoveryExportKeyPage"; this.exportKeyPage.Size = new System.Drawing.Size(496, 304); this.exportKeyPage.TabIndex = 1; // // emailPage this.emailPage.HeaderTitle = TrayApp.Properties.Resources.emailPageTitle; //"Export of Key file Successful"; this.emailPage.Location = new System.Drawing.Point(0, 0); this.emailPage.Name = TrayApp.Properties.Resources.emailPageName; //"keyrecoverySuccessPage"; this.emailPage.Size = new System.Drawing.Size(496, 304); this.emailPage.TabIndex = 1; //Add member pages to wizard this.Controls.Add(this.domainSelectionPage); this.Controls.Add(this.enterPassphrasePage); this.Controls.Add(this.infoPage); this.Controls.Add(this.selectionPage); this.Controls.Add(this.singleWizPage); this.Controls.Add(this.importKeyPage); this.Controls.Add(this.finalPage); this.Controls.Add(this.exportKeyPage); this.Controls.Add(this.emailPage); this.BackColor = System.Drawing.Color.Gainsboro; // Load the application icon. try { this.Icon = new Icon(Path.Combine(Application.StartupPath, @"res\ifolder_16.ico")); } catch { } // Ignore // Put the wizard pages in order. pages = new BaseWizardPage[maxPages]; pages[0] = this.domainSelectionPage; pages[1] = this.enterPassphrasePage; pages[2] = this.infoPage; pages[3] = this.selectionPage; pages[4] = this.singleWizPage; pages[5] = this.importKeyPage; pages[6] = this.finalPage; pages[7] = this.exportKeyPage; pages[8] = this.emailPage; try { Image image = Image.FromFile(System.IO.Path.Combine(Application.StartupPath, @"res\ifolder48.png")); this.domainSelectionPage.Thumbnail = image; this.enterPassphrasePage.Thumbnail = image; this.infoPage.Thumbnail = image; this.selectionPage.Thumbnail = image; this.singleWizPage.Thumbnail = image; this.importKeyPage.Thumbnail = image; this.finalPage.Thumbnail = image; this.exportKeyPage.Thumbnail = image; this.emailPage.Thumbnail = image; } catch { } // Ignore. Unable to load watermark. No functionality issues foreach (BaseWizardPage page in pages) { page.Hide(); } // Activate the first wizard page. //pages[0].ActivatePage(0); bool result = GetLoggedInDomains(); if (result == true) { domainSelectionPage.ActivatePage(0); } }
public DomainSelectionPage(iFolderWebService ifws, SimiasWebService simws) { InitializeComponent(); this.ifWebService = ifws; this.simiasWebService = simws; }
/// <summary> /// Constructor /// </summary> /// <param name="simiasws">Simias WebService</param> /// <param name="ifws">iFolder WebService</param> public ResetPassPhraseDialog(SimiasWebService simiasws, iFolderWebService ifws) : base() { this.simws = simiasws; this.ifws = ifws; SetupDialog(); }