public void InitActionTree() { if (!IsValid) return; if (ActionTree.InvokeRequired) ActionTree.BeginInvoke(new guiInvokeCB(InitActionTreeCallback)); else InitActionTreeCallback(); }
/// <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); }
public void InitActionTree() { if (!IsValid) { return; } if (ActionTree.InvokeRequired) { ActionTree.BeginInvoke(new GuiInvokeCB(InitActionTreeCallback)); } else { InitActionTreeCallback(); } }
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); } }