/// <summary> /// 발령지 구분 콤보박스 설정. /// </summary> private void InitializeOrderLocationCmbbox() { this.cmbboxOrderLocation.Items.Clear(); this.cmbboxOrderLocation.Enabled = true; this.cmbboxOrderLocation.Items.Add("전체"); foreach (OrderLocationKindInfo location in BasisData.OrderLocationType.Values) { OrderLocationKindInfo copy = new OrderLocationKindInfo(); copy.DeepCopyFrom(location); this.cmbboxOrderLocation.Items.Add(copy); } this.cmbboxOrderLocation.SelectedIndex = 0; }
/// <summary> /// [발령지 구분] 선택 변경. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbboxOrderLocation_SelectedIndexChanged(object sender, EventArgs e) { if (!this.cmbboxOrderLocation.Focused) { return; } this.orderInquiryCondition.OrderLocationKind = null; if (this.cmbboxOrderLocation.SelectedIndex == 0 && this.cmbboxOrderLocation.SelectedText == "전체") { return; } OrderLocationKindInfo selectedLocation = this.cmbboxOrderLocation.SelectedItem as OrderLocationKindInfo; if (selectedLocation == null) { return; } this.orderInquiryCondition.OrderLocationKind = selectedLocation; }