コード例 #1
0
 public static void ExecuteMethod_AddProcessObjectToContainerAndStoreBoth(ProcessContainer ownerProcessContainer, Process process)
 {
     if(ownerProcessContainer.ProcessIDs == null)
         ownerProcessContainer.ProcessIDs = new List<string>();
     ownerProcessContainer.ProcessIDs.Add(process.ID);
     ownerProcessContainer.StoreInformation();
     process.StoreInformation();
 }
コード例 #2
0
 public static ProcessContainer GetTarget_OwnerProcessContainer()
 {
     var processContainer = ProcessContainer.RetrieveFromOwnerContent(InformationContext.CurrentOwner, "default");
     if (processContainer == null)
     {
         processContainer = new ProcessContainer();
         processContainer.SetLocationAsOwnerContent(InformationContext.CurrentOwner, "default");
     }
     return processContainer;
 }
コード例 #3
0
ファイル: TheBallCore.designer.cs プロジェクト: kallex/Caloom
partial         static void CreateCustomDemo(ref ProcessContainer customDemoObject);