示例#1
0
 private void ListPickerLocatie_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     _selectedLocation   = (Location)ListPickerLocatie.SelectedItem;
     btnLocation.Content = _selectedLocation.name;
     btnMatis.Content    = _language == "nl" ? "Selecteer matis" : "Choisissez un matis";
     btnMatis.IsEnabled  = true;
 }
示例#2
0
 private async void ListPickerFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     if (sender.SelectedItem != null)
     {
         await new MessageDialog("你选择的是:" + sender.SelectedItem.ToString()).ShowAsync();
     }
 }
 private void NumberOfSteps_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     if (args != null)
     {
         (this.DataContext as ViewModel.AlarmSettingsPageViewModel).StepsNumber = Convert.ToUInt32(args.AddedItems.FirstOrDefault());
     }
 }
示例#4
0
 private void ListPickerFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     selectedItems = new List <AclItem>();
     foreach (AclItem item in sender.SelectedItems)
     {
         selectedItems.Add(item);
     }
 }
示例#5
0
 /// <summary>
 /// Draws the route for all the tracks in the selected day.
 /// </summary>
 /// <param name="sender">The control that the action is for.</param>
 /// <param name="args">Parameter that contains the event data.</param>
 private async void DateFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     if (args.AddedItems.Count == 1)
     {
         FilterTime.Text = (sender.SelectedItem as DaySelectionItem).Name;
         await DrawRoute();
     }
 }
示例#6
0
        private void AppBarToggleButton_Checked(object sender, RoutedEventArgs e)
        {
            var picker = new ListPickerFlyout();

            picker.ItemsSource   = emoticons;
            picker.SelectionMode = ListPickerFlyoutSelectionMode.Single;
            //picker.ItemTemplate = (DataTemplate)Resources["PickerTemplate"];
            picker.ItemsPicked += OnItemsPicked;
            picker.ShowAt(this);
        }
示例#7
0
        private async void ListPickerFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            await loadCurrencies();

            var str = countriesList.ElementAt(sender.SelectedIndex);

            currencySelect.Content = str;
            App.symbol             = currencyList.ElementAt(sender.SelectedIndex).Trim();
            await writeCountry(str + "\n" + sender.SelectedIndex + "\n" + App.symbol);
        }
示例#8
0
        private void SmiliesPickerFlyout_OnItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var smileList = args.AddedItems;
            var smile     = smileList.First() as SmileEntity;

            if (smile == null)
            {
                return;
            }
            ReplyTextBox.Text = ReplyTextBox.Text.Insert(ReplyTextBox.Text.Length, smile.Title);
        }
示例#9
0
        private async void AudioStreamsFlyout_Closed(object sender, object e)
        {
            ListPickerFlyout f = (ListPickerFlyout)sender;

            object result = f.SelectedValue;

            if (result != null)
            {
                Player.AudioStreamExtended ase = (Player.AudioStreamExtended)result;

                await Player.SetAudioStream(GlobalVariables.CurrentPlayerState.PlayerType, ase.index);
            }
        }
示例#10
0
        private void ListPickerFlyOut2Picker(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var items = args.AddedItems;

            if (items.Any() == false)
            {
                return;
            }
            string lang = items.First().ToString();

            LocalSettingHelper.SetLocalSettingKeyValue(LocalSettingHelper.LanguageTranslateTo, lang);
            langtoTranslate.Content = Util.SupportedLanguages[lang];
        }
        private void ListPickerFlyOutPicker(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var items = args.AddedItems;

            if (items.Any() == false)
            {
                return;
            }
            LocalSettingHelper.SetLocalSettingKeyValue(LocalSettingHelper.RecogLanguageKey, (int)items.First());
            //settingbtn.Content = items.First().ToString();
            _imageViewModel.Language = (OcrLanguage)Enum.Parse(
                typeof(OcrLanguage),
                items.First().ToString());
        }
