示例#1
0
 public TrayNotify(MainWindow instanse)
 {
     _instanse = instanse;
       _tray = new NotifyIcon();
       _tray.Icon = Properties.Resources.Circle_Grey;
       _tray.Visible = true;
       _tray.ContextMenu = new ContextMenu();
       _tray.ContextMenu.MenuItems.Add(new MenuItem("Exit", new EventHandler(this.ExitItem_onClick)));
       _tray.MouseClick += new MouseEventHandler(this.Tray_MouseClick);
 }
示例#2
0
 public ChatWindow(MainWindow parentWindow)
 {
     InitializeComponent();
       _parentWindow = parentWindow;
 }