public ConfigWindow(config Config) { this.Config = Config; m_entrys = new ObservableCollection <ConfigEntry>(Config.GetEntrys()); if (m_entrys.Count > 0) { SelectedEntry = m_entrys[0]; } NotifyPropertyChanged("SelectedEntry"); InitializeComponent(); }
public MainWindow() { ignoreSSLCertificate(); initWorker = new BackgroundWorker(); Config = new config(); LoginData(); initWorker.DoWork += Login; initWorker.ProgressChanged += ProgressChanged; initWorker.RunWorkerAsync(); //player.changeState += player_changeState; InitializeComponent(); }