示例#12
0
        private void ListPickerFlyOut1Picker(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var items = args.AddedItems;

            if (items.Any() == false)
            {
                return;
            }
            OcrLanguage language = (OcrLanguage)Enum.Parse(
                typeof(OcrLanguage),
                items.First().ToString());

            LocalSettingHelper.SetLocalSettingKeyValue(LocalSettingHelper.RecogLanguageKey, (int)language);

            string key = Util.AvailableCountries.Where(country => country.Value == language).First().Key;

            langRecog.Content = key;
        }
 private void DayItems_SelectionChanged(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     var dataContext = this.DataContext as ViewModel.AlarmSettingsPageViewModel;
     if(args != null)
     {
         foreach (var item in args.AddedItems)
         {
             if (String.IsNullOrWhiteSpace(dataContext.RepeatAlarm) || dataContext.RepeatAlarm.Contains(dataContext.ResourceContentLoader.GetString("RepeatOnce")))
             {
                 dataContext.RepeatAlarm = dataContext.ResourceContentLoader.GetString(item.ToString()).Substring(0, 3);
             }
             else
             {
                 dataContext.RepeatAlarm = string.Empty;
                 dataContext.RepeatAlarm = String.Format(dataContext.RepeatAlarm + "," + dataContext.ResourceContentLoader.GetString(item.ToString()).Substring(0, 3));
             }
         }
     }
 }
        private async void ListPickerLocatie_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            MachineInspectionLibrary.Location temp = (MachineInspectionLibrary.Location)ListPickerLocatie.SelectedItem;
            btnLocatie.Content = temp.name;
            Controller.Matis matisController = new Controller.Matis();
            ListPickerMatis.ItemsSource = await matisController.GetMatisByLocation(temp.name);

            ListPickerMatis.SelectedValuePath = "id";
            ListPickerMatis.DisplayMemberPath = "DisplayName";
            if (_taal == "Nl")
            {
                btnMatis.Content = "Selecteer matis";
            }
            else
            {
                btnMatis.Content = "Choisissez un matis";
            }
            btnMatis.IsEnabled = true;
        }
示例#15
0
        private async void SubtitleFlyout_Closed(object sender, object e)
        {
            ListPickerFlyout f = (ListPickerFlyout)sender;

            object result = f.SelectedValue;

            if (result != null)
            {
                Player.SubtitleExtended st = (Player.SubtitleExtended)result;

                if (st.index == -1)
                {
                    await Player.DisableSubtitle(GlobalVariables.CurrentPlayerState.PlayerType);
                }
                else
                {
                    await Player.SetAndEnableSubtitle(GlobalVariables.CurrentPlayerState.PlayerType, st.index);
                }
            }
        }
示例#16
0
        private void FilterBox_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            Classes.Tipo_Entidade_Idioma t = new Classes.Tipo_Entidade_Idioma();
            t = FilterBox.SelectedItem as Classes.Tipo_Entidade_Idioma;

            if (t.Nome_Idioma == "All")
            {
                listBoxobj.ItemsSource = this.EntList.OrderBy(i => i.Nome).ToList();
            }
            else
            {
                ObservableCollection <Classes.Entidade> TempTypeEntList = new ObservableCollection <Entidade>();
                foreach (var ent in this.EntList)
                {
                    if (ent.Nome_Tipo_Entidade == t.Nome_Idioma)
                    {
                        TempTypeEntList.Add(ent);
                    }
                }
                listBoxobj.ItemsSource = TempTypeEntList;
            }
        }
示例#17
0
        private async void AdvancedMenuFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            string pickedCommand = (string)AdvancedMenuFlyout.SelectedItem;

            if (pickedCommand == audioLibUpdate)
            {
                AudioLibrary.Scan();
            }
            else if (pickedCommand == videoLibUpdate)
            {
                VideoLibrary.Scan();
            }
            else if (pickedCommand == audioLibClean)
            {
                AudioLibrary.Clean();
            }
            else if (pickedCommand == videoLibClean)
            {
                VideoLibrary.Clean();
            }
            else if (pickedCommand == showSubtitleSerach)
            {
                GUI.ShowSubtitleSearch();
            }
            else if (pickedCommand == showVideoInfo)
            {
                Input.ExecuteAction("codecinfo");
            }
            else if (pickedCommand == suspend)
            {
                await Input.ExecuteAction(SystemCommands.Suspend);
            }
            else if (pickedCommand == shutDown)
            {
                await Input.ExecuteAction(SystemCommands.Shutdown);
            }
        }
示例#18
0
        private void BBCodePickerFlyout_OnItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var bbCodeList = args.AddedItems;
            var bbcode     = bbCodeList.First() as BBCodeEntity;

            if (bbcode == null)
            {
                return;
            }
            if (!string.IsNullOrEmpty(ReplyTextBox.SelectedText))
            {
                string selectedText = "[{0}]" + ReplyTextBox.SelectedText + "[/{0}]";
                ReplyTextBox.SelectedText = string.Format(selectedText, bbcode.Code);
            }
            else
            {
                string text      = string.Format("[{0}][/{0}]", bbcode.Code);
                string replyText = string.IsNullOrEmpty(ReplyTextBox.Text) ? string.Empty : ReplyTextBox.Text;
                if (replyText != null)
                {
                    ReplyTextBox.Text = replyText.Insert(ReplyTextBox.SelectionStart, text);
                }
            }
        }
