public FormHistoria(Okno parentWindow) { InitializeComponent(); this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dataGridView1.ReadOnly = true; this.dataGridView1.MultiSelect = false; this.parentW = parentWindow; }
public OknoBT(Okno o) { okno = o; InitializeComponent(); getGuid(); myMacAdress = GetMyMac(); if (myMacAdress == null) { MessageBox.Show("Prosze sprawdzic czy bluetooth jest wlaczony."); this.Close(); } endPoint = new BluetoothEndPoint(myMacAdress, BluetoothService.SerialPort); client = new BluetoothClient(endPoint); component = new BluetoothComponent(client); isWorking = false; this.buttonWlacz.Visible = false; this.richTextBox1.Visible = false; }