fatih_213
Decapat
- Katılım
- 21 Aralık 2021
- Mesajlar
- 22
Daha fazla
- Cinsiyet
- Erkek
Visual Studio 2022'de normalde form1 diye dosyam var ancak çözüm gezgininde görünmüyor. Programı başlatınca form1 gözüküyor ama altta form1 bulunamadı diye hata veriyor ve dosyalarda da gözüküyor. Ayrıca diğer formda ise buton, versiyon seçme falan varken başlatınca onlar gözükmüyor.
Bu da versiyon seçme kutusu.
Kodları.
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 cmllib. Core;
Using cmllib. Core. Auth;
Namespace eagle_launcher.
{
Public partial class loginscreen: Form.
{
Public LoginScreen()
{
InitializeComponent();
Var session = msession. Getofflinesession("");
}
Public static string version;
Msession session;
Private Void path()
{
Var path = New MinecraftPath();
Var Launcher = New cmlauncher(path);
// Show launch progress to Console.
Launcher. Filechanged += (e) =>
{
Download. Items. Add(string. Format("[{0}] {1} - {2}/{3}", e.FileKind.ToString(), e.FileName, e.ProgressedFileCount, e.TotalFileCount));
};
Launcher. Progresschanged += (s, e) =>
{
//Console. Writeline("{0}%", e. Progresspercentage);
};
Foreach (var item in launcher.GetAllVersions())
{
Combobox2.ıtems. Add(item. Name);
}
}
Private Void launch()
{
Var path = New MinecraftPath();
Var Launcher = New cmlauncher(path);
// Show launch progress to Console.
Launcher. Filechanged += (e) =>
{
Download. Items. Add(string. Format("[{0}] {1} - {2}/{3}", e.FileKind.ToString(), e.FileName, e.ProgressedFileCount, e.TotalFileCount));
};
Launcher. Progresschanged += (s, e) =>
{
//Console. Writeline("{0}%", e. Progresspercentage);
};
Var launchoption = New mlaunchoption.
{
Maximumrammb = 1024,
Serverıp = "mc.hypixel.net"
};
Version = comboBox2.SelectedItem.ToString();
Var process = Launcher. Createprocess(version, launchoption);
process.Start();
}
Private Void loginscreen_load(object sender, eventargs e)
{
path();
}
Private Void combobox2_selectedındexchanged(object sender, eventargs e)
{
}
Private Void play_click(object sender, eventargs e)
{
}
Private Void download_selectedındexchanged(object sender, eventargs e)
{
}
}
}
Bu da versiyon seçme kutusu.
Kodları.
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 cmllib. Core;
Using cmllib. Core. Auth;
Namespace eagle_launcher.
{
Public partial class loginscreen: Form.
{
Public LoginScreen()
{
InitializeComponent();
Var session = msession. Getofflinesession("");
}
Public static string version;
Msession session;
Private Void path()
{
Var path = New MinecraftPath();
Var Launcher = New cmlauncher(path);
// Show launch progress to Console.
Launcher. Filechanged += (e) =>
{
Download. Items. Add(string. Format("[{0}] {1} - {2}/{3}", e.FileKind.ToString(), e.FileName, e.ProgressedFileCount, e.TotalFileCount));
};
Launcher. Progresschanged += (s, e) =>
{
//Console. Writeline("{0}%", e. Progresspercentage);
};
Foreach (var item in launcher.GetAllVersions())
{
Combobox2.ıtems. Add(item. Name);
}
}
Private Void launch()
{
Var path = New MinecraftPath();
Var Launcher = New cmlauncher(path);
// Show launch progress to Console.
Launcher. Filechanged += (e) =>
{
Download. Items. Add(string. Format("[{0}] {1} - {2}/{3}", e.FileKind.ToString(), e.FileName, e.ProgressedFileCount, e.TotalFileCount));
};
Launcher. Progresschanged += (s, e) =>
{
//Console. Writeline("{0}%", e. Progresspercentage);
};
Var launchoption = New mlaunchoption.
{
Maximumrammb = 1024,
Serverıp = "mc.hypixel.net"
};
Version = comboBox2.SelectedItem.ToString();
Var process = Launcher. Createprocess(version, launchoption);
process.Start();
}
Private Void loginscreen_load(object sender, eventargs e)
{
path();
}
Private Void combobox2_selectedındexchanged(object sender, eventargs e)
{
}
Private Void play_click(object sender, eventargs e)
{
}
Private Void download_selectedındexchanged(object sender, eventargs e)
{
}
}
}
Son düzenleyen: Moderatör: