Esempio n. 1
0
        public void OnDoubleClickedOutlineView(object sender, EventArgs e)
        {
            int      row  = (int)splitViewController.MainOutlineView.SelectedRow;
            NSObject item = splitViewController.MainOutlineView.ItemAtRow(row);

            if (item is VMDNSZoneEntryNode)
            {
                VMDNSZoneEntryNode zoneNode = item as VMDNSZoneEntryNode;
                zoneNode.ShowProperties();
            }
        }
Esempio n. 2
0
        // SplitView Events

        public void OnDoubleClickedTableView(object sender, EventArgs e)
        {
            int row = (int)splitViewController.MainTableView.SelectedRow;
            INSTableViewDataSource ds = splitViewController.MainTableView.DataSource;

            if (ds is ZoneDetailsListView)
            {
                VMDNSZoneEntryNode zoneNode = (ds as ZoneDetailsListView).Entries[row];
                zoneNode.ShowProperties();
            }
            else if (ds is DnsRecordListView)
            {
                VMDNSZoneEntryNode zoneNode = (ds as DnsRecordListView).ZoneNode;
                VmDnsRecord        record   = (ds as DnsRecordListView).Entries[(int)row];
                zoneNode.ShowRecordProperties(sender, e, record);
            }
        }