private void AddPaths(ObservableCollection <string> pathsInternal) { if (Gog.Exisit()) { _pathsInternal.Add("GoG Games Detected"); } if (Origin.Exist()) { _pathsInternal.Add("Origin Games Detected"); } if (Uplay.Exist()) { _pathsInternal.Add("Uplay Games Detected"); } if (Battlenet.Exist()) { _pathsInternal.Add("Battle.net Games Detected"); } if (Desura.Exist()) { _pathsInternal.Add("Desura Games Detected"); } if (Custom.Exist()) { _pathsInternal.Add("Custom Game Paths Detected"); } if (Nexon.Exist()) { _pathsInternal.Add("Nexon Games Detected"); } }
private void Start_Click(object sender, RoutedEventArgs e) { Core core = null; if (Nexon.IsChecked.Value) { core = new Nexon(webControl); } else if (Naver.IsChecked.Value) { core = new Naver(webControl); } else if (Daum.IsChecked.Value) { core = new Daum(webControl); } else if (MGame.IsChecked.Value) { core = new MGame(webControl); } else if (HanGame.IsChecked.Value) { core = new HanGame(webControl); } core.StartGame(); }
private void Login() { Core core = null; if (Nexon.IsChecked.Value) { core = new Nexon(webControl); } else if (Naver.IsChecked.Value) { core = new Naver(webControl); } else if (Daum.IsChecked.Value) { core = new Daum(webControl); } else if (MGame.IsChecked.Value) { core = new MGame(webControl); } else if (HanGame.IsChecked.Value) { core = new HanGame(webControl); } if (core == null) { MessageBox.Show("로스트사가 서버를 선택해주세요.", "알림", MessageBoxButton.OK, MessageBoxImage.Information); return; } if (Favorite.IsChecked.Value) { SetFavorite(core.GetServer()); } core.LogIn(ID.Text, PW.Password, () => { LoGin.IsEnabled = false; Naver.IsEnabled = false; Daum.IsEnabled = false; Nexon.IsEnabled = false; MGame.IsEnabled = false; HanGame.IsEnabled = false; Start.IsEnabled = true; Favorite.IsEnabled = false; MessageBox.Show("로그인에 성공하였습니다.", "알림", MessageBoxButton.OK, MessageBoxImage.Information); }); }
private static List <string> GetAddtionalGames() { var gameDirs = new List <string>(); if (Gog.Exisit()) { gameDirs.AddRange(Gog.GetGames()); } if (Origin.Exist()) { gameDirs.AddRange(Origin.GetGames()); } if (Uplay.Exist()) { gameDirs.AddRange(Uplay.GetGames()); } if (Battlenet.Exist()) { gameDirs.AddRange(Battlenet.GetGames()); } if (Desura.Exist()) { gameDirs.AddRange(Desura.GetGames()); } if (Custom.Exist()) { gameDirs.AddRange(Custom.GetGames()); } if (Gamestop.Exist()) { gameDirs.AddRange(Gamestop.GetGames()); } if (Nexon.Exist()) { gameDirs.AddRange(Nexon.GetGames()); } return(gameDirs); }