示例#19
0
 private async void ListPickerFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     await loadCurrencies();
     var str = countriesList.ElementAt(sender.SelectedIndex);
     currencySelect.Content = str;
     App.symbol = currencyList.ElementAt(sender.SelectedIndex).Trim();
     await writeCountry(str + "\n" + sender.SelectedIndex + "\n" + App.symbol);
 }
        /// <summary>
        /// 移动列表选择项单击触发
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private void MovePicker_Picked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var selectedItem = args.AddedItems.FirstOrDefault() as Projects;
            ViewModel.Tasks.ProjectId = selectedItem.Id.ToString();

            this.listPickerFlyoutMoveToProjects.Hide();
        }
 private void GradePicker_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     if (tempSelection != null)
     {
         tempSelection.Grade = (char)gradeListPicker.SelectedItem;
     }
     tempSelection = null;
     gradeListPicker.SelectedIndex = -1;
 }
        private void ListPickerMatis_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            Matis temp = (Matis)ListPickerMatis.SelectedItem;

            btnMatis.Content = temp.name;
        }
 private void Role_Picked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     Show_RoleView();
 }
示例#24
0
        private void AdvancedMenuFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            string pickedCommand = (string)AdvancedMenuFlyout.SelectedItem;

            if (pickedCommand == audioLibUpdate)
                AudioLibrary.Scan();
            else if (pickedCommand == videoLibUpdate)
                VideoLibrary.Scan();
            else if (pickedCommand == audioLibClean)
                AudioLibrary.Clean();
            else if (pickedCommand == videoLibClean)
                VideoLibrary.Clean();
            else if (pickedCommand == showSubtitleSerach)
                GUI.ShowSubtitleSearch();
            else if (pickedCommand == showVideoInfo)
                Input.ExecuteAction("codecinfo");
            else if (pickedCommand == shutDown)
            {
                Applikation.Quit();
                NavigationTransitionInfo transitionInfo = new SlideNavigationTransitionInfo();
                Frame.Navigate(typeof(MainPage), false, transitionInfo);
            }
        }
        /// <summary>
        /// 提醒选择器
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private void RemindPicker_Picked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var selectedItem = args.AddedItems.FirstOrDefault() as SnoozeTimeSelection;
            this.txtRemind.Text = selectedItem.Name;

            switch (selectedItem.SnoozeValue)
            {
                //case MinuteIncrementEnum.No_Reminder:
                //    break;
                //case MinuteIncrementEnum.At_StartTime:
                //    break;
                //case MinuteIncrementEnum.One_Minute:
                //    break;
                //case MinuteIncrementEnum.Five_Minute:
                //    break;
                //case MinuteIncrementEnum.Ten_Minute:
                //    break;
                //case MinuteIncrementEnum.Fifteen_Minute:
                //    break;
                //case MinuteIncrementEnum.Half_An_Hour:
                //    break;
                //case MinuteIncrementEnum.One_Hour:
                //    break;
                //case MinuteIncrementEnum.Four_Hours:
                //    break;
                //case MinuteIncrementEnum.One_Day:
                //    break;
                //default:
                //    break;
            }
        }
示例#26
0
 private void ListPickerMatis_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     _selectedMatis     = (Matis)ListPickerMatis.SelectedItem;
     btnMatis.Content   = _selectedMatis.name;
     btnStart.IsEnabled = true;
 }
示例#27
0
 /// <summary>
 /// Draws the route for all the tracks in the selected day.
 /// </summary>
 /// <param name="sender">The control that the action is for.</param>
 /// <param name="args">Parameter that contains the event data.</param>
 private async void DateFlyout_ItemsPicked( ListPickerFlyout sender, ItemsPickedEventArgs args )
 {
     if( args.AddedItems.Count == 1 )
     {
         FilterTime.Text = ( sender.SelectedItem as DaySelectionItem ).Name;
         await DrawRoute();
     }
 }
示例#28
0
 private void State_Click(ListPickerFlyout sender, ItemsPickedEventArgs e)
 {
     StateButton.Content = Enum.GetName(typeof(State), driverViewModel.LicenseState);
 }
