コード例 #1
0
ファイル: history.cs プロジェクト: Anomalous-Software/monomac
		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);							
		}
コード例 #2
0
ファイル: history.cs プロジェクト: dotdevelop/macdoc
        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);
        }