(bool createdNew, bool active)
| 66 | } |
| 67 | |
| 68 | private static int HandleInstall(bool createdNew, bool active) |
| 69 | { |
| 70 | if (!createdNew || Module.IsLoaded) |
| 71 | { |
| 72 | var action = active ? "installing" : "uninstalling"; |
| 73 | MessageBox.Show($"Please close the running League Client and Loader menu before {action} it.", |
| 74 | Name, MessageBoxButton.OK, MessageBoxImage.Information); |
| 75 | return -1; |
| 76 | } |
| 77 | |
| 78 | Module.SetActive(active); |
| 79 | return 0; |
| 80 | } |
| 81 | |
| 82 | //static Program() |
| 83 | //{ |