Accp7 0 C 專案 小型資源管理器

2021-08-01 06:59:56 字數 1868 閱讀 4513

using system.io;    //先引用命名空間
//窗體 我是用了 treeview listview  contextmenustrip  3個控制項哦
//為了 在後面**能 完美實現 我們先建立 乙個myfile 類  

public class myfile

//檔名

public long filelength //檔案長度 以kb結尾

public string filepath //檔案路徑

public string filetype //檔案型別

}

private void form1_load(object sender, eventargs e)		//窗體載入事件

public void lodadrives()

private void treeview1_afterselect_1(object sender, treevieweventargs e)

//treeview 的afterselect 事件  意思就是 在更改選定內容後發生的事件

treenode node = this.treeview1.selectednode;

this.bindinfo(node);

}public void bindinfo(treenode node)

//繫結本目錄的檔案

fileinfo fileinfo = dir.getfiles();

listfiles = new list();

foreach ( fileinfo myfile in fileinfo)

//繫結 listview

showfiles(files);

}public void showfiles(listfiles)

}//listview列寬自適應

private void listview1_sizechanged(object sender, eventargs e)

}private void 複製toolstripmenuitem_click(object sender, eventargs e)

//提示 --使用者選擇目標檔案**-******

folderbrowserdialog fbd = new folderbrowserdialog();

dialogresult result = fbd.showdialog();

//原始檔路徑

string sourcepath = listview1.selecteditems[0].subitems[3].text;

//目標檔案路徑

string despath = null;

if (result ==dialogresult.ok)

}//刪除 檔案

private void 刪除toolstripmenuitem_click(object sender, eventargs e)

//要 刪除的檔案

string sourecpath = listview1.selecteditems[0].subitems[3].text;

dialogresult result = messagebox.show("確定要刪除嗎?",messageboxbuttons.okcancel,messageboxicon.warning);

if (result ==dialogresult.ok)

//重新整理一下

this.listview1.selecteditems[0].remove();

}

專案人力資源管理

1 the importance of good human resource management on projects,and its processes.1 人力資源規劃 識別記錄專案角色,責任和匯報關係。2 組建專案團隊 分配好專案所需要的人員,讓其為專案工作。3 開發專案團隊 培訓個人和...

專案人力資源管理之編制專案人力資源管理計畫

通過編制專案人力資源管理計畫,確定專案的角色 職責以及匯報關係,並編制人員配備管理計畫。任務 職責和回報關係可以分配到個人或團隊。這些個人和團隊可能屬於組織內,也可能屬於組織外部,或者兩者的結合。內部團隊通常與專職部門如工程部 市場部 或會計 部等有聯絡。在大多數專案中,編制專案人力資源管理計畫過程...

專案管理 人力資源管理

目錄 人力資源管理流程 1 規劃人力資源管理 2 組建專案團隊 3 建設專案團隊 4 管理專案團隊 常見問題 成功團隊的特徵 五種常用衝突解決方法 編寫乙個人力資源管理的計畫,其中需要包含本專案中的角色,每個角色需要多少人,他們的匯報關係是什麼?另外,需要注意其還包含人員配備管理計畫。根據計畫的要求...