public LoginHelper(LoginForm parentForm, LoginSettings loginSettings, 
                    NetworkHelper networkHelper, string logFile, bool patchMedia)
     : base(parentForm)
 {
     this.parentForm = parentForm;
     this.loginSettings = loginSettings;
     this.networkHelper = networkHelper;
     if (loginSettings.worldId != string.Empty)
         preferredWorldId = loginSettings.worldId;
     this.logFile = logFile;
     this.patchMedia = patchMedia;
 }
Esempio n. 2
0
        public bool ShowLoginDialog(NetworkHelper helper)
        {
            LoginForm dialog = new LoginForm(loginSettings, helper, PatchLogFile, PatchMedia);

            System.Windows.Forms.DialogResult rv = dialog.ShowDialog();
            if (rv != System.Windows.Forms.DialogResult.OK)
                return false;
            fullScan = dialog.FullScan;
            return true;
        }