public override NSView GetViewForItem(NSTableView tableView, NSTableColumn tableColumn, nint row)
        {
            int r = (int)row;
            if (tableColumn.Identifier == CellIdentifierEnabled)
            {
                NSButton v = null;
                if (v == null)
                {
                    v = new NSButton();
                    v.Title = string.Empty;
                    v.SetButtonType(NSButtonType.Switch);
                    if (_dataSource.Items[r].Checked)
                    {
                        v.State = NSCellStateValue.On;
                    }
                    else
                    {
                        v.State = NSCellStateValue.Off;
                    }
                    v.Activated += (object sender, EventArgs e) =>
                    {
                        var b = v.State == NSCellStateValue.On;
                        _dataSource.Items[r].Checked = b;
                        _controller.SaveRuleState(r, b);
                    };
                }
                return v;
            }


            // This pattern allows you reuse existing views when they are no-longer in use.
            // If the returned view is null, you instance up a new view
            // If a non-null view is returned, you modify it enough to reflect the new data
            NSTextField view = (NSTextField)tableView.MakeView(CellIdentifier, this);
            if (view == null)
            {
                view = new NSTextField();
                view.Identifier = CellIdentifier;
                view.BackgroundColor = NSColor.Clear;
                view.Bordered = false;
                view.Selectable = false;
                view.Editable = false;
            }

            // Setup view based on the column selected
            switch (tableColumn.Identifier)
            {
                case CellIdentifierEnabled:
                    view.StringValue = _dataSource.Items[r].Checked.ToString();
                    break;
                case CellIdentifierFixWhat:
                    view.StringValue = _dataSource.Items[r].Name;
                    break;
                case CellIdentifierExample:
                    view.StringValue = _dataSource.Items[r].Example;
                    break;
            }

            return view;
        }
		public int NumberOfRowsInTableView (NSTableView table)
		{
			var groups = (Groups != null) ? Groups.Count : 0;
			var users = (Users != null) ? Users.Count : 0;
			var solutionUsers = (SolutionUsers != null) ? SolutionUsers.Count : 0;
			return groups + users + solutionUsers;
		}
		public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
		{
			var value = (NSString)string.Empty;
			ActionHelper.Execute (delegate() {
				if (Entries != null) {
					var obj = (this.Entries [row]) as UserDto;

					switch (col.Identifier) {
					case "Name":
						value = (NSString)obj.Name;
						break;
					case "FirstName":
						value = (NSString)obj.PersonDetails.FirstName;
						break;
					case "LastName": 
						value = (NSString)obj.PersonDetails.LastName;
						break;
					case "Email": 
						value = (NSString)obj.PersonDetails.EmailAddress;
						break;
					case "Description":
						value = (NSString)obj.PersonDetails.Description;
						break;
					default:
						break;
					}
				}
			});
			return value;
		}
 public int NumberOfRowsInTableView (NSTableView table)
 {
     if (data != null)
         return data.Count;
     else
         return 0;
 }
		public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
		{
			var value = (NSString)string.Empty;
			ActionHelper.Execute (delegate() {
				if (Entries != null) {
					var obj = (this.Entries [row]) as AssertionConsumerServiceDto;

					switch (col.Identifier) {
					case "Name":
						value = (NSString)obj.Name;
						break;
					case "Index":
						value = (NSString)obj.Index.ToString ();
						break;
					case "Binding":
						value = (NSString)obj.Binding;
						break;
					case "Endpoint":
						value = (NSString)obj.Endpoint;
						break;
					case "IsDefault":
						value = (NSString)obj.IsDefault.ToString ();
						break;
					default:
						break;
					}
				}
			});
			return value;
		}
        public override NSView GetViewForItem (NSTableView tableView, NSTableColumn tableColumn, nint row)
        {
            int r = (int)row;

            // This pattern allows you reuse existing views when they are no-longer in use.
            // If the returned view is null, you instance up a new view
            // If a non-null view is returned, you modify it enough to reflect the new data
            NSTextField view = (NSTextField)tableView.MakeView (CellIdentifier, this);
            if (view == null) {
                view = new NSTextField ();
                view.Identifier = CellIdentifier;
                view.BackgroundColor = NSColor.Clear;
                view.Bordered = false;
                view.Selectable = false;
                view.Editable = false;
            }
                
            // Setup view based on the column selected
            switch (tableColumn.Identifier) {
                case CellIdentifierFirst:
                    view.StringValue = DataSource.Items[r];
                    break;
            }

            return view;
        }  
        public override NSView GetViewForItem (NSTableView tableView, NSTableColumn tableColumn, nint row)
        {
            int r = (int)row;
            if (tableColumn.Identifier == CellIdentifierApply)
            {
                //var v = (NSButton)tableView.MakeView (CellIdentifier, this);
                NSButton v = null;
                if (v == null)
                {
                    v = new NSButton();
                    v.Title = string.Empty;
                    v.SetButtonType(NSButtonType.Switch);
                    if (_dataSource.Items[r].Apply)
                    {
                        v.State = NSCellStateValue.On;
                    }
                    else
                    {
                        v.State = NSCellStateValue.Off;
                    }
                    v.Activated += (object sender, EventArgs e) =>
                    {
                        _dataSource.Items[r].Apply = v.State == NSCellStateValue.On;
                    };
                }
                return v;
            }


            // This pattern allows you reuse existing views when they are no-longer in use.
            // If the returned view is null, you instance up a new view
            // If a non-null view is returned, you modify it enough to reflect the new data
            NSTextField view = (NSTextField)tableView.MakeView (CellIdentifier, this);
            if (view == null) {
                view = new NSTextField ();
                view.Identifier = CellIdentifier;
                view.BackgroundColor = NSColor.Clear;
                view.Bordered = false;
                view.Selectable = false;
                view.Editable = false;
            }

            // Setup view based on the column selected
            switch (tableColumn.Identifier) {
                case CellIdentifierApply:
                    view.StringValue = _dataSource.Items[r].Apply.ToString();
                    break;
                case CellIdentifierLineNumber:
                    view.StringValue = _dataSource.Items[r].LineNumber;
                    break;
                case CellIdentifierBefore:
                    view.StringValue = _dataSource.Items[r].Before.ToListViewString();
                    break;
                case CellIdentifierAfter:
                    view.StringValue = _dataSource.Items[r].After.ToListViewString();
                    break;
            }

            return view;
        }  
		public override void AwakeFromNib ()
		{
			base.AwakeFromNib ();
			this.BtnClose.Activated += (object sender, EventArgs e) => {
				this.Close ();
				NSApplication.SharedApplication.StopModalWithCode (0);
			};
			TableView = new NSTableView ();
			TableView.Delegate = new TableDelegate ();
			TableView.Frame = new CoreGraphics.CGRect (20, 20, 450, 450);
			this.MainTableView.AddSubview (TableView);
			IList<ComputerDto> computers = new List<ComputerDto> ();
			ActionHelper.Execute (delegate() {
				var auth = SnapInContext.Instance.AuthTokenManager.GetAuthToken (ServerDto.ServerName);
				computers = SnapInContext.Instance.ServiceGateway.Server.GetComputers (ServerDto, auth.Token);
			});
			var listView = new ComputersDataSource { Entries = computers };
			var columnNames = new List<ColumnOptions> {
				new ColumnOptions{ Id = "Name", DisplayName = "Computer Name", DisplayOrder = 1, Width = 300 },
				new ColumnOptions{ Id = "DomainController", DisplayName = "Domain Controller", DisplayOrder = 2, Width = 130 }
			};
			var columns = ListViewHelper.ToNSTableColumns (columnNames);
			foreach (var column in columns) {
				TableView.AddColumn (column);
			}
			TableView.DataSource = listView;
			TableView.ReloadData ();
		}
 private void InitializeTable(NSTableView table)
 {
     var columns = table.TableColumns();
     columns[0].SetIdentifier(PreviewTableDelegate.CellIdentifiers[0]);
     columns[0].MinWidth = 50;
     columns[0].MaxWidth = 200;
     columns[0].Width = 60;
     var bc = new NSButtonCell();
     bc.SetButtonType(NSButtonType.OnOff);
  //   columns[0].DataCell = bc;
     columns[0].Title = Configuration.Settings.Language.General.Apply;
     columns[1].SetIdentifier(PreviewTableDelegate.CellIdentifiers[1]);
     columns[1].MinWidth = 50;
     columns[1].MaxWidth = 200;
     columns[1].Width = 60;
     columns[1].Title = Configuration.Settings.Language.General.LineNumber;
     table.AddColumn(new NSTableColumn(PreviewTableDelegate.CellIdentifiers[2]) 
         {
             MinWidth = 100,
             MaxWidth = 2000,
             Width = 250,
             Title = Configuration.Settings.Language.General.Before,
         });
     table.AddColumn(new NSTableColumn(PreviewTableDelegate.CellIdentifiers[3]) 
         {
             MinWidth = 100,
             MaxWidth = 2000,
             Width = 250,
             Title = Configuration.Settings.Language.General.After,
         });                             
 }
 public int NumberOfRowsInTableView (NSTableView table)
 {
     if (Entries != null)
         return this.Entries.Count;
     else
         return 0;
 }
