mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 04:55:00 +00:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using MetroFramework.Forms;
|
|
|
|
namespace minekampf.Forms
|
|
{
|
|
public partial class Pref : MetroForm
|
|
{
|
|
public Pref()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Pref_Load(object sender, EventArgs e)
|
|
{
|
|
string host = File.ReadAllText(Environment.CurrentDirectory + "\\settings.ini").Split(new[] { "\r\n", "\n"}, StringSplitOptions.None)[0];
|
|
metroTextBox1.Text = host;
|
|
string host1 = File.ReadAllText(Environment.CurrentDirectory + "\\settings.ini").Split(new[] { "\r\n", "\n"}, StringSplitOptions.None)[1];
|
|
metroTextBox2.Text = host1;
|
|
|
|
}
|
|
|
|
private void buttonDonate_Click(object sender, EventArgs e)
|
|
{
|
|
File.WriteAllText(Environment.CurrentDirectory + "\\settings.ini", metroTextBox1.Text + "\n" + metroTextBox2.Text);
|
|
}
|
|
}
|
|
}
|