예제 #1
0
 public ProcessInfo PassMeDataofThisPid(int processid)
 {
     if (_processList.ContainsKey(processid))
         return _processList[processid];
     else
     {
         //Adding new Key to Db
         var requestedData = new ProcessInfo(processid);
         _processList.Add(processid, requestedData);
         return requestedData;
     }
 }
예제 #2
0
 public void AddKey(ProcessInfo processName, int processid)
 {
     _processList.Add(processid, processName);
 }
예제 #3
0
 public void AddKey(ProcessInfo processName, int processid)
 {
     _processList.Add(processid, processName);
 }