private void toggleSaveVideo_ToggleStateChanged(object sender, Syncfusion.Windows.Forms.Tools.ToggleStateChangedEventArgs e) { if (e.ToggleState == Syncfusion.Windows.Forms.Tools.ToggleButtonState.Active) { panelSaveVideo.Visible = true; } else { panelSaveVideo.Visible = false; cmbVIdeoFormat.SelectedItem = null; txtPathFolder.Clear(); } }
private void toggleWebSocket_ToggleStateChanged(object sender, Syncfusion.Windows.Forms.Tools.ToggleStateChangedEventArgs e) { if (e.ToggleState == ToggleButtonState.Active) { lblSocket.Visible = true; txtSocket.Visible = true; } if (e.ToggleState == ToggleButtonState.Inactive) { lblSocket.Visible = false; txtSocket.Visible = false; txtSocket.Clear(); } }
void toggleButton1_ToggleStateChanged(object sender, Syncfusion.Windows.Forms.Tools.ToggleStateChangedEventArgs e) { if (e.ToggleState == Syncfusion.Windows.Forms.Tools.ToggleButtonState.Active) { this.toggleButton1.Slider.Image = global::ToggleButtonDemo2010.Properties.Resources.big_tick; this.comboBoxAdv2.SelectedIndex = 0; this.textBoxExt1.Text = "OFF"; } else { this.toggleButton1.Slider.Image = global::ToggleButtonDemo2010.Properties.Resources.Wrong; this.textBoxExt1.Text = "ON"; this.comboBoxAdv2.SelectedIndex = 1; } }