// Token: 0x06001B14 RID: 6932 RVA: 0x00051ED4 File Offset: 0x000500D4 private bool method_3(string filePath) { Class98 @class = null; bool flag = false; try { @class = new Class98(filePath); flag = true; } catch (Exception ex) { if (@class != null) { @class.Dispose(); } @class = null; ex.smethod_1(new object[] { string.Format(JoeFish.string_10, filePath) }); DialogBox.smethod_7(ex, filePath); } if (flag && this.method_1(@class)) { if (this.class98_0 != null) { this.class98_0.Dispose(); } this.class98_0 = @class; this.CustomCapturesMenuItem.Checked = true; this.DefaultCapturesMenuItem.Checked = false; return(true); } if (@class != null) { @class.Dispose(); } @class = null; this.DefaultCapturesMenuItem.Checked = false; this.CustomCapturesMenuItem.Checked = false; DialogBox.smethod_3(JoeFish.string_8, JoeFish.string_9); return(false); }
// Token: 0x06001B13 RID: 6931 RVA: 0x00051DBC File Offset: 0x0004FFBC private void method_2(bool displayErrorIfFailure) { Class110.Instance.JoeFishSettings.CustomCaptureFile = null; if (File.Exists(Class291.string_20)) { bool flag = false; Class98 @class = null; try { @class = new Class98(Class291.string_20); flag = true; } catch (Exception ex) { if (@class != null) { @class.Dispose(); } @class = null; if (displayErrorIfFailure) { ex.smethod_1(new object[] { Class291.string_20 }); } } if (flag && this.method_1(@class)) { if (this.class98_0 != null) { this.class98_0.Dispose(); } this.class98_0 = @class; this.DefaultCapturesMenuItem.Checked = true; this.CustomCapturesMenuItem.Checked = false; return; } if (@class != null) { @class.Dispose(); } @class = null; if (displayErrorIfFailure) { DialogBox.smethod_3(JoeFish.string_13, JoeFish.string_9); return; } } else { if (this.class98_0 != null) { this.class98_0.Dispose(); } this.class98_0 = null; if (displayErrorIfFailure) { DialogBox.smethod_3(JoeFish.string_11, JoeFish.string_12); } this.DefaultCapturesMenuItem.Checked = false; this.CustomCapturesMenuItem.Checked = false; } }