public TempList(Form2 fm2) { InitializeComponent(); this.fm2 = fm2; db = new DBController(fm2); db.InitializeDB(); }
private void Form2_Load(object sender, EventArgs e) { pictureBox1.Image = Image.FromFile("C:/Users/fince/Documents/Visual Studio 2017/Projects/GZSProjesiC#/GZSProjesi/images/klima.png"); pictureBox2.Image = Image.FromFile("C:/Users/fince/Documents/Visual Studio 2017/Projects/GZSProjesiC#/GZSProjesi/images/speaker.png"); pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage; pictureBox3.SizeMode = PictureBoxSizeMode.StretchImage; pictureBox4.SizeMode = PictureBoxSizeMode.StretchImage; pictureBox5.SizeMode = PictureBoxSizeMode.StretchImage; sc = new ServerController(this); cs1 = new BluetoothServer(this, sc); cs1.ConnectAsServer(); db = new DBController(this); db.InitializeDB(); bcc = new BluetoothClientController(this); ac = new arduinoController(this); ac.scan(); if (db.hasDonanim("Klima")) { hasHardwareName = true; comboBox1.Text = db.getComNameHardware("Klima"); } else { hasHardwareName = false; MessageBox.Show("Veri tabanında 'Klima' donanımına ilişkin adres atanması yapılmamıştır.\n" + "Lütfen bağlanmayı denemeden önce geçerli adresi atayınız.", "HATA", MessageBoxButtons.OK, MessageBoxIcon.Error); button4.Enabled = false; } }
public UserList(Form2 fm2, String name) { InitializeComponent(); this.fm2 = fm2; db = new DBController(fm2); db.InitializeDB(); this.name = name; }
public Form1() { InitializeComponent(); f2 = new Form2(); dbc = new DBController(f2); dbc.InitializeDB(); }
public ServerController(Form2 fm2) { this.fm2 = fm2; dbc = new DBController(fm2); dbc.InitializeDB(); }
public arduinoController(Form2 fm2) { this.fm2 = fm2; dbc = new DBController(fm2); dbc.InitializeDB(); }