示例#1
0
 private void btnPost_Click(object sender, EventArgs e)
 {
     if (ListViewHelper.CountCheckedItems(ref lvwList) > 0)
     {
         MessageBox.Show(WestwindHelper.GetWordWithQuestionMark("dialog.areYouSure", "General"), WestwindHelper.GetWord("dialog.warning", "General"), MessageBoxButtons.YesNo, MessageBoxIcon.Warning, new EventHandler(DoPost));
     }
     else
     {
         MessageBox.Show(WestwindHelper.GetWord("dialog.noSelectedRecord", "General"), WestwindHelper.GetWord("dialog.information", "General"), MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#2
0
        private void btnFind_Click(object sender, EventArgs e)
        {
            BindProductList();

            if (lvProductBatchList.Items.Count == 0)
            {
                MessageBox.Show(
                    WestwindHelper.GetWordWithQuestionMark("dialog.noRecordFound", "General"),
                    WestwindHelper.GetWord("dialog.information", "General"),
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Information
                    );
            }
        }