Example #1
0
        public frmPicker()
        {
            InitializeComponent();

            Bitmap icon = Properties.Resources.icon_camera;

            Icon = Icon.FromHandle(icon.GetHicon());

            colorInfo = new ColorInfo
            {
                Left = Cursor.Position.X,
                Top  = Cursor.Position.Y
            };
            colorInfo.ShowInTaskbar = false;
            colorInfo.Show();
            colorInfo.Visible = true;

            foreach (Screen t in Screen.AllScreens)
            {
                var mask = new frmMask
                {
                    Left   = t.WorkingArea.X,
                    Top    = t.WorkingArea.Y,
                    Width  = t.Bounds.Width,
                    Height = t.Bounds.Height
                };

                mask.ColorSelected += Mask_ColorSelected;
                mask.ShotSelected  += Mask_ShotSelected;
                mask.ShowInTaskbar  = false;
                mask.AddInfo(ref colorInfo);
                mask.Show();
                mask.Visible = false;

                masks.Add(mask);
            }
        }
Example #2
0
 internal void AddInfo(ref ColorInfo colorInfo)
 {
     this.colorInfo = colorInfo;
 }