private void cmDeleteFile_Click(object sender, EventArgs e) { if (dgvData.SelectedRows.Count < 1) { SimpleMessage.ShowInfo("Please select file."); return; } try { if (SimpleMessage.Confirm("Are you sure to delete selected file(s)?") == DialogResult.Yes) { string path = SimplePath.GetFullPath(treeView1.SelectedNode.FullPath); for (int i = 0; i < dgvData.SelectedRows.Count; i++) { string file = PathUtils.GetFileName(dgvData.SelectedRows[i], path); File.Delete(file); } TreeViewHandler.RefreshNode(treeView1.SelectedNode); } } catch (Exception ex) { SimpleMessage.ShowException(ex); } }
private void cmDeobf_Click(object sender, EventArgs e) { if (dgvData.SelectedRows.Count < 1) { SimpleMessage.ShowInfo("Please select assembly."); return; } try { if (_frmDeobf == null) { _frmDeobf = new frmDeobf(this, PathUtils.GetFullFileNames(dgvData.SelectedRows, treeView1.SelectedNode.FullPath), treeView1.SelectedNode.FullPath); } else { _frmDeobf.InitForm(this, PathUtils.GetFullFileNames(dgvData.SelectedRows, treeView1.SelectedNode.FullPath), treeView1.SelectedNode.FullPath); } _frmDeobf.ShowDialog(); TreeViewHandler.RefreshNode(treeView1.SelectedNode); } catch (Exception ex) { SimpleMessage.ShowException(ex); } }
private void cmFolderDasm_Click(object sender, EventArgs e) { try { frmDasm frm = new frmDasm(this, PathUtils.GetFullFileNames(dgvData.Rows, treeView1.SelectedNode.FullPath), treeView1.SelectedNode.FullPath); frm.ShowDialog(); TreeViewHandler.RefreshNode(treeView1.SelectedNode, true); } catch (Exception ex) { SimpleMessage.ShowException(ex); } }
private void frmMain_KeyUp(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.F5: TreeViewHandler.RefreshNode(treeView1.SelectedNode, true); e.Handled = true; break; case Keys.Escape: TreeViewHandler.EscPressed = true; e.Handled = true; break; } }
//TreeNode _lastSelectedNode = null; private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { //if (_lastSelectedNode != null) //{ // this.RemoveAssemblyResolveDir(_lastSelectedNode.FullPath); //} TreeViewHandler.RefreshNode(e.Node); //_lastSelectedNode = e.Node; //if (_lastSelectedNode != null) //{ // this.AddAssemblyResolveDir(_lastSelectedNode.FullPath); //} }
private void cmFolderAsm_Click(object sender, EventArgs e) { try { string path = treeView1.SelectedNode.FullPath; DirectoryInfo di = new DirectoryInfo(path); FileInfo[] files = di.GetFiles("*.il", SearchOption.AllDirectories); frmAsm frm = new frmAsm(this, PathUtils.GetFullFileNames(files, path), path); frm.ShowDialog(); TreeViewHandler.RefreshNode(treeView1.SelectedNode); } catch (Exception ex) { SimpleMessage.ShowException(ex); } }
private void cmStrongName_Click(object sender, EventArgs e) { if (dgvData.SelectedRows.Count < 1) { SimpleMessage.ShowInfo("Please select assembly."); return; } try { frmStrongName frm = new frmStrongName(this, PathUtils.GetFullFileNames(dgvData.SelectedRows, treeView1.SelectedNode.FullPath), treeView1.SelectedNode.FullPath); frm.ShowDialog(); TreeViewHandler.RefreshNode(treeView1.SelectedNode); } catch (Exception ex) { SimpleMessage.ShowException(ex); } }
private void cmRefresh_Click(object sender, EventArgs e) { TreeViewHandler.RefreshNode(treeView1.SelectedNode, true); }