示例#11
0
        public NSObject GetObjectValue(NSTableView tableView, NSTableColumn tableColumn, nint row)
        {
            if (IsViewReady) {
                Employee emp = DataStore.Employees[(int)row];
                switch (tableColumn.Identifier)
                {
                    case "FirstName":
                        return new NSString(emp.FirstName);

                    case "LastName":
                        return new NSString(emp.LastName);

                    case "DepartmentName":
                        NSPopUpButtonCell button = tableColumn.DataCellForRow(row) as NSPopUpButtonCell;
                        button.RemoveAllItems();
                        foreach(Department dep in DataStore.Departments) {
                            button.Menu.AddItem(dep.Name, new ObjCRuntime.Selector("departmentSelected:"), "");
                        }
                        return button;

                    default:
                        return new NSString("");
                }
            }
            else return new NSString("");
        }
 public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
 {
     try {
         if (Entries != null) {
             X509Certificate2 cert = Entries [row].Cert;
             switch (col.Identifier) {
             case "Alias":
                 return (NSString)Entries [row].Alias;
             case VMIdentityConstants.CERT_ISSUED_BY:
                 return (NSString)cert.Issuer;
             case VMIdentityConstants.CERT_ISSUED_DATE:
                 return (NSString)cert.NotBefore.ToShortDateString ();
             case VMIdentityConstants.CERT_EXPIRATION_DATE:
                 return (NSString)cert.NotAfter.ToShortDateString ();
             case VMIdentityConstants.CERT_INTENDED_PURPOSES:
                 return (NSString)cert.GetKeyUsage ();
             case VMIdentityConstants.CERT_STATUS:
                 break;
             case VMIdentityConstants.CERT_ISSUED_TO:
                 return (NSString)cert.Subject;
             }
         }
     } catch (Exception e) {
         System.Diagnostics.Debug.WriteLine ("Error in fetching data : " + e.Message);
     }
     return null;
 }
