private void tsbAdd_Click(object sender, EventArgs e)
        {
            FrmStorehouse frm = new FrmStorehouse();

            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                this.RefreshListView();
            }
        }
        private void tsbModify_Click(object sender, EventArgs e)
        {
            try
            {
                List <Storehouse> selectedModelList = GetSelectedModelList();

                if (selectedModelList.Count > 1)
                {
                    throw new ApplicationException("请选择一个要修改的内容,不能多选。");
                }


                Info.FrmStorehouse frm = new FrmStorehouse(selectedModelList[0]);
                if (frm.ShowDialog(this) == DialogResult.OK)
                {
                    this.RefreshListView();
                }
            }
            catch (Exception ex)
            {
                ErrorHandler.OnError(ex);
            }
        }