Beispiel #1
0
 public void UpdateData(string reason, ParseSEYR parseSEYR)
 {
     if (parseSEYR.Plottables.Count == 0)
     {
         return;
     }
     FlipX               = parseSEYR.FlipXAxis;
     FlipY               = parseSEYR.FlipYAxis;
     PassPointSize       = parseSEYR.PassPointSize;
     FailPointSize       = parseSEYR.FailPointSize;
     RegionTextRotation  = parseSEYR.RegionTextRotation;
     RegionTextOffsetX   = parseSEYR.RegionTextOffsetX;
     RegionTextOffsetY   = parseSEYR.RegionTextOffsetY;
     RegionTextSize      = parseSEYR.RegionTextSize;
     PercentageTextSize  = parseSEYR.PercentageTextSize;
     DataReduction       = parseSEYR.DataReduction;
     RegionBorderPadding = parseSEYR.RegionBorderPadding;
     RegionBorderOpcaity = parseSEYR.RegionBorderOpacity;
     RegionLabelOpacity  = parseSEYR.RegionLabelOpacity;
     PercentLabelOpacity = parseSEYR.PercentLabelOpacity;
     PercentLocation     = parseSEYR.PercentLocation;
     Regions             = parseSEYR.Regions;
     Plottables          = parseSEYR.Plottables;
     PlotOrder           = parseSEYR.PlotOrder;
     CustomFeatures      = parseSEYR.CustomFeatures;
     UpdatePlot(reason);
 }
Beispiel #2
0
        private void CreateForm(int idx, string path)
        {
            Form form = new Form();

            switch (idx)
            {
            case 0:
                using (new Utility.HourGlass())
                {
                    if (!VerifyPath(path, idx))
                    {
                        return;
                    }
                    form = new Apps.InlinePositions.MetroGraphs(path)
                    {
                        Text = new FileInfo(path).Name
                    };
                }
                break;

            case 1:
                using (new Utility.HourGlass())
                {
                    if (!VerifyPath(path, idx))
                    {
                        return;
                    }
                    form = new Apps.XYZplotter.Plotter(path);
                }
                break;

            case 2:
                using (new Utility.HourGlass())
                {
                    if (!VerifyPath(path, idx))
                    {
                        return;
                    }
                    form = new Apps.SEYR.ParseSEYR(path);
                }
                break;

            case 3:
                form = new Apps.Camera.CameraViewer();
                break;

            case 4:
                form = new AdvancedTools.SelectTool();
                break;

            default:
                return;
            }
            form.Activated += Form_Activated;
            form.Show();
            Settings.PropertyGrid.SelectedObject = form;
        }