示例#13
0
 private void InitializeTable(NSTableView table)
 {
     var columns = table.TableColumns();
     columns[0].SetIdentifier(StringListTableDelegate.CellIdentifiers[0]);
     columns[0].MinWidth = 50;
     columns[0].MaxWidth = 20000;
     columns[0].Width = 2060;
 }
 public override NSDragOperation ValidateDrop(NSTableView tableView, NSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation)
 {
     if (_openSubtitleAction != null)
     {
         return NSDragOperation.Copy;
     }
     return NSDragOperation.None;
 }
示例#15
0
		public static NSTableView ToNSTableView(List<ColumnOptions> options, NSTableViewDataSource nodeListView)
		{
			var view = new NSTableView ();
			var columns = ToNSTableColumns (options);
			foreach (var column in columns)
				view.AddColumn (column);
			view.DataSource = nodeListView;
			return view;
		}
示例#16
0
 public CocoaResultViewHelper(NSTableView resultView)
 {
     _resultView = resultView;
     _resultView.SetDelegate(d => {
         d.TableViewSelectionDidChange += HandleResultViewTableViewSelectionDidChange;
     });
     _results = new CocoaResultsDataSource();
     _resultView.DataSource = _results;
 }
 public override bool AcceptDrop(NSTableView tableView, NSDraggingInfo info, nint row, NSTableViewDropOperation dropOperation)
 {
     NSPasteboard pboard = info.DraggingPasteboard;
     NSArray files = (NSArray)pboard.GetPropertyListForType(NSPasteboard.NSFilenamesType);
     if (files.Count == 1)
     {
         return true;
     }
     return false;
 }
 public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
 {
     try {
         if (entries != null)
             return (NSString)this.entries [row];
     } catch (Exception e) {
         System.Diagnostics.Debug.WriteLine ("Error in List Operation " + e.Message);
     }
     return null;
 }
