コード例 #1
0
        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;
        }
コード例 #2
0
        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;
            }
        }