private void buttonDictionary_Click_1(object sender, RoutedEventArgs e) { //while (App.thread.IsAlive) //{ // Thread.Sleep(50); //} //WindowsManager.CreateTotalDictionary(); //ObservableCollection<MyWord> collection = BdTools.ReadWord(); ReadDictionary(); TotalDictionary td = new TotalDictionary(collection); td.Show(); this.WindowState = WindowState.Minimized; }
public WindowStateChose(TotalDictionary win, int state) { InitializeComponent(); this.state = state; totalDictionary = win; switch (state) { case 1: radioBattonGrey.IsChecked = true; break; case 2: radioBattonGreen.IsChecked = true; break; case 3: radioBattonGold.IsChecked = true; break; default: break; } }