private void OnConfig(object sender, RoutedEventArgs e) { Config.LoadFromFile(); Window frm2 = new SocketConfig(this); frm2.Show(); }