public LoftForms() : base("LoftForms", "LoftForms", "Add LoftForm from Reference Points", "Extra", "Hummingbird") { this.loftMode = LoftMode.Points; this.Menu_PointsClicked(null, null); this.Message = "Ref Points"; this.Hidden = false; }
public override bool Read(GH_IReader reader) { int num = 2; reader.TryGetInt32("LoftMode", ref num); this.loftMode = (LoftMode)num; return(base.Read(reader)); }
private void Menu_LoftClicked(object sender, EventArgs e) { if (this.loftMode != LoftMode.Loft) { this.RecordUndoEvent("Loft"); this.loftMode = LoftMode.Loft; this.ExpireSolution(true); } }
private void Menu_PointsClicked(object sender, EventArgs e) { if (this.loftMode != LoftMode.Points) { this.RecordUndoEvent("Ref Points"); this.loftMode = LoftMode.Points; this.ExpireSolution(true); } }