private void cmdCreateOneAPTwoSta_Click(object sender, EventArgs e) { ClearObjects(); LeftPannelSmall(); AP _ap = new AP(); _ap.setOperateChannel((short)rand.Next(1, 14)); _ap.SetVertex(300, 200, 0); _objects.Add(_ap); STA _sta = new STA(_objects); _sta.setOperateChannel(0); // (rand.Next(1, 14)); // TODO delete this line _sta.SetVertex(320, 210, 0); _objects.Add(_sta); _sta.Scan(); STA _sta2 = new STA(_objects); _sta2.setOperateChannel(0); // (rand.Next(1, 14)); // TODO delete this line _sta2.SetVertex(280, 170, 0); _objects.Add(_sta2); _sta2.Scan(); Medium.setMediumObj(_objects); SetMedioRatio(); Medium.Enable(); DrowOnBoard(); }
//==================================================================================================== private void CreateAP() { AP _ap = new AP(); _ap.setOperateChannel((short)rand.Next(1, 14)); _ap.SetVertex((int)MouseX, (int)MouseY, 0); _objects.Add(_ap); Medium.setMediumObj(_objects); }
//==================================================================================================== private void CreateAP() { AP _ap = new AP(_MEDIUM); _ap.setOperateChannel(rand.Next(1, 14)); _ap.SetVertex(MouseX, MouseY, rand.NextDouble() * 500); _objects.Add(_ap); _MEDIUM.addObjToMedium(_objects); if (!_MEDIUM.IsEnabled()) { _MEDIUM.Enable(); } }
private void cmdAdd1APforSTA_Click(object sender, EventArgs e) { ClearObjects(); LeftPannelSmall(); AP _ap = new AP(); _ap.setOperateChannel((short)rand.Next(1, 14)); _ap.SetVertex(300, 200, 0); _objects.Add(_ap); STA _sta = new STA(_objects); _sta.setOperateChannel(0); _sta.SetVertex(320, 210, 0); _objects.Add(_sta); _sta.Scan(); STA _sta2 = new STA(_objects); _sta2.setOperateChannel(0); _sta2.SetVertex(280, 170, 0); _objects.Add(_sta2); _sta2.Scan(); STA _sta3 = new STA(_objects); _sta3.setOperateChannel(0); _sta3.SetVertex(280, 210, 0); _objects.Add(_sta3); _sta3.Scan(); STA _sta4 = new STA(_objects); _sta4.setOperateChannel(0); _sta4.SetVertex(320, 170, 0); _objects.Add(_sta4); _sta4.Scan(); Medium.setMediumObj(_objects); SetMedioRatio(); Medium.Enable(); DrowOnBoard(); }
//==================================================================================================== private void CreateRandomSimulation() { ClearObjects(); for (int i = 0; i < APs_SIZE; i++) { AP _ap = new AP(_MEDIUM); _ap.setOperateChannel(rand.Next(1, 14)); _ap.SetVertex(RandomC(_BOARDX), RandomC(_BOARDY), rand.NextDouble() * 500); _objects.Add(_ap); } for (int i = 0; i < STA_SIZE; i++) { STA _sta = new STA(_MEDIUM, _objects); _sta.setOperateChannel(0);// (rand.Next(1, 14)); // TODO delete this line _sta.SetVertex(RandomC(_BOARDX), RandomC(_BOARDY), rand.NextDouble() * 500); _objects.Add(_sta); _sta.Scan(); } _MEDIUM.setMediumObj(_objects); _MEDIUM.Enable(); }
//==================================================================================================== private void CreateRandomSimulation() { ClearObjects(); for (int i = 0; i < APs_SIZE; i++) { AP _ap = new AP(); _ap.setOperateChannel((short)rand.Next(1, 14)); _ap.SetVertex((int)RandomC(_BOARDX), (int)RandomC(_BOARDY), 0); _objects.Add(_ap); } for (int i = 0; i < STA_SIZE; i++) { STA _sta = new STA(_objects); _sta.setOperateChannel(0); // (rand.Next(1, 14)); // TODO delete this line _sta.SetVertex((int)RandomC(_BOARDX), (int)RandomC(_BOARDY), 0); _objects.Add(_sta); _sta.Scan(); } Medium.setMediumObj(_objects); SetMedioRatio(); Medium.Enable(); }
//==================================================================================================== private void CreateRandomSimulation() { ClearObjects(); for (int i = 0; i < APs_SIZE; i++) { AP _ap = new AP(); _ap.setOperateChannel((short)rand.Next(1, 14)); _ap.SetVertex((int)RandomC(_BOARDX), (int)RandomC(_BOARDY), 0); _objects.Add(_ap); } for (int i = 0; i < STA_SIZE; i++) { STA _sta = new STA( _objects); _sta.setOperateChannel(0); // (rand.Next(1, 14)); // TODO delete this line _sta.SetVertex((int)RandomC(_BOARDX), (int)RandomC(_BOARDY), 0); _objects.Add(_sta); _sta.Scan(); } Medium.setMediumObj(_objects); SetMedioRatio(); Medium.Enable(); }