示例#29
0
 /// <summary>
 /// Time filter flyout change event handler
 /// </summary>
 /// <param name="sender">Sender object</param>
 /// <param name="e">Event arguments</param>
 private async void TimeFilterFlyout_ItemsPicked( ListPickerFlyout sender, ItemsPickedEventArgs args )
 {
     await DrawRoute();
 }
示例#30
0
 private void CountryPicker_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     SelectedCountry = sender.SelectedItem as Country;
     ShowCountry();
 }
示例#31
0
 /// <summary>
 /// Time filter flyout change event handler
 /// </summary>
 /// <param name="sender">Sender object</param>
 /// <param name="e">Event arguments</param>
 private async void TimeFilterFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     await DrawRoute();
 }
        /// <summary>
        /// 移动列表选择项单击触发cmbTasksRemind
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private void MovePicker_Picked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var selectedItem = args.AddedItems.FirstOrDefault() as Projects;
            if (selectedItem == null)
            {
                return;
            }
            ViewModel.ChangeBelongProjectId(selectedItem.Id.ToString());

            this.listPickerFlyoutMoveToProjects.Hide();
        }
示例#33
0
 private void Gender_Click(ListPickerFlyout sender, ItemsPickedEventArgs e)
 {
     GenderButton.Content = Enum.GetName(typeof(Gender), driverViewModel.Gender);
 }
 public ListPickerFlyoutEvents(ListPickerFlyout This)
     : base(This)
 {
     this.This = This;
 }
示例#35
0
 private void QuoteStatusSelection_Click(ListPickerFlyout sender, ItemsPickedEventArgs e)
 {
     QuoteStatusButton.Content = Enum.GetName(typeof(QuoteStatus), searchViewModel.Submitted);
 }
示例#36
0
 private void State_Click(ListPickerFlyout sender, ItemsPickedEventArgs e)
 {
     StateButton.Content = Enum.GetName(typeof(State), driverViewModel.LicenseState);
 }
示例#37
0
 private void StateSelection_Click(ListPickerFlyout sender, ItemsPickedEventArgs e)
 {
     StateButton.Content = Enum.GetName(typeof(State), searchViewModel.State);
 }
示例#38
0
        private void AdvancedMenuFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            string pickedCommand = (string)AdvancedMenuFlyout.SelectedItem;

            if (pickedCommand == audioLibUpdate)
                AudioLibrary.Scan();
            else if (pickedCommand == videoLibUpdate)
                VideoLibrary.Scan();
            else if (pickedCommand == audioLibClean)
                AudioLibrary.Clean();
            else if (pickedCommand == videoLibClean)
                VideoLibrary.Clean();
            else if (pickedCommand == showSubtitleSerach)
                GUI.ShowSubtitleSearch();
            else if (pickedCommand == showVideoInfo)
                Input.ExecuteAction("codecinfo");
            else if (pickedCommand == suspend)
                Input.ExecuteAction(SystemCommands.Suspend);  // send command System.Suspend to Kodi server - sleep
            else if (pickedCommand == shutDown)
                Input.ExecuteAction(SystemCommands.Shutdown);  // send command System.Shutdown to Kodi - restart Kodi server
        }
示例#39
0
 private void SmiliesPickerFlyout_OnItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     var smileList = args.AddedItems;
     var smile = smileList.First() as SmileEntity;
     if (smile == null) return;
     ReplyTextBox.Text = ReplyTextBox.Text.Insert(ReplyTextBox.Text.Length, smile.Title);
 }
示例#40
0
 private void ListPickerFlyout_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
 }
示例#41
0
 private void BBCodePickerFlyout_OnItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     var bbCodeList = args.AddedItems;
     var bbcode = bbCodeList.First() as BBCodeEntity;
     if (bbcode == null) return;
     if (!string.IsNullOrEmpty(ReplyTextBox.SelectedText))
     {
         string selectedText = "[{0}]" + ReplyTextBox.SelectedText + "[/{0}]";
         ReplyTextBox.SelectedText = string.Format(selectedText, bbcode.Code);
     }
     else
     {
         string text = string.Format("[{0}][/{0}]", bbcode.Code);
         string replyText = string.IsNullOrEmpty(ReplyTextBox.Text) ? string.Empty : ReplyTextBox.Text;
         if (replyText != null) ReplyTextBox.Text = replyText.Insert(ReplyTextBox.SelectionStart, text);
     }
 }