示例#19
0
 public Id TableViewObjectValueForTableColumnRow(NSTableView aTableView, NSTableColumn aTableColumn, int rowIndex)
 {
     switch (aTableView.TableColumns.IndexOf(aTableColumn))
     {
     case 0:
         return new NSString(_items[rowIndex].ToString(), _items[rowIndex].ToString().Length);
     default:
         return new NSString();
     }
 }
		public override void SortDescriptorsChanged (NSTableView tableView, NSSortDescriptor[] oldDescriptors)
		{
			// Any sort direction given?
			if (oldDescriptors.Length <= 0)
				return;

			// Sort the data
			Sort (oldDescriptors [0].Key, oldDescriptors [0].Ascending);
			tableView.ReloadData ();
		}
 public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
 {
     try {
         if (Entries != null) {
             return (NSString)Entries [row].Alias;
         }
     } catch (Exception e) {
         System.Diagnostics.Debug.WriteLine ("Error in fetching data : " + e.Message);
     }
     return null;
 }
		public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
		{
			var value = (NSString)string.Empty;
			ActionHelper.Execute (delegate() {
				if (Entries != null) {
					var obj = (this.Entries [row]) as ScopeNode;
					value = (NSString)obj.DisplayName;
				}
			});
			return value;
		}
		public override NSView GetViewForItem (NSTableView tableView, NSTableColumn tableColumn, nint row)
		{

			// This pattern allows you reuse existing views when they are no-longer in use.
			// If the returned view is null, you instance up a new view
			// If a non-null view is returned, you modify it enough to reflect the new data
			NSTableCellView view = (NSTableCellView)tableView.MakeView (tableColumn.Title, this);
			if (view == null) {
				view = new NSTableCellView ();
				if (tableColumn.Title == "Product") {
					view.ImageView = new NSImageView (new CGRect (0, 0, 16, 16));
					view.AddSubview (view.ImageView);
					view.TextField = new NSTextField (new CGRect (20, 0, 400, 16));
				} else {
					view.TextField = new NSTextField (new CGRect (0, 0, 400, 16));
				}
				view.TextField.AutoresizingMask = NSViewResizingMask.WidthSizable;
				view.AddSubview (view.TextField);
				view.Identifier = tableColumn.Title;
				view.TextField.BackgroundColor = NSColor.Clear;
				view.TextField.Bordered = false;
				view.TextField.Selectable = false;
				view.TextField.Editable = true;

				view.TextField.EditingEnded += (sender, e) => {

					// Take action based on type
					switch(view.Identifier) {
					case "Product":
						DataSource.Products [(int)view.TextField.Tag].Title = view.TextField.StringValue;
						break;
					case "Details":
						DataSource.Products [(int)view.TextField.Tag].Description = view.TextField.StringValue;
						break; 
					}
				};
			}

			// Tag view
			view.TextField.Tag = row;

			// Setup view based on the column selected
			switch (tableColumn.Title) {
			case "Product":
				view.ImageView.Image = NSImage.ImageNamed ("tag.png");
				view.TextField.StringValue = DataSource.Products [(int)row].Title;
				break;
			case "Details":
				view.TextField.StringValue = DataSource.Products [(int)row].Description;
				break;
			}

			return view;
		}
		public override void AwakeFromNib ()
		{
			base.AwakeFromNib ();
			fetchQuakesButton = (NSButton)View.Subviews [0];
			fetchQuakesButton.Activated += FetchQuakes;

			tableView = (NSTableView)View.Subviews [1].Subviews [0].Subviews [0];
			tableView.Source = new QuakeTableSourse (new List<Quake> ());

			ReloadTableView ();
		}
示例#25
0
        public GetItemController()
            : base(NSObject.AllocAndInitInstance("GetItemController"))
        {
            Unused.Value = NSBundle.loadNibNamed_owner(NSString.Create("get-item"), this);
            Unused.Value = window().setFrameAutosaveName(NSString.Create("get-item window"));

            m_okButton = new IBOutlet<NSButton>(this, "okButton").Value;
            m_table = new IBOutlet<NSTableView>(this, "table").Value;

            m_table.setDoubleAction("doubleClicked:");
        }
		public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
		{
			var returnVal = (NSString)string.Empty;
			ActionHelper.Execute (delegate() {
				if (Entries != null) {
					var obj = (this.Entries [row]) as string;
					returnVal = (NSString)obj;
				}
			});
			return returnVal;
		}
        private void InitializeTable(NSTableView table)
        {
            var columns = table.TableColumns();
            columns[0].SetIdentifier(StringListTableDelegate.CellIdentifiers[0]);
            columns[0].MinWidth = 50;
            columns[0].MaxWidth = 20000;
            columns[0].Width = 2060;
            columns[0].Title = Configuration.Settings.Language.Interjections.Title;

            _interjections = GetInterjections();
            ShowInterjections(_interjections);
        }
