Exemplo n.º 1
0
 public FormHistoria(Okno parentWindow)
 {
     InitializeComponent();
     this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     this.dataGridView1.ReadOnly      = true;
     this.dataGridView1.MultiSelect   = false;
     this.parentW = parentWindow;
 }
Exemplo n.º 2
0
        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;
        }