Example #1
0
        void ShowRaleiView(bool IsLeft, WriteableBitmap b)
        {
            if (b == null)
            {
                return;
            }
            RayleiResolution v = new RayleiResolution();

            ActionShow.CenterShow(Desktop, v);
            v.IsLeft = IsLeft;
            v.Test(b);
        }
Example #2
0
        private void buttonShutterSpeed_Click(object sender, RoutedEventArgs e)
        {
            ShutterSpeed w = new ShutterSpeed();

            ActionShow.CenterShow(CameraTestDesktop.getDesktopPanel(), w);
            Canvas Desk = CameraTestDesktop.getDesktopPanel();

            if (Desk.Children.Contains(this))
            {
                Desk.Children.Remove(this);
            }
        }
Example #3
0
        private void buttonITEGray_Click(object sender, RoutedEventArgs e)
        {
            ITEGrayscaleChartTest w = new ITEGrayscaleChartTest();

            ActionShow.CenterShow(CameraTestDesktop.getDesktopPanel(), w);
            Canvas Desk = CameraTestDesktop.getDesktopPanel();

            if (Desk.Children.Contains(this))
            {
                Desk.Children.Remove(this);
            }
        }
Example #4
0
        private void buttonAuto_Click(object sender, RoutedEventArgs e)
        {
            Canvas.SetLeft(Target.getLayers(), 0);
            Canvas.SetTop(Target.getLayers(), 0);
            double dx, dy;

            dx = Target.getFramework().Width / Target.getLayers().Width;
            dy = Target.getFramework().Height / Target.getLayers().Height;


            ActionShow.XZoomCanvasIn(Target.getLayers(), dx);
            ActionShow.YZoomCanvasIn(Target.getLayers(), dy);
        }
Example #5
0
        private void buttonAberrationChart_Click(object sender, RoutedEventArgs e)
        {
            if (!CameraTestDesktop.CanAccess(Version.Standard))
            {
                return;
            }
            AberrationChartTest w = new AberrationChartTest();

            ActionShow.CenterShow(CameraTestDesktop.getDesktopPanel(), w);
            Canvas Desk = CameraTestDesktop.getDesktopPanel();

            if (Desk.Children.Contains(this))
            {
                Desk.Children.Remove(this);
            }
        }
Example #6
0
        private void buttondEV_Click(object sender, RoutedEventArgs e)
        {
            JBEVTest w = new JBEVTest();

            if (lChartPhoto.getPhoto() != null)
            {
                w.lPhotoList1.AddPhoto(lChartPhoto.getPhoto());
            }
            //w.lChartPhoto1.setPhoto(this.lChartPhoto.getPhoto());
            ActionShow.CenterShow(CameraTestDesktop.getDesktopPanel(), w);
            ci.ToIcon();
            //Canvas Desk = CameraTestDesktop.getDesktopPanel();
            //if (Desk.Children.Contains(this))
            //{
            //    Desk.Children.Remove(this);
            //}
        }
Example #7
0
 public void ResetSize()
 {
     //ImageHeight = _DefaultHeight;
     //ImageWidth = _DefaultWidth;
     Canvas.SetLeft(PhotoBorder, 0);
     Canvas.SetTop(PhotoBorder, 0);
     Canvas.SetLeft(canvasEdit, 0);
     Canvas.SetTop(canvasEdit, 0);
     ActionShow.ResetZoom(PhotoBorder);
     //PhotoBorder.Width = Width;
     //PhotoBorder.Height = Height;
     //double zoomX = canvasEdit.Width / Width;
     //double zoomY = canvasEdit.Height / Height;
     //if (zoomX == 0) { zoomX = 1; }
     //if (zoomY == 0) { zoomY = 1; }
     //ActionShow.XZoomCanvasIn(canvasEdit, 1 / zoomX);
     //ActionShow.YZoomCanvasIn(canvasEdit, 1 / zoomY);
 }
 public void Zoom(double d)
 {
     ActionShow.ZoomIn(PhotoBorder, d);
     //PhotoBorder.Width = canvasEdit.Width+(2*BorderWidth);
     //PhotoBorder.Height = canvasEdit.Height + (2 * BorderWidth);
 }
Example #9
0
 void ShowException()//当程序不可使用的时候锁死程序
 {
     Desk.Children.Clear();
     StackBar.Children.Clear();
     ActionShow.CenterShow(Desk, new SystemSupport());
 }
Example #10
0
        private void canvasAbout_MouseRightButtonDown(object sender, PointerRoutedEventArgs e)
        {
            About a = new About();

            ActionShow.CenterShow(Desk, a);
        }
Example #11
0
 private void buttonZoom_Click(object sender, RoutedEventArgs e)
 {
     ActionShow.ZoomCanvasIn(Target.getLayers(), 1 - textBoxZoom.DoubleValue);
 }