void OnRelayOn(object sender, EventArgs e) { var button = sender as Button; _viewModel.TurnOnRelay(Int32.Parse(button.ClassId)); }