Example #1
0
 public void InitActionTree()
 {
     if (!IsValid)
         return;
     if (ActionTree.InvokeRequired)
         ActionTree.BeginInvoke(new guiInvokeCB(InitActionTreeCallback));
     else
         InitActionTreeCallback();
 }
Example #2
0
 /// <summary>
 /// Refreshes all actions of specified type in ActionTree or all if type is null
 /// </summary>
 /// <param name="type"></param>
 public void RefreshActionTree(IPBComposite pbComp, Type type)
 {
     // Don't update ActionTree while PB is running to improve performance.
     if (PB.IsRunning || !IsValid)
         return;
     if (ActionTree.InvokeRequired)
         ActionTree.BeginInvoke(new refreshActionTreeDelegate(RefreshActionTreeCallback), pbComp, type);
     else
         RefreshActionTreeCallback(pbComp, type);
 }
Example #3
0
 public void InitActionTree()
 {
     if (!IsValid)
     {
         return;
     }
     if (ActionTree.InvokeRequired)
     {
         ActionTree.BeginInvoke(new GuiInvokeCB(InitActionTreeCallback));
     }
     else
     {
         InitActionTreeCallback();
     }
 }
Example #4
0
 public void RefreshActionTree(IPBComponent pbComp, Type type)
 {
     // Don't update ActionTree while PB is running to improve performance.
     if (ProfessionbuddyBot.Instance.IsRunning || !IsValid)
     {
         return;
     }
     if (ActionTree.InvokeRequired)
     {
         ActionTree.BeginInvoke(new RefreshActionTreeDelegate(RefreshActionTreeCallback), pbComp, type);
     }
     else
     {
         RefreshActionTreeCallback(pbComp, type);
     }
 }