示例#1
0
		public void ShowNote(StickyForm window)
		{
			if (window.InvokeRequired)
			{
				window.Invoke(window.ShowWindow);
			}
			else
			{
				window.ShowWindow();
			}
		}
示例#2
0
 public void ShowNote(StickyForm window)
 {
     if (window.InvokeRequired)
     {
         window.Invoke(window.ShowWindow);
     }
     else
     {
         window.ShowWindow();
     }
 }
示例#3
0
        public StickyForm RegistNewWindow()
        {
            StickyForm window = new StickyForm();
            MenuItem   mi     = new MenuItem();

            mi.Click += delegate(object sender, EventArgs e)
            {
                if (window.InvokeRequired)
                {
                    window.Invoke(window.ShowWindow);
                }
                else
                {
                    window.ShowWindow();
                }
            };
            IconMenuItem.MenuItems.Add(mi);
            window.BelongModule     = this;
            window.NotifierMenuItem = mi;
            Windows.Add(window);
            IconMenuItem.Text = IconMenuItemText + " - " + Windows.Count;
            return(window);
        }
示例#4
0
文件: StickyNote.cs 项目: mind0n/hive
		public StickyForm RegistNewWindow()
		{
			StickyForm window = new StickyForm();
			MenuItem mi = new MenuItem();
			mi.Click += delegate(object sender, EventArgs e)
			{
				if (window.InvokeRequired)
				{
					window.Invoke(window.ShowWindow);
				}
				else
				{
					window.ShowWindow();
				}
			};
			IconMenuItem.MenuItems.Add(mi);
			window.BelongModule = this;
			window.NotifierMenuItem = mi;
			Windows.Add(window);
			IconMenuItem.Text = IconMenuItemText + " - " + Windows.Count;
			return window;
		}