public Logon() : base("logon") { this.priority = ProcessPriority.high; this.topMost = true; this.onTaskbar = false; // init control manager ctrlMgr = new ControlManager(); // get login data if (PMFAT.FileExists(@"0:\config.pmc")) { string fileData = PMFAT.ReadText(@"0:\config.pmc"); string[] lines = fileData.Split('\n'); for (int i = 0; i < lines.Length; i++) { string[] data = lines[i].Split(','); if (data[0] == "user") { if (data.Length > 1) { username = data[1]; } } if (data[0] == "pass") { if (data.Length > 1) { password = data[1]; } } } } username = username.Remove(username.Length - 1, 1); // init login window logonWindow = new LogonWindow(); ProcessManager.AddWindow(logonWindow); logonWindow.txtUser.kbReader.output = username; // init invalid dialog invalidDialog.name = "InvalidLogin"; }