/// <summary> /// Handler of showing the main window if clicked # Build / Events Solution /// </summary> private void _menuMainCallback(object sender, EventArgs e) { try { if (UI.Util.focusForm(configFrm)) { return; } configFrm = new UI.WForms.EventsFrm(Event.Bootloader); configFrm.Show(); } catch (Exception ex) { Log.Error("Failed UI: `{0}`", ex.Message); } }
private void onAction(object sender, EventArgs e) { try { if (UI.Util.focusForm(configFrm)) { return; } configFrm = new UI.WForms.EventsFrm(Bootloader._); configFrm.Show(); } catch (Exception ex) { Log.Error($"Failed UI: {ex.Message}"); Log.Debug(ex.StackTrace); } }