public ServiceUnionForm(TrafficCollectionModel model, Service service) : this() { this.m_Type = ProjectSingleton.CurrentProject.NetType; List<NetWorkType> netWorkTypes = ProjectSingleton.ParseNetworkType(this.m_Type); CommonServiceType serviceType = CommonServiceType.PSService; if (null == service) { this.m_Control = new ServiceUnionControl(model, FormOpenType.New, null); this.cmbType.SelectedIndex = 0; this.SetGroupEnable(this.gbCS, false); this.Text = TrafficModelResource.TRAFFICMODEL_UNIONSERVICE + " " + TrafficModelResource.TRAFFICMODEL_PROPERTY; } else { this.m_Control = new ServiceUnionControl(model, FormOpenType.Property, service); serviceType = service.CommonType; this.cmbType.Enabled = false; this.m_OldName = service.Name; this.m_OldServiceType = service.CommonType; this.Text = this.m_Control.ServiceName + " " + TrafficModelResource.TRAFFICMODEL_PROPERTY; } this.cmbType.SelectedIndex = (serviceType == CommonServiceType.PSService) ? 0 : 1; this.txbName.Text = this.m_Control.ServiceName; this.InitPSService(); this.InitCSService(); this.SwitchServiceType(serviceType); this.InitSingleEnable(netWorkTypes); this.buttonApply.Enabled = false; }
private ServiceUnionForm() { this.components = null; this.m_Control = null; this.m_Type = NetWorkType.GSM; this.m_OldName = string.Empty; this.m_OldServiceType = CommonServiceType.PSService; this.InitializeComponent(); }
public ServiceUnionForm(TrafficCollectionModel model, Service service, string oldName) : this() { this.m_Control = new ServiceUnionControl(model, FormOpenType.Property, service); }