public ServerSettings(string ServerName, MaterialForm childForm)
        {
            consoleOverlay = new ConsoleOverlay(ServerName);
            consoleOverlay.OnReceiveConsoleInfo += OnOverlayRequest;

            this.ServerName = ServerName;
            this.Username   = MoonResource.SettingsManager.Username;

            string s = serverModifier.IsOnline(Username, ServerName);

            //Start File
            string startFile_Request = serverModifier.CheckSetting(Username, ServerName, "STARTFILE");

            if (startFile_Request == "true")
            {
                StartFile = serverModifier.ReadSetting(Username, ServerName, "STARTFILE");
            }

            //Server Args
            string ServerArgs_Request = serverModifier.CheckSetting(Username, ServerName, "SERVERARGS");

            if (ServerArgs_Request == "true")
            {
                ServerArgs = serverModifier.ReadSetting(Username, ServerName, "SERVERARGS");
            }

            materialTextBox1.Text = ServerArgs;
            materialTextBox2.Text = StartFile;

            InitializeComponent();
        }
Exemplo n.º 2
0
 private void button12_Click(object sender, EventArgs e)
 {
     Console.WriteLine(mod.ReadSetting(Username, Server, "TE"));
 }