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