public static bool smethod_0(Enum101 type, string username, Dictionary <string, string> variables, out Class142 toontownWindow)
        {
            toontownWindow = null;
            Process process = null;
            bool    result;

            try
            {
                Class96 @class;
                switch (type)
                {
                case Enum101.const_1:
                {
                    Class99 connectSettings = Class110.Instance.ConnectSettings;
                    if (connectSettings.SpoofedToonTownEnabled)
                    {
                        @class = Class110.Instance.ConnectSettings.SpoofedToonTownVersionData;
                        Class80.smethod_1(Class80.string_0, connectSettings.PatchServer.PANDA_DOWNLOAD_URL);
                    }
                    else
                    {
                        @class = Class110.Instance.ConnectSettings.ActualToonTownVersionData;
                        Class80.smethod_1(Class80.string_0, @class.Properties.PANDA_DOWNLOAD_URL);
                    }
                    Class80.smethod_1(Class80.string_1, Class80.string_19);
                    Class80.smethod_1(Class80.string_2, Class80.string_25);
                    break;
                }

                case Enum101.const_2:
                    @class = Class110.Instance.ConnectSettings.ActualTestToonTownVersionData;
                    Class80.smethod_1(Class80.string_0, @class.Properties.PANDA_DOWNLOAD_URL);
                    Class80.smethod_1(Class80.string_1, Class80.string_20);
                    Class80.smethod_1(Class80.string_2, Class80.string_24);
                    break;

                default:
                    throw new NotSupportedException(Class80.string_3);
                }
                Class80.smethod_1(Class80.string_4, string.Empty);
                Class80.smethod_1(Class80.string_5, string.Empty);
                Class80.smethod_1(Class80.string_6, Class80.string_22);
                Class80.smethod_1(Class80.string_7, Class80.string_23);
                Class80.smethod_1(Class80.string_8, string.Empty);
                Class80.smethod_1(Class80.string_9, Class80.string_21);
                Class80.smethod_1(Class80.string_10, @class.Properties.GAME_VERSION_TEXT);
                Class80.smethod_1(Class80.string_11, @class.Properties.GAME_SERVER);
                Class80.smethod_1(Class80.string_12, @class.Properties.ACCOUNT_SERVER);
                string key = Class80.string_13;
                if (Class80.action_0 == null)
                {
                    Class80.action_0 = new Action <KeyValuePair <string, string> >(Class80.smethod_2);
                }
                variables.smethod_5(key, Class80.action_0);
                string key2 = Class80.string_14;
                if (Class80.action_1 == null)
                {
                    Class80.action_1 = new Action <KeyValuePair <string, string> >(Class80.smethod_3);
                }
                variables.smethod_5(key2, Class80.action_1);
                string key3 = Class80.string_15;
                if (Class80.action_2 == null)
                {
                    Class80.action_2 = new Action <KeyValuePair <string, string> >(Class80.smethod_4);
                }
                variables.smethod_5(key3, Class80.action_2);
                string key4 = Class80.string_16;
                if (Class80.action_3 == null)
                {
                    Class80.action_3 = new Action <KeyValuePair <string, string> >(Class80.smethod_5);
                }
                variables.smethod_5(key4, Class80.action_3);
                string key5 = Class80.string_17;
                if (Class80.action_4 == null)
                {
                    Class80.action_4 = new Action <KeyValuePair <string, string> >(Class80.smethod_6);
                }
                variables.smethod_5(key5, Class80.action_4);
                process = new Process();
                process.EnableRaisingEvents = true;
                ProcessStartInfo processStartInfo = new ProcessStartInfo();
                switch (type)
                {
                default:
                    processStartInfo.WorkingDirectory = Class291.ToonTownOpenDataDirectory;
                    processStartInfo.FileName         = Path.Combine(Class291.ToonTownOpenDataDirectory, Class502.string_8);
                    break;

                case Enum101.const_2:
                    processStartInfo.WorkingDirectory = Class291.ToonTownTestDataDirectory;
                    processStartInfo.FileName         = Path.Combine(Class291.ToonTownTestDataDirectory, Class502.string_8);
                    break;
                }
                processStartInfo.CreateNoWindow  = true;
                processStartInfo.WindowStyle     = ProcessWindowStyle.Hidden;
                processStartInfo.Arguments       = string.Empty;
                processStartInfo.UseShellExecute = true;
                process.StartInfo = processStartInfo;
                toontownWindow    = Class142.smethod_8(process, type, username, false);
                process.Start();
                result = true;
            }
            catch (Exception ex)
            {
                if (process != null)
                {
                    process.Dispose();
                }
                ex.smethod_0();
                result = false;
            }
            return(result);
        }
 private static void smethod_6(KeyValuePair <string, string> args)
 {
     Class80.smethod_1(args.Key, args.Value);
 }