private void comboBoxPlotAreaType_SelectedIndexChanged(object sender, EventArgs e) { String newViewType = comboBoxPlotAreaType.SelectedItem.ToString(); PlotType pt = PlotType.Display; if (newViewType != "Display") { if (newViewType == "Limits") { pt = PlotType.Limits; } else if (newViewType == "View") { pt = PlotType.View; } else if (newViewType == "Window") { pt = PlotType.Window; } else if (newViewType == "Extents") { pt = PlotType.Extents; } else if (newViewType == "Layout") { pt = PlotType.Layout; } } m_plotSettingVal.SetPlotType(m_plotStg, pt); FillPlotAreaCombo(false); if (pt == PlotType.Layout) { // This is differences between dialog and validator. Validator doesn't // change UseStandardScale to false. Example is kExtents, kFit2Paper -> kLayout ->kExtents // Dialog has kFit2Paper disabled, but validator don't clear kFit2Paper flag. // Validator also don't change PlotOrigin to 0,0, if plotsenteres was true, but it change scale to 1:1 if fittopaper was true if (checkBoxCenterPlot.Enabled) { m_plotSettingVal.SetPlotOrigin(m_plotStg, new Point2d(0, 0)); } if (checkBoxPlotScaleFitToPaper.Enabled) { m_plotSettingVal.SetUseStandardScale(m_plotStg, false); } } FillPaperOrientation(); FillScaleValues(false); FillPlotOffset(); }