예제 #1
0
        static IPAddress LocalIPInput()
        {
            IPAddress ip = null;

            Gui.LocalInterfaceInput input = new Gui.LocalInterfaceInput();

            if (input.ShowDialog() == DialogResult.OK)
            {
                ip = input.GetSelectedIP();
            }
            input.Dispose();
            return(ip);
        }
예제 #2
0
파일: Program.cs 프로젝트: dferens/P2PChat
        static IPAddress LocalIPInput()
        {
            IPAddress ip = null;
            Gui.LocalInterfaceInput input = new Gui.LocalInterfaceInput();

            if (input.ShowDialog() == DialogResult.OK)
            {
                ip = input.GetSelectedIP();
            }
            input.Dispose();
            return ip;
        }