//Autogenerated code. End of implementation [Command_AssignNet] //Autogenerated code. Begin of implementation [GetState_ToggleLoopRemoval] public void GetState_ToggleLoopRemoval(IServerDocumentView argContext, ref string argParameters, ref bool argEnabled, ref bool argChecked, ref bool argVisible, ref string argCaption, ref string argImageFile) { IPCB_SystemOptions PCBSystemOptions; PCBSystemOptions = PCB.GlobalVars.PCBServer.GetState_SystemOptions(); if (PCBSystemOptions == null) { return; } argChecked = PCBSystemOptions.GetState_LoopRemoval(); }
public void ToggleLoopRemoval() { try { IPCB_SystemOptions PCBSystemOptions; bool PLPSetting; PCBSystemOptions = PCBServer.GetState_SystemOptions(); if (PCBSystemOptions == null) { return; } PLPSetting = PCBSystemOptions.GetState_LoopRemoval(); PLPSetting = !PLPSetting; PCBSystemOptions.SetState_LoopRemoval(PLPSetting); } catch (Exception ex) { ErrorMail.LogError("Error in " + System.Reflection.MethodBase.GetCurrentMethod().Name + ".", ex); } }