public Server() { InitializeComponent(); if (!File.Exists(storedMessagesFilePath)) //this is just to store the sent/received messages for debugging. You can remove this if desired { File.Create(storedMessagesFilePath).Dispose(); } screenWriterDelegate = new AsynchronousSocketListener.ScreenWriterDelegate(WriteToScreen); videoFormActionDelegate = new VideoFormActionDelegate(PerformVideoAction); LoadWifiListener(); }
public Server() { InitializeComponent(); if (!File.Exists(storedMessagesFilePath)) { File.Create(storedMessagesFilePath).Dispose(); } getScreenSize(); SystemVolume sysvol = new SystemVolume(); sysvol.SysVolSetup(); screenWriterDelegate = new AsynchronousSocketListener.ScreenWriterDelegate(WriteToScreen); screenWriterDelegateBT = new BluetoothServer.ScreenWriterDelegate(WriteToScreenBT); videoFormActionDelegate = new VideoFormActionDelegate(PerformVideoAction); imageFormActionDelegate = new ImageFormActionDelegate(PerformImageAction); LoadWifiAndBTListeners(); }