示例#1
0
        private void FormPhotoOpenMaximal(IEnumerable <Screen> screens)
        {
            var thisScreen = Screen.FromControl(this);

            foreach (var screen in screens)
            {
                if (thisScreen.Bounds.IntersectsWith(screen.Bounds))
                {
                    continue;
                }

                FormPhotoClose();
                _formPhoto = new FormPhoto
                {
                    Top  = screen.Bounds.Top,
                    Left = screen.Bounds.Left
                };

                //FormPhotoHelper.ScaleControls(_formPhoto.Controls,_formPhoto.Size);
                _formPhoto.Show();
                _formPhoto.Maximized();
                break;
            }
        }
示例#2
0
 private void FormPhotoOpenMinimal()
 {
     FormPhotoClose();
     _formPhoto = new FormPhoto();
     _formPhoto.Show();
 }