Exemple #1
0
        public frmMain()
        {
            InitializeComponent();

            DoorInfo Door = new DoorInfo("RUNBBS");
            chkRUNBBS.Checked = Door.Loaded;
        }
Exemple #2
0
        public frmMain()
        {
            InitializeComponent();

            DoorInfo Door = new DoorInfo("RUNBBS");

            chkRUNBBS.Checked = Door.Loaded;
        }
Exemple #3
0
 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;
 }
Exemple #4
0
 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;
 }
Exemple #5
0
        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);
                }
            }
        }
Exemple #6
0
        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);
                }
            }
        }