Tak ogólnie to Java się naćpała i zaczeła oddawać mi różne cyfry. Nie jestem robotem, ok? Java, weź idź na odwyk.
56 lines
1.3 KiB
C#
56 lines
1.3 KiB
C#
using System;
|
|
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 System.IO;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace ServCreator
|
|
{
|
|
public partial class Form1 : Form
|
|
{
|
|
public Form1()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void createBtn_Click(object sender, EventArgs e)
|
|
{
|
|
CreateForm createFrm = new CreateForm();
|
|
createFrm.Show();
|
|
}
|
|
|
|
private void loadBtn_Click(object sender, EventArgs e)
|
|
{
|
|
if(openFileDialog1.ShowDialog() == DialogResult.OK)
|
|
{
|
|
ControlPanelForm controlPanel = new ControlPanelForm(openFileDialog1.FileName);
|
|
controlPanel.Show();
|
|
this.Visible = false;
|
|
}
|
|
}
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
public class Server
|
|
{
|
|
[JsonProperty]
|
|
public string Name { get; set; }
|
|
|
|
[JsonProperty]
|
|
public string Path { get; set; }
|
|
|
|
[JsonProperty]
|
|
public string Version { get; set; }
|
|
|
|
[JsonProperty]
|
|
public string Engine { get; set; }
|
|
|
|
}
|
|
}
|
|
}
|