Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            string filepath = Directory.GetCurrentDirectory() + @"\data\charinit.csv";

            CharInitReader reader = new CharInitReader(filepath);
            //キャラクター名でグルーピング
            var groupingCharData = reader.ReadAll().ToLookup(p => p.CharName);
            this.comboBox_char.ItemsSource = groupingCharData;

            //初期選択可能項目
            this.comboBox_blush.ItemsSource = BlushItems();
            this.comboBox_size.ItemsSource = SizeData();

            //サイズが選択されるまでは他のComboBoxを無効にする
            EnableComboBox(false);
        }
Esempio n. 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            string filepath = Directory.GetCurrentDirectory() + @"\data\charinit.csv";

            CharInitReader reader = new CharInitReader(filepath);
            //キャラクター名でグルーピング
            var groupingCharData = reader.ReadAll().ToLookup(p => p.CharName);

            this.comboBox_char.ItemsSource = groupingCharData;

            //初期選択可能項目
            this.comboBox_blush.ItemsSource = BlushItems();
            this.comboBox_size.ItemsSource  = SizeData();

            //サイズが選択されるまでは他のComboBoxを無効にする
            EnableComboBox(false);
        }