//private ChartDraw chartDraw = null; public Memory(ConfigManager manager, ArrayList root_f) { InitializeComponent(); this.configManager = manager; // this.TopMost = true; this.rootFrom = root_f; if (!manager.getIsTest()) { string memory = ChromeUtils.memoryURL + configManager.getOrderID(); ChromeUtils.openChrome(memory); } BluetoothDeviceManager deviceManager = manager.getDeviceManager(); FloderUtils folder = new FloderUtils(manager.getPath()); folder.createRoot(); this.runPath = folder.createDeviceFolder(deviceManager.getDeviceAddress(), manager.getOrderID()); this.brainReceiver = new BrainReceiver(deviceManager.getCOM(), brainReiverCallback, sectionReciver, abrainCallback); //this.chartDraw = new ChartDraw(runPath); //chartDraw.Show(); //chartDraw.Location = new Point(0,120); labelDeviceName.Text = deviceManager.getDeviceName() + "(" + deviceManager.getCOM() + ")"; labelMac.Text = deviceManager.getDeviceAddress(); serviceTime = -1; brainReciverRun(); }
public void clientSave(ConfigManager manager) { string path = runPath + Client; if (!File.Exists(path)) { StreamWriter sw = new StreamWriter(path); string orderID = manager.getOrderID(); sw.WriteLine(orderID); string name = manager.getName(); sw.WriteLine(name); string year = manager.getYear(); sw.WriteLine(year); string runTime = manager.getRunTime() + ""; sw.WriteLine(runTime); BluetoothDeviceManager blueManager = manager.getDeviceManager(); string addr = blueManager.getDeviceAddress(); sw.WriteLine(addr); sw.Close(); } }