private void OnIconClickHandler() { if (_groupWindow == null) { _groupWindow = new GroupWindow <ILightArrayConfig>(LightConfig); _groupWindow.AllLightConfigReloaded += (sender, e) => { LightConfig.Destroy(); // not perfect.. LoadConfig(); _groupWindow.SetVisible(false); _groupWindow = null; AllLightConfigReloaded(this, e); }; _groupWindow.AllLightConfigSaved += (sender, e) => SaveConfig(); _groupWindow.SetVisible(true); } else { _groupWindow.ToggleVisible(); } if ((LightConfig != null && !LightConfig.UseBlizzy78Toolbar) || !ToolbarManager.ToolbarAvailable) { // Don't lock highlight on the button since it's just a toggle _appButtonStock.SetFalse(false); } }
private void OnIconClickHandler() { if (_groupWindow == null) { _groupWindow = new GroupWindow <ILightArrayConfig>(LightConfig); _groupWindow.SetVisible(true); } else { _groupWindow.ToggleVisible(); } }
private void OnIconClickHandler() { if (_groupWindow == null) { _groupWindow = new GroupWindow <ILightArrayConfig>(LightConfig); _groupWindow.AllLightConfigSaved += (sender, e) => SaveConfig(e); _groupWindow.SetVisible(true); } else { _groupWindow.ToggleVisible(); } toolbarControl.SetFalse(false); }