예제 #1
0
 //窗体加载事件
 private void WhiteList_Load(object sender, EventArgs e)
 {
     //清空listBox
     listBox.Items.Clear();
     //反序列化xml,获取内容
     processList = XmlControl.GetWhite(GlobalConstants.WHITE_LIST_PATH);
     //获取白名单进程列表,增加到listBox中
     foreach (MyProcess p in processList.processes)
     {
         listBox.Items.Add(p.processName);
     }
 }
예제 #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     whiteProcessList = XmlControl.GetWhite(GlobalConstants.WHITE_LIST_PATH);
     GetAllProcess();
 }