示例#1
0
                        // Token: 0x06001AF0 RID: 6896 RVA: 0x000515FC File Offset: 0x0004F7FC
                        public void method_0(object sender, FormClosedEventArgs e)
                        {
                            this.class220_0.connect_0.Show();
                            this.installing_0.Dispose();
                            switch (this.installing_0.InstallerResult)
                            {
                            case Enum42.const_1:
                                this.class220_0.connect_0.BringToFront();
                                this.class220_0.connect_0.Activate();
                                DialogBox.smethod_4(Connect.string_7, Connect.string_8);
                                break;

                            case Enum42.const_2:
                                this.class220_0.connect_0.txtUsername.Text = string.Empty;
                                this.class220_0.connect_0.txtPassword.Text = string.Empty;
                                this.class220_0.connect_0.WindowState      = FormWindowState.Minimized;
                                break;

                            case Enum42.const_4:
                                this.class220_0.connect_0.BringToFront();
                                this.class220_0.connect_0.Activate();
                                DialogBox.smethod_4(Connect.string_13, Connect.string_14);
                                break;

                            case Enum42.const_5:
                                this.class220_0.connect_0.BringToFront();
                                this.class220_0.connect_0.Activate();
                                DialogBox.smethod_4(Connect.string_11, Connect.string_12);
                                break;

                            case Enum42.const_6:
                                this.class220_0.connect_0.BringToFront();
                                this.class220_0.connect_0.Activate();
                                DialogBox.smethod_3(Connect.string_9, Connect.string_10);
                                break;
                            }
                            Class509.InstallingOrLoggingIn = false;
                        }
 // Token: 0x06001B29 RID: 6953 RVA: 0x00009D5E File Offset: 0x00007F5E
 private static void smethod_0()
 {
     DialogBox.smethod_4(JoeFish.string_14, JoeFish.string_15);
 }
        // Token: 0x06001AB2 RID: 6834 RVA: 0x0004E82C File Offset: 0x0004CA2C
        public static void smethod_7(Exception ex, string path)
        {
            if (path == null)
            {
                path = string.Empty;
            }
            Type type = ex.GetType();

            if (type == typeof(InvalidFileType))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_19, new object[]
                {
                    path
                }), DialogBox.string_20);
                return;
            }
            if (type == typeof(ArgumentNullException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_15, new object[]
                {
                    ex.Message
                }), DialogBox.string_16);
                return;
            }
            if (type == typeof(ArgumentException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_13, new object[]
                {
                    ex.Message
                }), DialogBox.string_14);
                return;
            }
            if (type == typeof(WebException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, "There has been a exception while downloading: '{0}'. '{1}'", new object[]
                {
                    path,
                    ex.Message
                }), "Error downloading");
                return;
            }
            if (type == typeof(PathTooLongException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_3, new object[]
                {
                    path
                }), DialogBox.string_4);
                return;
            }
            if (type == typeof(DirectoryNotFoundException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_5, new object[]
                {
                    Path.GetDirectoryName(path)
                }), DialogBox.string_6);
                return;
            }
            if (type == typeof(IOException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_7, new object[]
                {
                    ex.Message
                }), DialogBox.string_8);
                return;
            }
            if (type == typeof(NotSupportedException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_9, new object[]
                {
                    ex.Message
                }), DialogBox.string_10);
                return;
            }
            if (type == typeof(UnauthorizedAccessException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_11, new object[]
                {
                    ex.Message
                }), DialogBox.string_12);
                return;
            }
            if (type == typeof(FileNotFoundException))
            {
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_1, new object[]
                {
                    path
                }), DialogBox.string_2);
                return;
            }
            if (type == typeof(InvalidPixelFormatException))
            {
                InvalidPixelFormatException ex2 = ex as InvalidPixelFormatException;
                DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_0, new object[]
                {
                    Path.GetFileName(path),
                    ex2.PixelFormat.smethod_0()
                }), "Invalid Pixel Format");
                return;
            }
            DialogBox.smethod_4(string.Format(Class217.cultureInfo_0, DialogBox.string_17, new object[]
            {
                ex.Message
            }), DialogBox.string_18);
        }