private void InitComboBox() { this.m_dtPathGroup = RemotingClient.Alarm_GetGroupType(); if ((this.m_dtPathGroup == null) || (this.m_dtPathGroup.Rows.Count <= 0)) { this.comboBoxLines.Items.Add("(无)"); this.comboBoxLines.Text = "(无)"; } else { DataRow row = this.m_dtPathGroup.NewRow(); this.m_dtPathGroup.Rows.InsertAt(row, 0); this.comboBoxLines.DataSource = this.m_dtPathGroup; } }
private void O1100OO1l11O() { this.dt2 = RemotingClient.Alarm_GetGroupType(); if ((this.dt2 != null) && (this.dt2.Rows.Count > 0)) { DataRow row = this.dt2.NewRow(); this.dt2.Rows.InsertAt(row, 0); this.cbbGroupName.DataSource = this.dt2; } else { this.cbbGroupName.Items.Add("(无)"); this.cbbGroupName.Text = "(无)"; } }