コード例 #1
0
        public float MeasureHeight(UITableView tableView, AllocEmpRowData rowData)
        {
            UpdateCell(rowData);
            Layout.Measure(tableView.Bounds.Width - 20 - 18, float.MaxValue);

            return(Layout.GetMeasuredSize().Height);
        }
コード例 #2
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            AllocEmpRowData selectedItem = Data[indexPath.Row];

            tableView.DeselectRow(indexPath, true);

            if (OnRowSelected != null)
            {
                OnRowSelected(this, new RowSelectedEventArgs(tableView, indexPath));
            }
        }
コード例 #3
0
 public void UpdateCell(AllocEmpRowData rowData)
 {
     EmployeePersonnelNumber.Text = rowData.EmployeeNumber.ToString();
     ProjectNumber.Text           = rowData.Projectno.ToString();
 }