void Window1_Loaded(object sender, RoutedEventArgs e) { LauncherCommands commands = new LauncherCommands(this); this.notifyIcon = new NotifyIcon(); this.notifyIcon.BalloonTipText = "Welcome to StickySpaces!"; this.notifyIcon.Text = "StickySpaces"; this.notifyIcon.Icon = new Icon(iconStream); this.notifyIcon.Visible = true; this.notifyIcon.ShowBalloonTip(250); this.notifyIcon.ContextMenu = commands.GetContextMenu(); this.notifyIcon.Click += new EventHandler(notifyIcon_Click); this.DeSerialzeState(this, null); this.Hide(); }