コード例 #1
0
ファイル: UserProfileControl.cs プロジェクト: xiaoyj/Space
 public bool CommitData(Huawei.UNet.Traffic.Interface.UserProfile newUserProfile, string oldName, string change)
 {
     if (change == this.ADDSTRING)
     {
         this.m_UserProfileManagement.AddUserProfile(this, newUserProfile);
         this.m_NewProfile = this.m_UserProfileManagement.FindUserProfileByName(newUserProfile.Name);
     }
     else
     {
         newUserProfile.ID = this.m_NewProfile.ID;
         this.m_UserProfileManagement.ModifyUserProfile(this, newUserProfile);
     }
     return true;
 }
コード例 #2
0
ファイル: UserProfileControl.cs プロジェクト: xiaoyj/Space
 public UserProfileControl(Huawei.UNet.Traffic.Interface.UserProfile inUserProfile, TrafficCollectionModel model, List<NetWorkType> netTypeList, FormOpenType formOpenType)
 {
     this.m_Model = model;
     this.m_NewProfile = inUserProfile;
     this.m_NetWorkTypeList = netTypeList;
     this.m_UserProfileManagement = this.m_Model.UserProfileManagement;
     this.m_UnionCsManagement = this.m_Model.UnionCsServiceManagement;
     this.m_UnionPsManagement = this.m_Model.UnionPsServiceManagement;
     this.m_TerminalManager = this.m_Model.TerminalManagement;
     this.m_UserProfileManagement = this.m_Model.UserProfileManagement;
     if (formOpenType == FormOpenType.New)
     {
         this.m_NewProfile.Name = this.GenerateName();
     }
 }