示例#28
0
		public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
		{
			var value = (NSString)string.Empty;
			ActionHelper.Execute (delegate() {
				if (Entries != null) {
					var columnId = int.Parse (col.Identifier);
					var obj = (this.Entries [columnId]) as string;
					value = (NSString)obj;
				}
			});
			return value;
		}
示例#29
0
		public override nint GetNextTypeSelectMatch (NSTableView tableView, nint startRow, nint endRow, string searchString)
		{
			nint row = 0;
			foreach(Product product in DataSource.Products) {
				if (product.Title.Contains(searchString)) return row;

				// Increment row counter
				++row;
			}

			// If not found select the first row
			return 0;
		}
 public NSObject ObjectValueForTableColumn (NSTableView table, NSTableColumn col, int row)
 {
     try {
         if (Entries != null) {
             if (col.Identifier.Equals ("Key"))
                 return (NSString)this.Entries [row].Key;
             else
                 return (NSString)this.Entries [row].Value;
         }
     } catch (Exception e) {
         System.Diagnostics.Debug.WriteLine ("Error in List Operation " + e.Message);
     }
     return null;
 }
示例#31
0
 public override bool ShouldSelectRow(NSTableView tableView, nint row)
示例#32
0
        // Shared initialization code
        void Initialize()
        {
            //window = new NSWindow(new RectangleF(0,0, 470, 250), NSWindowStyle.Titled | NSWindowStyle.Closable, NSBackingStore.Buffered, false);
            window           = new NSWindow(new RectF(0, 0, 470, 250), NSWindowStyle.Titled, NSBackingStore.Buffered, false);
            window.HasShadow = true;
            NSView content = window.ContentView;

            window.WindowController = this;
            window.Title            = "Sign In";
            NSTextField signInLabel = new NSTextField(new RectF(17, 190, 109, 17));

            signInLabel.StringValue     = "Sign In:";
            signInLabel.Editable        = false;
            signInLabel.Bordered        = false;
            signInLabel.BackgroundColor = NSColor.Control;

            content.AddSubview(signInLabel);

            // Create our select button
            selectButton       = new NSButton(new RectF(358, 12, 96, 32));
            selectButton.Title = "Select";
            selectButton.SetButtonType(NSButtonType.MomentaryPushIn);
            selectButton.BezelStyle = NSBezelStyle.Rounded;

            selectButton.Activated += delegate {
                profileSelected();
            };

            selectButton.Enabled = false;

            content.AddSubview(selectButton);

            // Setup our table view
            NSScrollView tableContainer = new NSScrollView(new RectF(20, 60, 428, 123));

            tableContainer.BorderType          = NSBorderType.BezelBorder;
            tableContainer.AutohidesScrollers  = true;
            tableContainer.HasVerticalScroller = true;

            tableView = new NSTableView(new RectF(0, 0, 420, 123));
            tableView.UsesAlternatingRowBackgroundColors = true;

            NSTableColumn colGamerTag = new NSTableColumn("Gamer");

            tableView.AddColumn(colGamerTag);

            colGamerTag.Width            = 420;
            colGamerTag.HeaderCell.Title = "Gamer Profile";
            tableContainer.DocumentView  = tableView;

            content.AddSubview(tableContainer);

            // Create our add button
            NSButton addButton = new NSButton(new RectF(20, 27, 25, 25));

            //Console.WriteLine(NSImage.AddTemplate);
            addButton.Image = NSImage.ImageNamed("NSAddTemplate");
            addButton.SetButtonType(NSButtonType.MomentaryPushIn);
            addButton.BezelStyle = NSBezelStyle.SmallSquare;

            addButton.Activated += delegate {
                addLocalPlayer();
            };
            content.AddSubview(addButton);

            // Create our remove button
            NSButton removeButton = new NSButton(new RectF(44, 27, 25, 25));

            removeButton.Image = NSImage.ImageNamed("NSRemoveTemplate");
            removeButton.SetButtonType(NSButtonType.MomentaryPushIn);
            removeButton.BezelStyle = NSBezelStyle.SmallSquare;

            removeButton.Activated += delegate {
                removeLocalPlayer();
            };
            content.AddSubview(removeButton);

            gamerList = MonoGameGamerServicesHelper.DeserializeProfiles();

//			for (int x= 1; x< 25; x++) {
//				gamerList.Add("Player " + x);
//			}
            tableView.DataSource = new GamersDataSource(this);
            tableView.Delegate   = new GamersTableDelegate(this);
        }
