internal static void Run(string message = "") { var f = new Tray(); f.notifyIconTray.Visible = true; f.notifyIconTray.BalloonTipTitle = "FSync"; f.notifyIconTray.BalloonTipText = message; if (!message.Trim().Equals("")) { f.notifyIconTray.ShowBalloonTip(1000); } f.ShowDialog(); }
private static bool ParseUtils(string[] args) { if (args.Contains("tray")) { ConsoleUtils.ShowConsoleWindow(false); string message = args.Count() > 1 ? args[1] : ""; Tray.Run(message); ConsoleUtils.ShowConsoleWindow(true); return(true); } if (args.Contains("clear") | args.Contains("cls") | args.Contains("clr")) { Console.Clear(); return(true); } return(false); }