Exemplo n.º 1
0
        private void LoadViewModel()
        {
            ViewModel = new ProfileSelectViewModel();

            _comboProfile.Items.Clear();
            _comboProfile.Items.AddRange(ViewModel.ProfileDirectories.Cast<object>().ToArray());
            if (_comboProfile.Items.Count > 0)
                _comboProfile.SelectedIndex = 0;
        }
Exemplo n.º 2
0
        private void LoadViewModel()
        {
            ViewModel = new ProfileSelectViewModel();

            _comboProfile.Items.Clear();
            _comboProfile.Items.AddRange(ViewModel.ProfileDirectories.Cast <object>().ToArray());
            if (_comboProfile.Items.Count > 0)
            {
                _comboProfile.SelectedIndex = 0;
            }
        }