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();
 }
Exemple #2
0
        public MainWindow()
        {
            ignoreSSLCertificate();
            initWorker = new BackgroundWorker();

            Config = new config();
            LoginData();

            initWorker.DoWork          += Login;
            initWorker.ProgressChanged += ProgressChanged;
            initWorker.RunWorkerAsync();
            //player.changeState += player_changeState;

            InitializeComponent();
        }