private void arayuz_Load(object sender, EventArgs e) { ac.scan(); pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage; pictureBox5.SizeMode = PictureBoxSizeMode.StretchImage; pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; bs = new BluetoothServer(this); bs.ConnectAsServer(); }
private void Login_Load(object sender, EventArgs e) { ac.scan(); timer1.Tick += new EventHandler(timer_Tick); timer1.Interval = (1000) * 1; //timer1.Enabled = true; w = pictureBox3.Width; h = pictureBox3.Height; timer2.Tick += new EventHandler(timer2_Tick); timer2.Interval = (1000) * 1; w1 = pictureBox4.Width; h1 = pictureBox4.Height; bs.ConnectAsServer(); }