public History (NSSegmentedCell navigation) { this.navigation = navigation; active = true; navigation.Activated += delegate(object sender, EventArgs e) { var control = sender as NSSegmentedControl; if (control.SelectedSegment == 0) BackClicked (); else ForwardClicked (); }; navigation.SetEnabled (false, 0); navigation.SetEnabled (false, 1); }
public History(NSSegmentedCell navigation) { this.navigation = navigation; active = true; navigation.Activated += delegate(object sender, EventArgs e) { var control = sender as NSSegmentedControl; if (control.SelectedSegment == 0) { BackClicked(); } else { ForwardClicked(); } }; navigation.SetEnabled(false, 0); navigation.SetEnabled(false, 1); }