Ejemplo n.º 1
0
		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);							
		}
Ejemplo n.º 2
0
        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);
        }