void DnsServersAdd()
        {
            WindowPreferencesIpController.Ip = "";
            WindowPreferencesIpController dlg = new WindowPreferencesIpController();

            dlg.Window.ReleasedWhenClosed = true;
            NSApplication.SharedApplication.RunModalForWindow(dlg.Window);
            dlg.Window.Close();

            if (dlg.Accepted)
            {
                TableDnsServersController.Add(WindowPreferencesIpController.Ip);
                TableDnsServersController.RefreshUI();
            }

            this.EnableIde();
        }
        void DnsServersEdit()
        {
            nint i = TableDnsServers.SelectedRow;

            if (i != -1)
            {
                string dns = TableDnsServersController.Get((int)i);

                WindowPreferencesIpController.Ip = dns;
                WindowPreferencesIpController dlg = new WindowPreferencesIpController();
                dlg.Window.ReleasedWhenClosed = true;
                NSApplication.SharedApplication.RunModalForWindow(dlg.Window);
                dlg.Window.Close();

                if (dlg.Accepted)
                {
                    TableDnsServersController.Set((int)i, WindowPreferencesIpController.Ip);
                    TableDnsServersController.RefreshUI();
                }

                this.EnableIde();
            }
        }
        void DnsServersEdit()
        {
            int i = TableDnsServers.SelectedRow;
            if (i != -1)
            {
                string dns = TableDnsServersController.Get(i);

                WindowPreferencesIpController.Ip = dns;
                WindowPreferencesIpController dlg = new WindowPreferencesIpController();
                dlg.Window.ReleasedWhenClosed = true;
                NSApplication.SharedApplication.RunModalForWindow(dlg.Window);
                dlg.Window.Close();

                if (dlg.Accepted)
                {
                    TableDnsServersController.Set (i, WindowPreferencesIpController.Ip);
                    TableDnsServersController.RefreshUI();
                }

                this.EnableIde();
            }
        }
        void DnsServersAdd()
        {
            WindowPreferencesIpController.Ip = "";
            WindowPreferencesIpController dlg = new WindowPreferencesIpController();
            dlg.Window.ReleasedWhenClosed = true;
            NSApplication.SharedApplication.RunModalForWindow(dlg.Window);
            dlg.Window.Close();

            if (dlg.Accepted)
            {
                TableDnsServersController.Add(WindowPreferencesIpController.Ip);
                TableDnsServersController.RefreshUI();
            }

            this.EnableIde();
        }