コード例 #1
0
 private void button10_Click(object sender, EventArgs e)
 {
     if (File.Exists("server.properties"))
     {
         ConfigEditor editor = new ConfigEditor("server.properties");
         editor.Visible = true;
     }
     else
     {
         MessageBox.Show(this, "Server Settings file does not exist.", "SpigotGUI", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #2
0
 private void button14_Click(object sender, EventArgs e)
 {
     if (File.Exists("banned-ips.json"))
     {
         ConfigEditor editor = new ConfigEditor("banned-ips.json");
         editor.Visible = true;
     }
     else
     {
         MessageBox.Show(this, "Banned-IPs file does not exist.", "SpigotGUI", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            ConfigEditor ce = new ConfigEditor();

            ce.Visible = true;
        }