Ejemplo n.º 1
0
        private void Me_Startup(object sender, StartupEventArgs e)
        {
            //Discarded unreachable code: IL_012d, IL_017b, IL_017d, IL_018d, IL_01af
            int num  = default(int);
            int num3 = default(int);

            try
            {
                ProjectData.ClearProjectError();
                num = 1;
                int num2 = 2;
                Declarer.startPath = AppDomain.CurrentDomain.BaseDirectory;
                num2 = 3;
                Declarer.startPath = Declarer.startPath.Substring(0, checked (Declarer.startPath.Length - 1));
                num2 = 4;
                if (MySettingsProperty.Settings.lang.Length < 1)
                {
                    num2 = 5;
                    MySettingsProperty.Settings.lang = TFile.ReadIni(Declarer.startPath + "\\lang.ini", "Language", "lang");
                    num2 = 6;
                    MySettingsProperty.Settings.Save();
                }
                num2 = 7;
                Declarer.xd.Load(Declarer.startPath + "\\langs\\" + MySettingsProperty.Settings.lang + ".xml");
                num2         = 8;
                Declarer.xeL = Declarer.xd["LANG_TEXT"];
                num2         = 9;
                SelfService.UpgradeSettings();
                num2 = 10;
                if (MySettingsProperty.Settings.types.Length < 1)
                {
                    num2 = 11;
                    SelfService.InitSettings();
                }
                num2 = 12;
                SelfService.UpdateExts();
                num2 = 13;
                SelfService.VerifyKey(MySettingsProperty.Settings.key, ref Declarer.licenseType, ref Declarer.licensedPCs);
                num2 = 14;
                Thread thread = new Thread(CheckLatestVerOnStartup);
                num2 = 15;
                thread.Start();
            }
            catch (Exception obj) when((obj is Exception && num != 0) & (num3 == 0))
            {
                ProjectData.SetProjectError((Exception)obj);
                /*Error near IL_01ad: Could not find block for branch target IL_017d*/;
            }
            if (num3 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }