private static void StartApp()
{
try Process.Start("dev");
catch {}
GetBotsResponse getBotsResponse = App.RequestBots();
if ((getBotsResponse != null ? getBotsResponse.BotShortInfos : (BotInfo[]) null) == null || getBotsResponse.BotShortInfos.Length == 0)
{
int num2 = (int) MessageBox.Show(Resources.NO_AVALIBLE_BOTS, Resources.ERROR_TITLE, MessageBoxButton.OK, MessageBoxImage.Hand);
Environment.Exit(0);
}
BotChooseWindow botChooseWindow = new BotChooseWindow(App._login, getBotsResponse.BotShortInfos);
botChooseWindow.ShowDialog();
if (botChooseWindow.SelectedBot != null) new MainWindow(response, botChooseWindow.SelectedBot).ShowDialog();
Environment.Exit(0);
}