示例#1
0
 //Constructs the gui
 public GUI()
 {
     myCanvas = new GUIElements(this);
     InitializeComponent();
     //Add custom events here, ie
     viewFinder.MouseDown += new MouseEventHandler(viewFinder_MouseDown);
 }
示例#2
0
 //Constructs the gui
 public GUI()
 {
     myCanvas = new GUIElements(this);
     InitializeComponent();
     this.DoubleBuffered = true;
     //Add custom events here, ie
     viewFinder.MouseDown += new MouseEventHandler(viewFinder_MouseDown);
     viewFinder.MouseMove += new MouseEventHandler(viewFinder_MouseMove);
 }
示例#3
0
        //Constructs the gui
        public GUI()
        {
            myCanvas = new GUIElements(this);
            InitializeComponent();
            //Add custom events here, ie
            //viewFinder.MouseDown += new MouseEventHandler(viewFinder_MouseDown);

            IPAddress[] localIP = Dns.GetHostAddresses(Dns.GetHostName());

            foreach (IPAddress address in localIP)
            {
                if (address.AddressFamily == AddressFamily.InterNetwork)
                {
                    ServerIPtextBox.Text = address.ToString();
                }
            }
        }