示例#42
0
        private void ListPickerFlyOutPicker(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var items = args.AddedItems;
            if (items.Any() == false)
	        	 return;
            LocalSettingHelper.SetLocalSettingKeyValue(LocalSettingHelper.RecogLanguageKey, (int)items.First());
            //settingbtn.Content = items.First().ToString();
            _imageViewModel.Language =(OcrLanguage)Enum.Parse(
                 typeof(OcrLanguage),
                 items.First().ToString());
        }
示例#43
0
 private void QuoteStatusSelection_Click(ListPickerFlyout sender, ItemsPickedEventArgs e)
 {
     QuoteStatusButton.Content = Enum.GetName(typeof(QuoteStatus), searchViewModel.Submitted);
 }
示例#44
0
 private void Gender_Click(ListPickerFlyout sender, ItemsPickedEventArgs e)
 {
     GenderButton.Content = Enum.GetName(typeof(Gender), driverViewModel.Gender);
 }
示例#45
0
 private void StateSelection_Click(ListPickerFlyout sender, ItemsPickedEventArgs e)
 {
     StateButton.Content = Enum.GetName(typeof(State), searchViewModel.State);
 }
        private async void ManualEventAddButton_Click(object sender, RoutedEventArgs e)
        {
            _listPickerFlyout = new ListPickerFlyout();
            _listPickerFlyout.ItemsSource = UserManager.CurrentUser.Courses;
            _listPickerFlyout.DisplayMemberPath = "Title";
            await _listPickerFlyout.ShowAtAsync(sender as FrameworkElement);
            if (_listPickerFlyout.SelectedIndex < 0)
                return;

            Course course = _listPickerFlyout.SelectedItem as Course;

            DateTimeOffset dateNow = CurrentDate.Date.AddHours(DateTimeOffset.Now.TimeOfDay.Hours + 1);
            DummyCalendarInfoStub dummyStub = new DummyCalendarInfoStub(course, dateNow, new TimeSpan(dateNow.Hour, 0, 0), new TimeSpan(dateNow.Hour + 1, 0, 0));
            CurrentStub = dummyStub;
            ReminderSetupVisible = true;
            rootPivot.Visibility = Visibility.Collapsed;
        }
示例#47
0
 private void PrimaryDriver_Picked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     vehicleViewModel.DriverId = ((DriverViewModel)PrimaryDriver.SelectedValue).ID;
     PrimaryDriverButton.Content = ((DriverViewModel)PrimaryDriver.SelectedValue).FirstName;
 }
示例#48
0
        /// <summary>
        /// 选择排序项
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private async void SortListItem_Picked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            var tasksSortEnum = (TasksSortEnum)args.AddedItems.FirstOrDefault();
            await InitialAsyncAndBindingResource(tasksSortEnum);

        }
示例#49
0
 private void OnItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     selectedEmoticon       = (string)sender.SelectedItem;
     cameraButton.IsChecked = false;
     linkButton.IsChecked   = false;
 }
示例#50
0
 private void PrimaryDriver_Picked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     vehicleViewModel.DriverId   = ((DriverViewModel)PrimaryDriver.SelectedValue).ID;
     PrimaryDriverButton.Content = ((DriverViewModel)PrimaryDriver.SelectedValue).FirstName;
 }
        /// <summary>
        /// 选择优先级
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ListViewPriorities_Clicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
        {
            //var prioritiesItem = (PrioritiesEnum)args.AddedItems.FirstOrDefault();
            var prioritiesItem = 12;
            var prioritiesValue = 12;
            //var prioritiesValue = PrioritiesEnum.MiddlePriorities;

            #region 这里先这样写,之后由于listItem必然会改,所以留着switch
            switch (prioritiesItem)
            {
                //case PrioritiesEnum.HighPriorities:
                //    prioritiesValue = PrioritiesEnum.HighPriorities;
                //    break;
                //case PrioritiesEnum.MiddlePriorities:
                //    prioritiesValue = PrioritiesEnum.MiddlePriorities;
                //    break;
                //case PrioritiesEnum.LowPriorities:
                //    prioritiesValue = PrioritiesEnum.LowPriorities;
                //    break;
                //case PrioritiesEnum.NonePriorities:
                //    prioritiesValue = PrioritiesEnum.NonePriorities;
                //    break;
                //default:
                //    prioritiesValue = PrioritiesEnum.MiddlePriorities;
                //    break;
            }
            #endregion

            // TODO 在按下返回键的时候会保存更改,所以这里可以不用保存?
            ViewModel.Tasks.Priority = Convert.ToInt32(prioritiesValue);
            //this.listViewPriorities.Hide();
        }