コード例 #1
0
        partial void mnuMAC_Cick(NSObject sender)
        {
            AddressEntry row = GetSelectedRow();

            if (row != null)
            {
                W.CopyString(row.MAC);
            }
        }
コード例 #2
0
        partial void mnyCopyDNS_Click(NSObject sender)
        {
            AddressEntry row = GetSelectedRow();

            if (row != null)
            {
                W.CopyString(row.DNS);
            }
        }
コード例 #3
0
        partial void CopyMenuAction(NSObject sender)
        {
            AddressEntry row = GetSelectedRow();

            if (row != null)
            {
                W.CopyString(row.Address);
            }
        }
コード例 #4
0
        partial void mnuUDPScan(NSObject sender)
        {
            AddressEntry row = GetSelectedRow();

            if (row != null)
            {
                PortScannerController portScanner = new PortScannerController(row, "udp");
                portScanner.ShowWindow(this);
            }
        }
コード例 #5
0
ファイル: AddressEntry.cs プロジェクト: mcherry/IPList.macOS
        public AddressEntry GetRow(nint index)
        {
            AddressEntry row = new AddressEntry();


            row.Address = DataSource.AddressEntries[(int)index].Address;
            row.Status  = DataSource.AddressEntries[(int)index].Status;
            row.Latency = DataSource.AddressEntries[(int)index].Latency;
            row.TTL     = DataSource.AddressEntries[(int)index].TTL;
            row.DNS     = DataSource.AddressEntries[(int)index].DNS;
            row.MAC     = DataSource.AddressEntries[(int)index].MAC;

            return(row);
        }
コード例 #6
0
        partial void mnuRow_Click(NSObject sender)
        {
            AddressEntry row = GetSelectedRow();

            if (row != null)
            {
                string delim = GetDelimiter();
                W.CopyString(
                    row.Address + delim +
                    row.Status + delim +
                    row.Latency + delim +
                    row.TTL + delim +
                    row.DNS + delim +
                    row.MAC);
            }
        }
コード例 #7
0
 public DataViewerWindowController(AddressEntry host, PortEntry row) : base("DataViewerWindow")
 {
     portData  = row.Data;
     ipAddress = host.Address;
     ipPort    = row.Port;
 }
コード例 #8
0
 public PortScannerController(AddressEntry row, string scanProtocol = "tcp") : base("PortScanner")
 {
     HostInfo = row;
     protocol = scanProtocol;
 }