//매장검색버튼. 필요없을거 같은데.. private void BTN_SEARCH_Click(object sender, EventArgs e) { if (TXT_SHOP_NAME.Text != null && !string.Empty.Equals(TXT_SHOP_NAME.Text)) { SearchShopList(TXT_SHOP_NAME.Text); } else { MetroMessageBox.Show(this, "판매점명을 입력하시기 바랍니다.", "SearchShop", MessageBoxButtons.OK, MessageBoxIcon.Warning); TXT_SHOP_NAME.Focus(); } }
//매장정보를 메인화면에서 받아옴 public void SetSearchShopList(JArray data) { JArray sorted = new JArray(data.OrderBy(obj => obj["MERCHANT_NO"])); m_ArrLastSearchData = new JArray(); for (int i = sorted.Count - 1; i >= 0; i--) { m_ArrLastSearchData.Add(sorted[i]); } sorted = null; SearchShopList();//화면 초기 세팅 TXT_SHOP_NAME.Focus(); }
private void SearchShop_Load(object sender, EventArgs e) { Activate(); TXT_SHOP_NAME.Focus(); this.Text = Constants.getScreenText("SEARCHSHOP"); }