public ListForm(ClassicubeServer[] servers, ClassicubeService classicube) { InitializeComponent(); _servers = servers; _filtered = servers; _service = classicube; _lvwColumnSorter = new ListViewColumnSorter(); listView1.ListViewItemSorter = _lvwColumnSorter; }
private void SignIn() { var cc = new ClassicubeService(comboUsername.Text, txtPassword.Text); if (!cc.Login()) { MessageBox.Show("Failed to login, bad username or password?", "ClassicalSharp Launcher", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } var servers = cc.GetAllServers(); var list = new ListForm(servers, cc); list.ShowDialog(); Show(); }