private void MainForm_Load(object sender, EventArgs e) { configWatcher = new ConfigurationsWatcher(); configWatcher.ConfigChanged += OnConfigChanged; //shareType = ShareType.Screen; loadScreensList(); wifiScreen = new WifiScreenWrapper(); comboScreens.DisplayMember = "Text"; comboScreens.ValueMember = "Value"; configures = Utils.ReadConfigFromRegistry(); showConfigs(); StartServer(); }
private static void Application_ApplicationExit(object sender, EventArgs e) { WifiScreenWrapper.Shutdown(); }