Exemplo n.º 1
0
 //Constructs the gui
 public GUI()
 {
     myCanvas = new GUIElements(this);
     InitializeComponent();
     //Add custom events here, ie
     viewFinder.MouseDown += new MouseEventHandler(viewFinder_MouseDown);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
                }
            }
        }