public frmMain() { InitializeComponent(); DoorInfo Door = new DoorInfo("RUNBBS"); chkRUNBBS.Checked = Door.Loaded; }
public NodeInfo() { Connection = null; ConnectionType = ConnectionType.None; Door = new DoorInfo(""); Node = -1; SecondsThisSession = 300; // Default to 5 minutes during authentication, will be set accordingly at successful logon TerminalType = TerminalType.Ascii; TimeOn = DateTime.Now; User = new UserInfo(""); UserLoggedOn = false; }
private void chkRUNBBS_CheckedChanged(object sender, EventArgs e) { DoorInfo Door = new DoorInfo("RUNBBS"); string EnabledFileName = Door.FileName; string DisabledFileName = StringUtils.PathCombine(Path.GetDirectoryName(Door.FileName), "_" + Path.GetFileName(Door.FileName)); if (chkRUNBBS.Checked) { // If we don't have a RUNBBS.INI but we have a _RUNBBS.INI, rename it to RUNBBS.INI if ((!File.Exists(EnabledFileName)) && (File.Exists(DisabledFileName))) { FileUtils.FileMove(DisabledFileName, EnabledFileName); } } else { // If we have a RUNBBS.INI file, rename it to _RUNBBS.INI if (File.Exists(EnabledFileName)) { FileUtils.FileDelete(DisabledFileName); FileUtils.FileMove(EnabledFileName, DisabledFileName); } } }