public void Clear() { NameList.Clear(); Message.Clear(); Content = null; Subject = null; Recipients.Clear(); ConfirmRecipientIndex = 0; ShowEmailIndex = 0; ReadEmailIndex = 0; ReadRecipientIndex = 0; RecipientChoiceList.Clear(); IsUnreadOnly = true; IsImportant = false; StartDateTime = DateTime.UtcNow.Add(new TimeSpan(-7, 0, 0, 0)); EndDateTime = DateTime.UtcNow; DirectlyToMe = false; SenderName = null; EmailList = new List <string>(); ShowRecipientIndex = 0; LuisResultPassedFromSkill = null; MailSourceType = MailSource.Other; UserSelectIndex = -1; UnconfirmedPerson = new List <Person>(); FirstRetryInFindContact = true; ConfirmedPerson = new Person(); FirstEnterFindContact = true; }
public override void OnWorldLoadFinished() { sNames.Clear(); LoadNames(true); LoadNames(false); }
public void Clear() { NameList.Clear(); InfoList.Clear(); EditorUtility.SetDirty(this); AssetDatabase.SaveAssets(); }
/// <summary> /// Repopulates the <see cref="MarkovData"/> instance with new data using values from the /// <see cref="Data.Names"/> namespace or your own input, with the option of setting <paramref name="tokenLength"/> /// and <paramref name="isPreformatted"/>. Clears the <see cref="NameList"/> on switching. /// </summary> /// <param name="nameSource"> /// A non-empty list of strings; if empty or null then the <see cref="markovData"/> /// is not updated.</param> /// <param name="tokenLength">The length of the ngram used to generate new names. When in doubt, use 3.</param> /// <param name="isPreformatted"> /// Determines whether the MarkovData constructor will sanitize the input before populating all its data. /// </param> public void SwitchSource(List <string> nameSource, int tokenLength, bool isPreformatted) { if (nameSource is null || !nameSource.Any()) { return; } markovData = new MarkovData(nameSource, tokenLength, isPreformatted); NameList.Clear(); }
public void ClearParticipants() { NameList.Clear(); Recipients.Clear(); ConfirmRecipientIndex = 0; ReadRecipientIndex = 0; RecipientChoiceList.Clear(); EmailList = new List <string>(); ShowRecipientIndex = 0; Subject = string.IsNullOrEmpty(Subject) ? EmailCommonStrings.Skip : Subject; Content = string.IsNullOrEmpty(Content) ? EmailCommonStrings.Skip : Content; }
public bool Close() { if (IsEdit) { if (!Save()) { return(false); } } NameList.Clear(); MsgList.Clear(); return(true); }
public void Clear() { NameList.Clear(); Message.Clear(); Content = null; Subject = null; Recipients.Clear(); ConfirmRecipientIndex = 0; ShowEmailIndex = 0; IsUnreadOnly = true; IsImportant = false; StartDateTime = DateTime.UtcNow.Add(new TimeSpan(-7, 0, 0, 0)); EndDateTime = DateTime.UtcNow; DirectlyToMe = false; SenderName = null; ShowRecipientIndex = 0; LuisResultPassedFromSkill = null; }
public void ShowChosenDate() { if (SelectedDate != null) { NameList.Clear(); Pinsa pricePinsa = new Pinsa() { Name = "Total Price: " + SelectedDate.Price.ToString() }; //Total Price is made like a Pinsa so it can be shown on the list together with the other "Real" pinsas hvm = new HistoryViewModel(pricePinsa); NameList.Add(hvm); foreach (Pinsa pinsa in or.Order) { if (SelectedDate.Date == pinsa.Date) { hvm = new HistoryViewModel(pinsa); NameList.Add(hvm); } } } }
private void DisplayCount(int v) { switch (v) { case 1: collectionView.ItemsLayout = new GridItemsLayout(1, ItemsLayoutOrientation.Vertical); layout?.Children.Clear(); NameList?.Clear(); List <PersonName> list1 = new List <PersonName>(); list1.Add(new PersonName("1")); NameList = new ObservableCollection <PersonName>(list1); collectionView.SetBinding(ItemsView.ItemsSourceProperty, "NameList"); layout?.Children.Add(collectionView); break; case 2: collectionView.ItemsLayout = new GridItemsLayout(2, ItemsLayoutOrientation.Vertical); layout?.Children.Clear(); NameList?.Clear(); List <PersonName> list2 = new List <PersonName>(); list2.Add(new PersonName("1")); list2.Add(new PersonName("2")); NameList = new ObservableCollection <PersonName>(list2); collectionView.SetBinding(ItemsView.ItemsSourceProperty, "NameList"); layout?.Children.Add(collectionView); break; case 3: collectionView.ItemsLayout = new GridItemsLayout(2, ItemsLayoutOrientation.Vertical); layout?.Children.Clear(); NameList?.Clear(); List <PersonName> list3 = new List <PersonName>(); list3.Add(new PersonName("1")); list3.Add(new PersonName("2")); list3.Add(new PersonName("3")); NameList = new ObservableCollection <PersonName>(list3); collectionView.SetBinding(ItemsView.ItemsSourceProperty, "NameList"); layout?.Children.Add(collectionView); break; case 4: collectionView.ItemsLayout = new GridItemsLayout(2, ItemsLayoutOrientation.Vertical); layout?.Children.Clear(); NameList?.Clear(); List <PersonName> list4 = new List <PersonName>(); list4.Add(new PersonName("1")); list4.Add(new PersonName("2")); list4.Add(new PersonName("3")); list4.Add(new PersonName("4")); NameList = new ObservableCollection <PersonName>(list4); collectionView.SetBinding(ItemsView.ItemsSourceProperty, "NameList"); layout?.Children.Add(collectionView); NameList = new ObservableCollection <PersonName>(list4); break; case 5: collectionView.ItemsLayout = new GridItemsLayout(3, ItemsLayoutOrientation.Vertical); layout?.Children.Clear(); NameList?.Clear(); List <PersonName> list5 = new List <PersonName>(); list5.Add(new PersonName("1")); list5.Add(new PersonName("2")); list5.Add(new PersonName("3")); list5.Add(new PersonName("4")); list5.Add(new PersonName("5")); NameList = new ObservableCollection <PersonName>(list5); collectionView.SetBinding(ItemsView.ItemsSourceProperty, "NameList"); layout?.Children.Add(collectionView); break; case 6: collectionView.ItemsLayout = new GridItemsLayout(3, ItemsLayoutOrientation.Vertical); layout?.Children.Clear(); NameList?.Clear(); List <PersonName> list6 = new List <PersonName>(); list6.Add(new PersonName("1")); list6.Add(new PersonName("2")); list6.Add(new PersonName("3")); list6.Add(new PersonName("4")); list6.Add(new PersonName("5")); list6.Add(new PersonName("6")); NameList = new ObservableCollection <PersonName>(list6); collectionView.SetBinding(ItemsView.ItemsSourceProperty, "NameList"); layout?.Children.Add(collectionView); break; } }
public void ClearNameList() { NameList.Clear(); }