protected virtual void OnAdvancedOptionsChecked(BoolChangedEventArgs e) { if (AdvancedOptionsChecked != null) { AdvancedOptionsChecked(this, e); } }
protected virtual void OnRotateCheckboxChanged(BoolChangedEventArgs e) { if (RotateCheckboxChanged != null) { RotateCheckboxChanged(this, e); } }
public void ToolbarIsVisibleChanged(object sender, BoolChangedEventArgs e) { List <ToolbarItem> items = new List <ToolbarItem>(); foreach (Sveit.Controls.HideableToolbarItem toolbarItem in ToolbarItems) { if (toolbarItem.IsVisible == false) { items.Add(toolbarItem); } } foreach (Sveit.Controls.HideableToolbarItem toolbarItem in items) { ToolbarItems.Remove(toolbarItem); } }
/// <summary> /// Handles the RotateCheckboxChanged event of the behaviorSettings1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Backround_Cycler.EventArguments.BoolChangedEventArgs"/> instance containing the event data.</param> private void behaviorSettings1_RotateCheckboxChanged(object sender, BoolChangedEventArgs e) { if (e.Enabled) { this.changebackroundtimer.Enabled = true; this.CalculateTime(); debug1.ChangeTimeLable(true); } else { this.changebackroundtimer.Enabled = false; debug1.ChangeTimeLable(false); } }
/// <summary> /// Handles the AdvancedOptionsChecked event of the behaviorSettings1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Backround_Cycler.EventArguments.BoolChangedEventArgs"/> /// instance containing the event data.</param> private void behaviorSettings1_AdvancedOptionsChecked(object sender, BoolChangedEventArgs e) { DebugOptions(e.Enabled); }