private static void ConfigNotify(INotify notify) { notify.AddContextMenuItem("Show Log", e => { if (e.IsChecked) { ConsoleExt.ShowConsole(); } else { ConsoleExt.HideConsole(); } }, null, true, IsDebug); notify.AddContextMenuItem("Auto Start", e => AutoStartManager.IsAutoStart = e.IsChecked, null, true, AutoStartManager.IsAutoStart); notify.ShowMessage("Metatool started!"); }
private void ConfigNotify(Scaffold scaffolder) { _notify.AddContextMenuItem("Show Log", e => { if (e.IsChecked) { ConsoleExt.ShowConsole(); } else { ConsoleExt.HideConsole(); } }, null, true, _hostEnv.IsDevelopment()); _notify.AddContextMenuItem("Auto Start", e => AutoStartManager.IsAutoStart = e.IsChecked, null, true, AutoStartManager.IsAutoStart); _notify.AddContextMenuItem("Register", e => { scaffolder.Register(); }); _notify.ShowMessage("Metatool started!"); }