示例#33
0
 public override string[] FilesDropped(NSTableView tableView, MonoMac.Foundation.NSUrl dropDestination, MonoMac.Foundation.NSIndexSet indexSet)
 {
     return(new string [0]);
 }
示例#34
0
 public override nint GetRowCount(NSTableView tableView)
 {
     return(DirList.Count);
 }
示例#35
0
 public override bool WriteRows(NSTableView tableView, MonoMac.Foundation.NSIndexSet rowIndexes, NSPasteboard pboard)
 {
     return(false);
 }
示例#36
0
 public override nfloat GetRowHeight(NSTableView tableView, nint row)
 {
     return((nfloat)C.DefaultParameterTextFieldHeight);
 }
示例#37
0
 public override nint GetRowCount(NSTableView tableView)
 {
     return(this.ItemsSource.Count());
 }
示例#38
0
 public override nint GetRowCount(NSTableView tableView)
 {
     return(ResourceCount);
 }
示例#39
0
 public override int GetRowCount(NSTableView tableView)
 {
     return(source.RowCount);
 }
示例#40
0
 public int NumberOfRowsInTableView(NSTableView table)
 {
     return((Entries != null) ? Entries.Count : 0);
 }
示例#41
0
 public override void SetObjectValue(NSTableView tableView, MonoMac.Foundation.NSObject theObject, NSTableColumn tableColumn, int row)
 {
 }
示例#42
0
 public override nint GetRowCount(NSTableView tableView)
 {
     return(Handler.collection.Collection == null ? 0 : Handler.collection.Collection.Count());
 }
 public override nint GetRowCount(NSTableView tableView)
 {
     return(Keywords.Count);
 }
示例#44
0
 UI.Reactive.INSTableViewController <Item> Mac.IReactive.CreateTableViewController <Item> (NSTableView tableView)
 {
     return(new UI.Reactive.NSTableViewController <Item> (tableView, model.TelemetryCollector));
 }
示例#45
0
 public override NSObject GetObjectValue(NSTableView tableView, NSTableColumn tableColumn, int row)
 {
     return(new NSString(controller.gamerList[row].Gamertag));
 }
示例#46
0
 public CustomTableViewSource(NSTableView tableView) : base(tableView)
 {
 }
示例#47
0
 public override int GetRowCount(NSTableView tableView)
 {
     return(controller.gamerList.Count);
 }
示例#48
0
 public override MonoMac.Foundation.NSObject GetObjectValue(NSTableView tableView, NSTableColumn tableColumn, int row)
 {
     return(NSObject.FromObject(row));
 }
示例#49
0
 public override bool AcceptDrop(NSTableView tableView, NSDraggingInfo info, int row, NSTableViewDropOperation dropOperation)
 {
     return(false);
 }
示例#50
0
 public override nint GetRowCount(NSTableView tableView)
 {
     return(stv.tableRows.Count);
 }
示例#51
0
 public MvxTableViewSource(NSTableView tableView) : base()
 {
     this._tableView = tableView;
 }
示例#52
0
 // An example of responding to user input
 public override bool ShouldSelectRow(NSTableView tableView, nint row)
 {
     Console.WriteLine("ShouldSelectRow: {0}", row);
     return(true);
 }
 public override bool ShouldSelectRow(NSTableView tableView, nint row)
 {
     Nome = DataSource.Agendas [Convert.ToInt32(row)].Nome;
     return(true);
 }
示例#54
0
 public override void SortDescriptorsChanged(NSTableView tableView, MonoMac.Foundation.NSSortDescriptor[] oldDescriptors)
 {
 }
示例#55
0
 protected override nfloat GetItemRowHeight(NSTableView tableView, nint row)
 {
     return(50);
 }
示例#56
0
 public override nint GetRowCount(NSTableView tableView)
 {
     return(Files.Count);
 }
示例#57
0
 public override nint GetRowCount(NSTableView tableView)
 {
     return(ViewArquivos.Count);
 }
示例#58
0
 public override nint GetRowCount(NSTableView tableView)
 {
     return(10);
 }
示例#59
0
 public override NSDragOperation ValidateDrop(NSTableView tableView, NSDraggingInfo info, int row, NSTableViewDropOperation dropOperation)
 {
     return(NSDragOperation.None);
 }
示例#60
0
 public override bool ShouldSelectRow(NSTableView tableView, nint row)
 {
     return(false);
 }