Beispiel #1
0
        public ScratchPad()
        {
            InitializeComponent();

            LuaOutput = new ConsoleStringWriter();

            scintilla1.Margins[0].Width = 20;
            LuaOutput.Output = this;
        }
Beispiel #2
0
        public ScratchPad()
        {
            InitializeComponent();

            LuaOutput = new ConsoleStringWriter();

            scintilla1.Margins[0].Width = 20;
            LuaOutput.Output            = this;
        }
Beispiel #3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            if (!Directory.Exists(location))
            {
                Directory.CreateDirectory(location);
            }


            //CONSOLE
            _writer = new ConsoleStringWriter(this);
            Console.SetOut(_writer);
            //END CONSOLE

            //SETTINGS
            lastLogin = new LastLogin();

            if (File.Exists(Path.Combine(location, "lastlogin")))
            {
                String[] lastLoginData = lastLogin.GetLastLogin();
                userText.Text = lastLoginData[0];
                passText.Text = lastLoginData[1];
            }

            try
            {
                FileStream stream = new FileStream(location + "settings", FileMode.Open);
                optionRememberBox.Checked = Convert.ToBoolean(stream.ReadByte());
                optionConsoleBox.Checked  = Convert.ToBoolean(stream.ReadByte());
            }
            catch (Exception) { }
            //END SETTINGS

            //SERVER STATUS
            status = new ServerStatus(this);
            //END SERVER STATUS

            //NEM
            nemQuery = new QueryNEM(this);
            //END NEM

            //VERSIONLIST
            versionList = new VersionList(this);
            //END VERSIONLIST

            //OLD REPO
            repo = new Repo.QueryRepo(this);
            //END OLD REPO

            //TECHNIC PLATFORM
            technicDefaultPacks = new TechnicDefaultPacks(this);
        }