void ISendable.InitSendable(ISendableBuilder builder) { builder.SmartDashboardType = "Command"; builder.AddStringProperty(".name", () => Name, null); builder.AddBooleanProperty("running", () => ((ICommand)this).IsScheduled, value => { ICommand c = this; if (value) { if (!c.IsScheduled) { c.Schedule(); } } else { if (c.IsScheduled) { c.Cancel(); } } }); }