private void LoadTypes() { //Discarded unreachable code: IL_0139, IL_017f, IL_0181, IL_0191, IL_01b3 int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; tlv.ListViewItemSorter = null; num = 4; string[] array = My.MySettingsProperty.Settings.types.Split('|'); num = 5; string[] array2 = array; foreach (string text in array2) { num = 6; ListViewItem listViewItem = tlv.Items.Add("." + text.Split(':')[2]); num = 7; listViewItem.SubItems.Add(text.Split(':')[1]); num = 8; if (Operators.CompareString(text.Split(':')[0], "P", TextCompare: false) == 0) { num = 9; listViewItem.SubItems.Add(SelfService.GetWord("yes")); } else { num = 11; listViewItem.SubItems.Add(SelfService.GetWord("no")); } num = 12; } num = 13; tlv.Items[0].Selected = true; } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_01b1: Could not find block for branch target IL_0181*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void LoadLicense() { //Discarded unreachable code: IL_0107, IL_014d, IL_014f, IL_015f, IL_0181 int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; if (Declarer.licenseType.Length > 0) { num = 4; lLicensed.Text = SelfService.GetWord("licensed_to"); num = 5; lCUName.Text = My.MySettingsProperty.Settings.user; num = 6; lCUName.ForeColor = Color.FromArgb(0, 174, 29); num = 7; lLicenseType.ForeColor = Color.FromArgb(0, 174, 29); } else { num = 9; lLicensed.Text = SelfService.GetWord("trial_version"); num = 10; lCUName.Text = SelfService.GetWord("dpfp_limit"); num = 11; lCUName.ForeColor = Color.FromArgb(243, 82, 37); num = 12; lLicenseType.ForeColor = Color.FromArgb(243, 82, 37); } num = 13; Form inter = this; SelfService.DisplayLicense(ref inter); } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_017f: Could not find block for branch target IL_014f*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void LoadLangText() { //Discarded unreachable code: IL_009e, IL_00d4, IL_00d6, IL_00e6, IL_0108 int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", Microsoft.VisualBasic.CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; Text = SelfService.GetWord(base.AccessibleDescription); num = 4; IEnumerator enumerator = base.Controls.GetEnumerator(); while (enumerator.MoveNext()) { Control control = (Control)enumerator.Current; num = 5; if (control.AccessibleDescription != null) { num = 6; if (control.AccessibleDescription.Length > 0) { num = 7; control.Text = SelfService.GetWord(control.AccessibleDescription); } } num = 8; } num = 9; if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_0106: Could not find block for branch target IL_00d6*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void tlv_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) { //Discarded unreachable code: IL_008c, IL_00c2, IL_00c4, IL_00d4, IL_00f6 int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; if (e.IsSelected) { num = 4; if (Operators.CompareString(e.Item.SubItems[2].Text, SelfService.GetWord("yes"), TextCompare: false) == 0) { num = 5; lEdit.Enabled = false; num = 6; lDel.Enabled = false; } else { num = 8; lEdit.Enabled = true; num = 9; lDel.Enabled = true; } } } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_00f4: Could not find block for branch target IL_00c4*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void LoadLangText() { //Discarded unreachable code: IL_010c, IL_0142, IL_0144, IL_0154, IL_0176 int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; Text = SelfService.GetWord("about") + "Duplicate Photo Finder Plus"; num = 4; lMember.Text = SelfService.GetWord("twes"); num = 5; lVer.Text = SelfService.GetWord("version") + "8.0 (" + SelfService.GetWord("build") + "022)"; num = 6; lCopyright.Text = SelfService.GetWord("copyright") + "2013-2018 TriSun Software Limited. " + SelfService.GetWord("rights"); num = 7; tt.SetToolTip(pbCompLogo, SelfService.GetWord("comp_home")); num = 8; tt.SetToolTip(pbProdLogo, SelfService.GetWord("prod_home")); num = 9; pbCompLogo.Left = checked (p.Width - pbCompLogo.Width - 3); } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_0174: Could not find block for branch target IL_0144*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void Me_Load(object sender, EventArgs e) { //Discarded unreachable code: IL_00a7, IL_00d9, IL_00db, IL_00eb, IL_010d int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; lTip.Text = SelfService.GetWord("review_checks"); num = 4; lOK.Text = SelfService.GetWord("ok"); num = 5; lCancel.Text = SelfService.GetWord("cancel"); num = 6; tsmiRemove.Text = SelfService.GetWord("remove1"); num = 7; tsmiRun.Text = SelfService.GetWord("open"); num = 8; tsmiRun.ShortcutKeyDisplayString = SelfService.GetWord("dclick"); } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_010b: Could not find block for branch target IL_00db*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void bOK_Click(object sender, EventArgs e) { //Discarded unreachable code: IL_0121, IL_017b, IL_017d, IL_018d, IL_01af int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", Microsoft.VisualBasic.CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; string text = string.Empty; num = 4; Declarer.selectedDrives.Clear(); num = 5; IEnumerator enumerator = tv.Nodes.GetEnumerator(); while (enumerator.MoveNext()) { TreeNode treeNode = (TreeNode)enumerator.Current; num = 6; if (treeNode.Checked) { num = 7; text = text + treeNode.Text + ", "; num = 8; Declarer.selectedDrives.Add(treeNode.Name); } num = 9; } num = 10; if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } num = 11; if (text.Length > 0) { num = 12; text = text.Substring(0, checked (text.Length - 2)); num = 16; My.MyProject.Forms.Main.tbDrives.Text = text; num = 17; My.MyProject.Forms.Main.rbSpecify.Checked = true; num = 18; Close(); } else { num = 14; Interaction.MsgBox(SelfService.GetWord("sel_drive"), MsgBoxStyle.Information); } } catch (Exception obj) when((obj is Exception && num2 != 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(); } }
private void bOK_Click(object sender, EventArgs e) { //Discarded unreachable code: IL_0140, IL_0196, IL_0198, IL_01a8, IL_01ca int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", Microsoft.VisualBasic.CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; if (lbSelected.Items.Count < 1) { num = 4; Interaction.MsgBox(SelfService.GetWord("sel_ff"), MsgBoxStyle.Information); } else { num = 7; if (lbSelected.Items.Count == 1 && Microsoft.VisualBasic.FileIO.FileSystem.FileExists(lbSelected.Items[0].ToString())) { num = 8; Interaction.MsgBox(SelfService.GetWord("sel_ff"), MsgBoxStyle.Information); } else { num = 11; My.MyProject.Forms.Main.lbFF.Items.Clear(); num = 12; IEnumerator enumerator = lbSelected.Items.GetEnumerator(); while (enumerator.MoveNext()) { object objectValue = RuntimeHelpers.GetObjectValue(enumerator.Current); num = 13; My.MyProject.Forms.Main.lbFF.Items.Add(RuntimeHelpers.GetObjectValue(objectValue)); num = 14; } num = 15; if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } num = 16; My.MyProject.Forms.Main.rbFF.Checked = true; num = 17; Close(); } } } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_01c8: Could not find block for branch target IL_0198*/ ; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void Buttons_Click(object sender, EventArgs e) { //Discarded unreachable code: IL_0180, IL_01f2, IL_01f4, IL_0204, IL_0226 checked { int num2 = default(int); int num4 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", Microsoft.VisualBasic.CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; string name = ((Control)sender).Name; if (Operators.CompareString(name, "lRemove", TextCompare: false) != 0) { if (Operators.CompareString(name, "lCls", TextCompare: false) != 0) { if (Operators.CompareString(name, "lOK", TextCompare: false) != 0) { if (Operators.CompareString(name, "lCancel", TextCompare: false) == 0) { num = 23; Close(); } } else { num = 21; bOK_Click(bOK, new EventArgs()); } } else { num = 16; if (lbSelected.Items.Count <= 0) { goto IL_0147; } num = 17; if (Interaction.MsgBox(SelfService.GetWord("ask_remove_all"), MsgBoxStyle.OkCancel | MsgBoxStyle.AbortRetryIgnore | MsgBoxStyle.Question) == MsgBoxResult.Yes) { goto IL_0147; } } } else { num = 5; if (lbSelected.SelectedItems.Count <= 0) { goto IL_009e; } num = 6; if (Interaction.MsgBox(SelfService.GetWord("ask_remove"), MsgBoxStyle.OkCancel | MsgBoxStyle.AbortRetryIgnore | MsgBoxStyle.Question) == MsgBoxResult.Yes) { goto IL_009e; } } goto end_IL_0000; IL_0147: num = 19; lbSelected.Items.Clear(); goto end_IL_0000; IL_009e: num = 8; int num3 = lbSelected.Items.Count - 1; num = 9; for (int i = num3; i >= 0; i += -1) { num = 10; if (lbSelected.GetSelected(i)) { num = 11; lbSelected.Items.RemoveAt(i); } num = 12; } num = 13; if (lbSelected.Items.Count > 0) { num = 14; lbSelected.SelectedIndex = 0; } end_IL_0000 :; } catch (Exception obj) when((obj is Exception && num2 != 0) & (num4 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_0224: Could not find block for branch target IL_01f4*/; } if (num4 != 0) { ProjectData.ClearProjectError(); } } }
private void tv_AfterCheck(object sender, TreeViewEventArgs e) { //Discarded unreachable code: IL_048f, IL_0585, IL_0587, IL_0597, IL_05b9 checked { int num2 = default(int); int num6 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", Microsoft.VisualBasic.CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; if (!e.Node.Checked) { num = 55; lbSelected.Items.Remove(e.Node.Name); goto IL_0457; } num = 4; if (e.Node.Level != 0) { goto IL_0072; } num = 5; if (!My.MySettingsProperty.Settings.subfolders) { goto IL_0072; } num = 6; e.Node.Checked = false; num = 7; Interaction.MsgBox(SelfService.GetWord("not_root"), MsgBoxStyle.Information); goto end_IL_0000; IL_0072: num = 9; if (Microsoft.VisualBasic.FileIO.FileSystem.DirectoryExists(e.Node.Name)) { num = 10; if (My.MySettingsProperty.Settings.subfolders) { num = 11; int num3 = lbSelected.Items.Count - 1; num = 12; for (int i = num3; i >= 0; i += -1) { num = 13; if (LikeOperator.LikeString(lbSelected.Items[i].ToString().ToLower(), e.Node.Name.ToLower() + "\\*", Microsoft.VisualBasic.CompareMethod.Binary)) { num = 14; lbSelected.Items.RemoveAt(i); } num = 15; } num = 16; num3 = lbSelected.Items.Count - 1; num = 17; int num4 = num3; while (num4 >= 0) { num = 18; if (!LikeOperator.LikeString(e.Node.Name.ToLower(), lbSelected.Items[num4].ToString().ToLower() + "\\*", Microsoft.VisualBasic.CompareMethod.Binary)) { num = 22; num4 += -1; continue; } num = 19; e.Node.Checked = false; num = 20; Interaction.MsgBox(SelfService.GetWord("sel_again"), MsgBoxStyle.Information); goto end_IL_0000; } } else { num = 24; int num3 = lbSelected.Items.Count - 1; num = 25; for (int j = num3; j >= 0; j += -1) { num = 26; if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(lbSelected.Items[j].ToString().ToLower())) { num = 27; if (Operators.CompareString(new FileInfo(lbSelected.Items[j].ToString()).DirectoryName.ToLower(), e.Node.Name.ToLower(), TextCompare: false) == 0) { num = 28; lbSelected.Items.RemoveAt(j); } } num = 29; } } } num = 30; if (!Microsoft.VisualBasic.FileIO.FileSystem.FileExists(e.Node.Name)) { goto IL_03fc; } num = 31; if (My.MySettingsProperty.Settings.subfolders) { num = 32; int num3 = lbSelected.Items.Count - 1; num = 33; int num5 = num3; while (num5 >= 0) { num = 34; if (!LikeOperator.LikeString(e.Node.Name.ToLower(), lbSelected.Items[num5].ToString().ToLower() + "\\*", Microsoft.VisualBasic.CompareMethod.Binary)) { num = 38; num5 += -1; continue; } num = 35; e.Node.Checked = false; num = 36; Interaction.MsgBox(SelfService.GetWord("sel_again"), MsgBoxStyle.Information); goto end_IL_0000; } goto IL_0376; } num = 40; if (lbSelected.FindStringExact(e.Node.Parent.Name) == -1) { goto IL_0376; } num = 41; e.Node.Checked = false; num = 42; Interaction.MsgBox(SelfService.GetWord("file_again"), MsgBoxStyle.Information); goto end_IL_0000; IL_0457: num = 56; if (lbSelected.Items.Count > 0 && lbSelected.SelectedIndex < 0) { num = 57; lbSelected.SelectedIndex = 0; } goto end_IL_0000; IL_03fc: num = 52; if (lbSelected.FindStringExact(e.Node.Name) == -1) { num = 53; lbSelected.Items.Add(e.Node.Name); } goto IL_0457; IL_0376: num = 44; string text = new FileInfo(e.Node.Name).Extension.ToLower() + "."; num = 45; if (text.Length > 2) { num = 46; if (Declarer.allPicExts.Contains(text)) { goto IL_03fc; } } num = 49; e.Node.Checked = false; num = 50; Interaction.MsgBox(SelfService.GetWord("invalid_pic") + "\r\n" + e.Node.Name, MsgBoxStyle.Information); end_IL_0000 :; } catch (Exception obj) when((obj is Exception && num2 != 0) & (num6 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_05b7: Could not find block for branch target IL_0587*/; } if (num6 != 0) { ProjectData.ClearProjectError(); } } }
private void LoadLangText() { //Discarded unreachable code: IL_043c, IL_050a, IL_050c, IL_051c, IL_053e checked { int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; Text = SelfService.GetWord(base.AccessibleDescription); num = 4; IEnumerator enumerator = base.Controls.GetEnumerator(); while (enumerator.MoveNext()) { Control control = (Control)enumerator.Current; num = 5; if (control.AccessibleDescription != null) { num = 6; if (control.AccessibleDescription.Length > 0) { num = 7; control.Text = SelfService.GetWord(control.AccessibleDescription); } } num = 8; if (control.AccessibleName != null) { num = 9; if (control.AccessibleName.Length > 0) { num = 10; tt.SetToolTip(control, SelfService.GetWord(control.AccessibleName)); } } num = 11; if (control is Panel) { num = 12; IEnumerator enumerator2 = control.Controls.GetEnumerator(); while (enumerator2.MoveNext()) { Control control2 = (Control)enumerator2.Current; num = 13; if (control2.AccessibleDescription != null) { num = 14; if (control2.AccessibleDescription.Length > 0) { num = 15; control2.Text = SelfService.GetWord(control2.AccessibleDescription); } } num = 16; if (control2 is Panel) { num = 17; IEnumerator enumerator3 = control2.Controls.GetEnumerator(); while (enumerator3.MoveNext()) { Control control3 = (Control)enumerator3.Current; num = 18; if (control3.AccessibleDescription != null) { num = 19; if (control3.AccessibleDescription.Length > 0) { num = 20; control3.Text = SelfService.GetWord(control3.AccessibleDescription); } } num = 21; } num = 22; if (enumerator3 is IDisposable) { (enumerator3 as IDisposable).Dispose(); } } num = 23; } num = 24; if (enumerator2 is IDisposable) { (enumerator2 as IDisposable).Dispose(); } } num = 25; } num = 26; if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } num = 27; pCreated.Left = lSmart3.Left + lSmart3.Width + 9; num = 28; pPath.Left = lSmart2.Left + lSmart2.Width + 9; num = 29; pName.Left = lSmart4.Left + lSmart4.Width + 9; num = 30; rbLate.Left = rbEarly.Left + rbEarly.Width + 9; num = 31; rbLong.Left = rbShort.Left + rbShort.Width + 9; num = 32; rbLongN.Left = rbShortN.Left + rbShortN.Width + 9; num = 33; lSave.AutoSize = true; num = 34; int width = lSave.Width + 32; num = 35; lSave.AutoSize = false; num = 36; lSave.Size = new Size(width, 27); num = 37; lReset.AutoSize = true; num = 38; width = lReset.Width + 32; num = 39; lReset.AutoSize = false; num = 40; lReset.Size = new Size(width, 27); num = 41; lCancel.AutoSize = true; num = 42; width = lCancel.Width + 32; num = 43; lCancel.AutoSize = false; num = 44; lCancel.Size = new Size(width, 27); num = 45; lCancel.Left = lbExclude.Left + lbExclude.Width - lCancel.Width; num = 46; lReset.Left = lCancel.Left - 9 - lReset.Width; num = 47; lSave.Left = lReset.Left - 9 - lSave.Width; } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_053c: Could not find block for branch target IL_050c*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } } }
private void Buttons_Click(object sender, EventArgs e) { //Discarded unreachable code: IL_03bc, IL_04aa, IL_04ac, IL_04bc, IL_04de checked { int num2 = default(int); int num4 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; string name = ((Control)sender).Name; if (Operators.CompareString(name, "lTypes", TextCompare: false) != 0) { if (Operators.CompareString(name, "lAdd", TextCompare: false) != 0) { if (Operators.CompareString(name, "lDel", TextCompare: false) != 0) { if (Operators.CompareString(name, "lCls", TextCompare: false) != 0) { if (Operators.CompareString(name, "lSave", TextCompare: false) != 0) { if (Operators.CompareString(name, "lReset", TextCompare: false) == 0) { num = 38; cbSub.Checked = true; num = 39; cbHidden.Checked = true; num = 40; cbSmart.Checked = true; num = 41; rbShort.Checked = true; num = 42; rbShortN.Checked = true; num = 43; rbLate.Checked = true; num = 44; lbExclude.Items.Clear(); num = 45; lbExclude.Items.Add(Environment.GetEnvironmentVariable("WinDir")); num = 46; lbExclude.Items.Add(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)); num = 47; string empty = string.Empty; num = 48; empty = Environment.GetEnvironmentVariable("ProgramFiles(x86)"); num = 49; if (empty != null) { num = 50; if (empty.Length > 0) { num = 51; lbExclude.Items.Add(empty); } } num = 52; lbExclude.Items.Add(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)); num = 53; lbExclude.Items.Add(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); num = 54; lbExclude.Items.Add(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)); } } else { num = 36; SaveSettings(); } } else { num = 31; if (lbExclude.Items.Count <= 0) { goto IL_0257; } num = 32; if (Interaction.MsgBox(SelfService.GetWord("remove_all"), MsgBoxStyle.OkCancel | MsgBoxStyle.AbortRetryIgnore | MsgBoxStyle.Question) == MsgBoxResult.Yes) { goto IL_0257; } } } else { num = 20; if (lbExclude.SelectedItems.Count <= 0) { goto IL_01a4; } num = 21; if (Interaction.MsgBox(SelfService.GetWord("remove_folder"), MsgBoxStyle.OkCancel | MsgBoxStyle.AbortRetryIgnore | MsgBoxStyle.Question) == MsgBoxResult.Yes) { goto IL_01a4; } } } else { num = 7; FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); num = 8; folderBrowserDialog.Description = SelfService.GetWord("folder_exclude"); num = 9; folderBrowserDialog.ShowDialog(); num = 10; if (folderBrowserDialog.SelectedPath.Length >= 1) { num = 12; if (folderBrowserDialog.SelectedPath.Length < 4) { num = 13; Interaction.MsgBox(SelfService.GetWord("drive_exclude"), MsgBoxStyle.Information); } else { num = 15; if (lbExclude.FindStringExact(folderBrowserDialog.SelectedPath) == -1) { num = 16; lbExclude.Items.Add(folderBrowserDialog.SelectedPath); } else { num = 18; Interaction.MsgBox(SelfService.GetWord("folder_exist") + "\r\n" + folderBrowserDialog.SelectedPath, MsgBoxStyle.Information); } } } } } else { num = 5; My.MyProject.Forms.Types.ShowDialog(this); } goto end_IL_0000; IL_0257: num = 34; lbExclude.Items.Clear(); goto end_IL_0000; IL_01a4: num = 23; int num3 = lbExclude.Items.Count - 1; num = 24; for (int i = num3; i >= 0; i += -1) { num = 25; if (lbExclude.GetSelected(i)) { num = 26; lbExclude.Items.RemoveAt(i); } num = 27; } num = 28; if (lbExclude.Items.Count > 0) { num = 29; lbExclude.SelectedIndex = 0; } end_IL_0000 :; } catch (Exception obj) when((obj is Exception && num2 != 0) & (num4 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_04dc: Could not find block for branch target IL_04ac*/; } if (num4 != 0) { ProjectData.ClearProjectError(); } } }
private void SaveSettings() { //Discarded unreachable code: IL_0199, IL_01f3, IL_01f5, IL_0205, IL_0227 int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; My.MySettingsProperty.Settings.subfolders = cbSub.Checked; num = 4; My.MySettingsProperty.Settings.hidden = cbHidden.Checked; num = 5; My.MySettingsProperty.Settings.smart = cbSmart.Checked; num = 6; My.MySettingsProperty.Settings.path = Interaction.IIf(rbShort.Checked, "S", "L").ToString(); num = 7; My.MySettingsProperty.Settings.name = Interaction.IIf(rbShortN.Checked, "S", "L").ToString(); num = 8; My.MySettingsProperty.Settings.created = Interaction.IIf(rbEarly.Checked, "E", "L").ToString(); num = 9; string text = "|"; num = 10; IEnumerator enumerator = lbExclude.Items.GetEnumerator(); while (enumerator.MoveNext()) { //Exception objectValue = RuntimeHelpers.GetObjectValue(enumerator.Current); num = 11; if (Microsoft.VisualBasic.FileIO.FileSystem.DirectoryExists(enumerator.Current.ToString())) { num = 12; text = text + enumerator.Current.ToString() + "|"; } num = 13; } num = 14; if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } num = 15; My.MySettingsProperty.Settings.exclude = text; num = 16; My.MySettingsProperty.Settings.Save(); num = 17; Interaction.MsgBox(SelfService.GetWord("save_succ"), MsgBoxStyle.Information); num = 18; Close(); } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_0225: Could not find block for branch target IL_01f5*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void Me_Load(object sender, EventArgs e) { //Discarded unreachable code: IL_0208, IL_0282, IL_0284, IL_0294, IL_02b6 int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", Microsoft.VisualBasic.CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; ilTV.Images.Clear(); num = 4; ilTV.Images.Add(My.Resources.Resources.drive16); num = 5; ilTV.Images.Add(My.Resources.Resources.rom16); num = 6; ilTV.Images.Add(My.Resources.Resources.network16); num = 7; tv.Nodes.Clear(); num = 8; DriveInfo[] drives = DriveInfo.GetDrives(); num = 9; string empty = string.Empty; num = 10; DriveInfo[] array = drives; foreach (DriveInfo driveInfo in array) { num = 11; if (driveInfo.IsReady) { num = 12; empty = driveInfo.VolumeLabel + " (" + driveInfo.Name.Replace(":\\", ":") + ")"; num = 13; TreeNode treeNode; if (driveInfo.DriveType == DriveType.CDRom) { num = 14; treeNode = new TreeNode(empty, 1, 1); } else { num = 16; if (driveInfo.DriveType == DriveType.Network) { num = 17; empty = ((IFileSystem3) new FileSystemObjectClass()).GetDrive(driveInfo.Name).ShareName + " (" + driveInfo.Name.Replace(":\\", ":") + ")"; num = 18; treeNode = new TreeNode(empty, 2, 2); } else { num = 20; treeNode = new TreeNode(empty, 0, 0); } } num = 21; treeNode.Name = driveInfo.Name.ToLower(); num = 22; tv.Nodes.Add(treeNode); } num = 23; } num = 24; Text = SelfService.GetWord(base.AccessibleDescription); num = 25; lOK.Text = SelfService.GetWord(lOK.AccessibleDescription); num = 26; lCancel.Text = SelfService.GetWord(lCancel.AccessibleDescription); } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_02b4: Could not find block for branch target IL_0284*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }
private void LoadLangText() { //Discarded unreachable code: IL_029a, IL_0328, IL_032a, IL_033a, IL_035c checked { int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; Text = SelfService.GetWord(base.AccessibleDescription); num = 4; IEnumerator enumerator = base.Controls.GetEnumerator(); while (enumerator.MoveNext()) { Control control = (Control)enumerator.Current; num = 5; if (control.AccessibleDescription != null) { num = 6; if (control.AccessibleDescription.Length > 0) { num = 7; control.Text = SelfService.GetWord(control.AccessibleDescription); } } num = 8; if (control.AccessibleName != null) { num = 9; if (control.AccessibleName.Length > 0) { num = 10; tt.SetToolTip(control, SelfService.GetWord(control.AccessibleName)); } } num = 11; } num = 12; if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } num = 13; IEnumerator enumerator2 = tlv.Columns.GetEnumerator(); while (enumerator2.MoveNext()) { ColumnHeader columnHeader = (ColumnHeader)enumerator2.Current; num = 14; columnHeader.Text = SelfService.GetWord(columnHeader.Tag.ToString()); num = 15; } num = 16; if (enumerator2 is IDisposable) { (enumerator2 as IDisposable).Dispose(); } num = 17; lAdd.AutoSize = true; num = 18; int width = lAdd.Width + 32; num = 19; lAdd.AutoSize = false; num = 20; lAdd.Size = new Size(width, 27); num = 21; lEdit.AutoSize = true; num = 22; width = lEdit.Width + 32; num = 23; lEdit.AutoSize = false; num = 24; lEdit.Size = new Size(width, 27); num = 25; lDel.AutoSize = true; num = 26; width = lDel.Width + 32; num = 27; lDel.AutoSize = false; num = 28; lDel.Size = new Size(width, 27); num = 29; lDel.Left = tlv.Left + tlv.Width - lDel.Width; num = 30; lEdit.Left = lDel.Left - 9 - lEdit.Width; num = 31; lAdd.Left = lEdit.Left - 9 - lAdd.Width; } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_035a: Could not find block for branch target IL_032a*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } } }
private void bOK_Click(object sender, EventArgs e) { if (Operators.CompareString(lProgress.Text, SelfService.GetWord("done"), TextCompare: false) == 0) { Close(); return; } if (_doing) { return; } string prompt = string.Empty; FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); if (Operators.CompareString(base.Tag.ToString(), "RB", TextCompare: false) == 0) { prompt = SelfService.GetWord("ask_bin_pic"); } else if (Operators.CompareString(base.Tag.ToString(), "PD", TextCompare: false) == 0) { prompt = SelfService.GetWord("ask_del_pic"); } else if (Operators.CompareString(base.Tag.ToString(), "MOVE", TextCompare: false) == 0) { folderBrowserDialog.Description = SelfService.GetWord("move_dup1"); folderBrowserDialog.ShowDialog(); if (folderBrowserDialog.SelectedPath.Length < 1) { return; } goto IL_00d2; } if (Interaction.MsgBox(prompt, MsgBoxStyle.OkCancel | MsgBoxStyle.AbortRetryIgnore | MsgBoxStyle.Question) != MsgBoxResult.Yes) { return; } goto IL_00d2; IL_00d2: _doing = true; bool flag = false; long num = 0L; checked { for (int i = tlv.Items.Count - 1; i >= 0; i += -1) { ListViewItem listViewItem = tlv.Items[i]; if (Operators.CompareString(base.Tag.ToString(), "MOVE", TextCompare: false) == 0) { if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(listViewItem.Text)) { try { Microsoft.VisualBasic.FileIO.FileSystem.MoveFile(listViewItem.Text, folderBrowserDialog.SelectedPath + "\\" + Path.GetFileName(listViewItem.Text), UIOption.OnlyErrorDialogs); } catch (Exception projectError) { ProjectData.SetProjectError(projectError); ProjectData.ClearProjectError(); } } } else if (Microsoft.VisualBasic.FileIO.FileSystem.FileExists(listViewItem.Text)) { try { num += new FileInfo(listViewItem.Text).Length; if (Operators.CompareString(base.Tag.ToString(), "RB", TextCompare: false) == 0) { Microsoft.VisualBasic.FileIO.FileSystem.DeleteFile(listViewItem.Text, UIOption.OnlyErrorDialogs, RecycleOption.SendToRecycleBin); } else { Microsoft.VisualBasic.FileIO.FileSystem.DeleteFile(listViewItem.Text, UIOption.OnlyErrorDialogs, RecycleOption.DeletePermanently); } } catch (Exception projectError2) { ProjectData.SetProjectError(projectError2); ProjectData.ClearProjectError(); } } if (!Microsoft.VisualBasic.FileIO.FileSystem.FileExists(listViewItem.Text)) { Declarer.finalResult[listViewItem.Tag.ToString()].Remove(listViewItem.Text); pb.Value++; lProgress.Text = pb.Value.ToString() + " / " + pb.Maximum.ToString(); tlv.Items.RemoveAt(i); flag = true; } Application.DoEvents(); } lProgress.Text = SelfService.GetWord("done"); lReport.Visible = true; if (Operators.CompareString(base.Tag.ToString(), "MOVE", TextCompare: false) == 0) { lReport.Text = ">>>> " + SelfService.GetWord("report") + " <<<<\r\n\r\n" + SelfService.GetWord("moved") + Strings.Format(pb.Value, "#,0").ToString() + " " + SelfService.GetWord("files") + "\r\n\r\n" + SelfService.GetWord("possible_reasons1") + "\r\n" + SelfService.GetWord("del_reasons1"); } else { lReport.Text = ">>>> " + SelfService.GetWord("report") + " <<<<\r\n\r\n" + SelfService.GetWord("del_rb") + Strings.Format(pb.Value, "#,0").ToString() + " " + SelfService.GetWord("files") + "\r\n" + SelfService.GetWord("released") + SelfService.IntelligentSize(num) + "\r\n\r\n" + SelfService.GetWord("possible_reasons") + "\r\n" + SelfService.GetWord("del_reasons"); } if (flag) { My.MyProject.Forms.Result.FilterResult(); } _doing = false; } }
private bool checkExts(string exts, bool edit = false) { //Discarded unreachable code: IL_027f, IL_0311, IL_0313, IL_0323, IL_0345 int num2 = default(int); bool result = false; int num4 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; if (exts.Length < 2) { goto IL_025f; } num = 5; if (exts.Contains("\\") || exts.Contains("/") || exts.Contains(":") || exts.Contains("*") || exts.Contains("?") || exts.Contains("\"") || exts.Contains("|") || exts.Contains("<") || exts.Contains(">")) { goto IL_025f; } num = 7; if (Operators.CompareString(exts.Substring(0, 1), ".", TextCompare: false) != 0) { goto IL_025f; } num = 9; List <string> list = new List <string>(); num = 10; string[] array = exts.Substring(1).Split('.'); num = 11; string[] array2 = array; int num3 = 0; string text; while (true) { if (num3 >= array2.Length) { num = 30; result = true; break; } text = array2[num3]; num = 12; if (text.Trim().Length >= 1) { num = 14; if (!list.Contains(text)) { num = 17; IEnumerator enumerator; for (enumerator = tlv.Items.GetEnumerator(); enumerator.MoveNext(); num = 26) { ListViewItem listViewItem = (ListViewItem)enumerator.Current; num = 18; if (!(listViewItem.Text.ToLower() + ".").Contains("." + text + ".")) { continue; } num = 19; if (edit) { num = 20; if (listViewItem.Selected) { continue; } goto IL_01c6; } goto IL_01ed; } num = 27; if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } num = 28; list.Add(text); num = 29; num3 = checked (num3 + 1); continue; } goto IL_0134; } goto IL_025f; } goto end_IL_0000; IL_025f: num = 31; Interaction.MsgBox(SelfService.GetWord("wrong_pic_ext"), MsgBoxStyle.Information); goto IL_0275; IL_01ed: num = 24; Interaction.MsgBox(SelfService.GetWord("ext_exist") + "\r\n" + text, MsgBoxStyle.Information); goto IL_0275; IL_0134: num = 15; Interaction.MsgBox(SelfService.GetWord("repeat_ext") + "\r\n" + text, MsgBoxStyle.Information); goto IL_0275; IL_0275: num = 32; result = false; goto end_IL_0000; IL_01c6: num = 21; Interaction.MsgBox(SelfService.GetWord("ext_exist") + "\r\n" + text, MsgBoxStyle.Information); goto IL_0275; end_IL_0000 :; } catch (Exception obj) when((obj is Exception && num2 != 0) & (num4 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_0343: Could not find block for branch target IL_0313*/; } if (num4 != 0) { ProjectData.ClearProjectError(); } return(result); }
private void Buttons_Click(object sender, EventArgs e) { //Discarded unreachable code: IL_0498, IL_0576, IL_0578, IL_0588, IL_05aa int num2 = default(int); int num3 = default(int); try { int num = 1; if (!LikeOperator.LikeString(Declarer.startPath, "*Debug", CompareMethod.Binary)) { ProjectData.ClearProjectError(); num2 = 1; } num = 3; string name = ((Control)sender).Name; if (Operators.CompareString(name, "lAdd", TextCompare: false) != 0) { if (Operators.CompareString(name, "lEdit", TextCompare: false) != 0) { if (Operators.CompareString(name, "lDel", TextCompare: false) == 0) { num = 40; if (tlv.SelectedItems.Count > 0) { num = 41; if (Interaction.MsgBox(SelfService.GetWord("del_ext") + "\r\n" + tlv.SelectedItems[0].Text, MsgBoxStyle.OkCancel | MsgBoxStyle.AbortRetryIgnore | MsgBoxStyle.Question) == MsgBoxResult.Yes) { num = 46; My.MySettingsProperty.Settings.types = My.MySettingsProperty.Settings.types.Replace("|U:" + tlv.SelectedItems[0].SubItems[1].Text + ":" + tlv.SelectedItems[0].Text.Substring(1), ""); num = 47; SelfService.UpdateExts(); num = 48; My.MySettingsProperty.Settings.Save(); num = 49; tlv.Items.Remove(tlv.SelectedItems[0]); num = 50; tlv.Items[0].Selected = true; } } else { num = 44; Interaction.MsgBox(SelfService.GetWord("sel_ext_d"), MsgBoxStyle.Information); } } } else { num = 23; if (tlv.SelectedItems.Count < 1) { num = 24; Interaction.MsgBox(SelfService.GetWord("ext_edit"), MsgBoxStyle.Information); } else { while (true) { num = 26; string text = Interaction.InputBox(SelfService.GetWord("edit_ext"), "", tlv.SelectedItems[0].Text).Trim().ToLower(); num = 27; if (text.Length < 1) { break; } num = 29; if (checkExts(text, edit: true)) { string text2; do { num = 31; text2 = Interaction.InputBox(SelfService.GetWord("desc_type") + "\r\n" + text, "", tlv.SelectedItems[0].SubItems[1].Text).Trim(); num = 32; }while (text2.Length < 1); num = 34; My.MySettingsProperty.Settings.types = My.MySettingsProperty.Settings.types.Replace("|U:" + tlv.SelectedItems[0].SubItems[1].Text + ":" + tlv.SelectedItems[0].Text.Substring(1), "|U:" + text2 + ":" + text.Substring(1)); num = 35; SelfService.UpdateExts(); num = 36; My.MySettingsProperty.Settings.Save(); num = 37; tlv.SelectedItems[0].Text = text; num = 38; tlv.SelectedItems[0].SubItems[1].Text = text2; break; } } } } } else { num = 5; string text3 = string.Empty; while (true) { num = 6; text3 = Interaction.InputBox(SelfService.GetWord("input_ext"), "", text3).Trim().ToLower(); num = 7; if (text3.Length < 1) { break; } num = 9; if (checkExts(text3)) { string text4; do { num = 11; text4 = Interaction.InputBox(SelfService.GetWord("desc_type") + "\r\n" + text3).Trim(); num = 12; }while (text4.Length < 1); num = 14; ListViewItem listViewItem = tlv.Items.Add(text3); num = 15; listViewItem.SubItems.Add(text4); num = 16; listViewItem.SubItems.Add(SelfService.GetWord("no")); num = 17; listViewItem.Selected = true; num = 18; tlv.TopItem = listViewItem; num = 19; My.MySettings settings; (settings = My.MySettingsProperty.Settings).types = settings.types + "|U:" + text4 + ":" + text3.Substring(1); num = 20; SelfService.UpdateExts(); num = 21; My.MySettingsProperty.Settings.Save(); break; } } } } catch (Exception obj) when((obj is Exception && num2 != 0) & (num3 == 0)) { ProjectData.SetProjectError((Exception)obj); /*Error near IL_05a8: Could not find block for branch target IL_0578*/; } if (num3 != 0) { ProjectData.ClearProjectError(); } }