コード例 #1
0
ファイル: TechSupportPanel.cs プロジェクト: GNUtn/wimaxcu
 private int AddPreviouslyConnectedNetworksContactInfo(List<ContactInfoType> contactInfoList, bool includeOperatorsWithNoSupportURL)
 {
     int num = 0;
       foreach (ProfilesConnectedTo profilesConnectedTo in this._profilesConnectedToList)
       {
     ContactInfoType newContactInfo = new ContactInfoType();
     newContactInfo.CompanyName = profilesConnectedTo.NSPName;
     foreach (ProfileDisplayItem profileDisplayItem in ProfileHandler.Singleton.Profiles)
     {
       if ((int) profilesConnectedTo.ProfileID == (int) profileDisplayItem.TheProfile.profileId)
       {
     newContactInfo.CompanyName = MiscUtilities.ParseProfileName(profileDisplayItem.TheProfile.profileName);
     break;
       }
     }
     newContactInfo.SupportURL = this.GetSupportURL(newContactInfo.CompanyName, profilesConnectedTo.CustomerSupportURL);
     this.AddItemToList(contactInfoList, newContactInfo, includeOperatorsWithNoSupportURL);
     ++num;
       }
       return num;
 }
コード例 #2
0
ファイル: TechSupportPanel.cs プロジェクト: GNUtn/wimaxcu
 private int AddPreferredNetworkContactInfo(List<ContactInfoType> contactInfoList, bool includeOperatorsWithNoSupportURL)
 {
     int num = 0;
       foreach (ProfileDisplayItem profileDisplayItem in this._profileList)
       {
     if (profileDisplayItem.Preferred)
     {
       ContactInfoType newContactInfo = new ContactInfoType();
       newContactInfo.CompanyName = MiscUtilities.ParseProfileName(profileDisplayItem.TheProfile.profileName);
       string customerSupportURL = "";
       if (this._profileContactInfoHash.ContainsKey((object) newContactInfo.CompanyName))
     customerSupportURL = (string) this._profileContactInfoHash[(object) newContactInfo.CompanyName];
       newContactInfo.SupportURL = this.GetSupportURL(newContactInfo.CompanyName, customerSupportURL);
       this.AddItemToList(contactInfoList, newContactInfo, includeOperatorsWithNoSupportURL);
       ++num;
     }
       }
       return num;
 }
コード例 #3
0
ファイル: TechSupportPanel.cs プロジェクト: GNUtn/wimaxcu
 private void AddItemToList(List<ContactInfoType> contactInfoList, ContactInfoType newContactInfo, bool includeOperatorsWithNoSupportURL)
 {
     if (newContactInfo == null || string.IsNullOrEmpty(newContactInfo.CompanyName))
     return;
       bool flag = false;
       foreach (ContactInfoType contactInfoType in contactInfoList)
       {
     if (contactInfoType.CompanyName == newContactInfo.CompanyName && contactInfoType.SupportURL == newContactInfo.SupportURL)
     {
       flag = true;
       break;
     }
       }
       if (flag)
     return;
       if (string.IsNullOrEmpty(newContactInfo.SupportURL))
       {
     if (!includeOperatorsWithNoSupportURL)
       return;
     contactInfoList.Add(new ContactInfoType()
     {
       CompanyName = newContactInfo.CompanyName,
       SupportURL = TechSupportDlgStringHelper.GetString("TechSupportPanel_InformationNotAvailable")
     });
       }
       else
     contactInfoList.Add(newContactInfo);
 }
コード例 #4
0
ファイル: TechSupportPanel.cs プロジェクト: GNUtn/wimaxcu
 private void AddItemToList(List<ContactInfoType> contactInfoList, ContactInfoType newContactInfo)
 {
     this.AddItemToList(contactInfoList, newContactInfo, true);
 }
コード例 #5
0
ファイル: TechSupportPanel.cs プロジェクト: GNUtn/wimaxcu
 private int AddAllKnownProfilesContactInfo(List<ContactInfoType> contactInfoList)
 {
     int num = 0;
       foreach (ProfileDisplayItem profileDisplayItem in this._profileList)
       {
     ContactInfoType newContactInfo = new ContactInfoType();
     newContactInfo.CompanyName = MiscUtilities.ParseProfileName(profileDisplayItem.TheProfile.profileName);
     string customerSupportURL = "";
     if (this._profileContactInfoHash.ContainsKey((object) newContactInfo.CompanyName))
       customerSupportURL = (string) this._profileContactInfoHash[(object) newContactInfo.CompanyName];
     newContactInfo.SupportURL = this.GetSupportURL(newContactInfo.CompanyName, customerSupportURL);
     this.AddItemToList(contactInfoList, newContactInfo);
     ++num;
       }
       return num;
 }
コード例 #6
0
ファイル: TechSupportPanel.cs プロジェクト: GNUtn/wimaxcu
 private static int CompareContactInfo(ContactInfoType x, ContactInfoType y)
 {
     return x.CompanyName.CompareTo(y.CompanyName);
 }