コード例 #1
0
ファイル: TempList.cs プロジェクト: fknince/AdilKullanimSoft
 public TempList(Form2 fm2)
 {
     InitializeComponent();
     this.fm2 = fm2;
     db       = new DBController(fm2);
     db.InitializeDB();
 }
コード例 #2
0
ファイル: Form2.cs プロジェクト: fknince/AdilKullanimSoft
        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;
            }
        }
コード例 #3
0
 public UserList(Form2 fm2, String name)
 {
     InitializeComponent();
     this.fm2 = fm2;
     db       = new DBController(fm2);
     db.InitializeDB();
     this.name = name;
 }
コード例 #4
0
 public Form1()
 {
     InitializeComponent();
     f2 = new Form2();
     dbc = new DBController(f2);
     dbc.InitializeDB();
    
     
 }
コード例 #5
0
 public ServerController(Form2 fm2)
 {
     this.fm2 = fm2;
     dbc      = new DBController(fm2);
     dbc.InitializeDB();
 }
コード例 #6
0
 public arduinoController(Form2 fm2)
 {
     this.fm2 = fm2;
     dbc = new DBController(fm2);
     dbc.InitializeDB();
 }