/// <summary> /// Setup /// </summary> /// <param name="view"></param> /// <param name="colorBy"></param> public void Setup( ShapeAxisMsx shapeAxis, //ContextMenuStrip shapeMenu, VisualMsx visual, SpotfireViewProps spotfireViewProps, EventHandler editValueChangedEventHandler = null) { InSetup = true; SVP = spotfireViewProps; Visual = visual; ShapeAxis = shapeAxis; //ShapeTypeMenu = shapeMenu; // (needed?) SetupFixedShapeButton(); ShapeColumnSelector.Setup(ShapeAxis, Visual, SVP, EditValueChanged); SetupShapeSchemeGrid(); if (Lex.IsDefined(ShapeAxis.Expression)) { ShapeByColumn.Checked = true; } else { ShapeByFixedShape.Checked = true; } InSetup = false; return; }
/// <summary> /// Setup /// </summary> /// <param name="view"></param> /// <param name="colorBy"></param> public void Setup( ViewManager view, ShapeDimension shapeBy, ContextMenuStrip shapeMenu) { InSetup = true; View = view; ShapeBy = shapeBy; ShapeTypeMenu = shapeMenu; SetupFixedShapeButton(); ShapeColumnSelector.Setup(View.BaseQuery, shapeBy.QueryColumn); // setup fieldSelector SetupShapeSchemeGrid(); if (ShapeColumnSelector.QueryColumn != null) { ShapeByColumn.Checked = true; } else { ShapeByFixedShape.Checked = true; } InSetup = false; return; }
private void ShapeByFixedShape_EditValueChanged(object sender, EventArgs e) { // option box value changed if (InSetup || !ShapeByFixedShape.Checked) { return; } InSetup = true; ShapeBy.QueryColumn = null; ShapeColumnSelector.Setup(ShapeAxis, Visual, SVP, EditValueChanged); InitializeShapeRules(); SetupShapeSchemeGrid(); InSetup = false; FireEditValueChanged(); }