Exemplo n.º 1
0
 private void InsertImageFromSnapshotMenuItem_Popup(object sender, EventArgs e)
 {
     this.MenuItems.Clear();
     foreach (Win32Window window in WindowSnapshotWrapper.ApplicationWindows)
     {
         if (!window.Minimized)
         {
             WindowSnapshotMenuItem appMenuItem = new WindowSnapshotMenuItem(this.m_Model, window);
             this.MenuItems.Add(appMenuItem);
         }
     }
 }
Exemplo n.º 2
0
        public InsertImageFromSnapshotMenuItem(PresenterModel model)
        {
            this.m_Model = model;
            this.Text = Strings.InsertImageFromSnapshot;

            foreach (Win32Window window in WindowSnapshotWrapper.ApplicationWindows)
            {
                if (!window.Minimized)
                {
                    WindowSnapshotMenuItem appMenuItem = new WindowSnapshotMenuItem(this.m_Model, window);
                    this.MenuItems.Add(appMenuItem);
                }
            }

            this.Popup += new EventHandler(InsertImageFromSnapshotMenuItem_Popup);
        }