private void switchIsActivated_Click(object sender, EventArgs e) { if (event_id != 0) { eventPresenter.eventActivation(event_id, switchIsActivated, lblSwitchStatus); if (switchIsActivated.SwitchState == XanderUI.XUISwitch.State.On) { lblSwitchStatus.Text = "Activated"; } else { lblSwitchStatus.Text = "Deactivated"; } eventPresenter.loadEvents(dataEvents); } else if (position == "Adviser") { if (switchIsActivated.SwitchState == XanderUI.XUISwitch.State.On) { activation = true; lblSwitchStatus.Text = "Activated"; } else { activation = false; lblSwitchStatus.Text = "Deactivated"; } } }
private void switchIsActivated_Click(object sender, EventArgs e) { if (event_id != 0) { eventPresenter.eventActivation(event_id, switchIsActivated, lblSwitchStatus); } else { if (switchIsActivated.SwitchState == XanderUI.XUISwitch.State.On) { lblSwitchStatus.Text = "Activated"; } else { lblSwitchStatus.Text = "Deactivated"; } } }