C# Kodu hata veriyor

Hmm Amongus, fotoğraf?
Screenshot_3.png
Screenshot_4.png
Screenshot_5.png
Screenshot_6.png
Screenshot_7.png
Screenshot_8.png
Screenshot_2.png

@uykuda.
 
C#:
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;

                new Thread((gameoyunac) =>
                {
                    Thread.CurrentThread.IsBackground = true;
                }).Start();
            }
        }
    }
}

Sorun çözüldü hata almadım.
 
C#:
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;

                new Thread((gameoyunac) =>
                {
                    Thread.CurrentThread.IsBackground = true;
                }).Start();
            }
        }
    }
}

Sorun çözüldü hata almadım.
Hocam peki proje'yi denediğinizde minecraft açılıyor mu?
 

Yeni konular

Geri
Yukarı