private void button2_ClickToConnect(object sender, EventArgs e) { if (readyToConnect) { SimulatorConnectorModel simConnector = new SimulatorConnectorModel(); SimulatorModel simulatorModel = new SimulatorModel(simConnector); simConnector.Connect("127.0.0.1", 5400); // LabelConnectStatus.Content = "Status: Connected"; // LabelConnectStatus.Background = Brushes.LimeGreen; simulatorModel.startSimulator(); } }
public void VMConnect(string ip, int port) { _simulatorConnectorModel.Connect(ip, port); }