Alttaki kodları bir yere yazmayacaksınız sadece yeri değişecek;
[CODE lang="csharp" title="şöyle"]using CmlLib.Core;
using CmlLib.Core.Auth;
using System;
using System.Threading;
using System.Windows.Forms;
namespace Aeron_Launcher
{ public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false;
}
public int MaximumRamMb { get; private set; }
public MSession Session { get; private set; }
async void gameoyunac(MLaunchOption ayar)
{
var path = new MinecraftPath();
var launcher = new CMLauncher(path);
{
MaximumRamMb = 5096;
Session = MSession.GetOfflineSession(label2.Text);
}
var process = await launcher.CreateProcessAsync(guna2ComboBox1.Text, ayar);
process.Start();
}
private void guna2Button1_Click(object sender, EventArgs e)
{
if (String.IsNullOrEmpty(guna2TextBox1.Text))
{
MessageBox.Show("You cant enter the game without using name. Please Enter A user name"
;
}
else
{
label2.Text = guna2TextBox1.Text;
label2.Visible = true;
guna2Button1.Visible = true;
Thread thread = new Thread( >= gameoyunac);
thread.IsBackground = true;
thread.Start();
}
}
}
}[/CODE]