Пример #1
0
        /// <summary>
        /// Opens the ItemPolicy form to make changes on the selected item and refreshes the grid
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolBtnEdit_Click(object sender, EventArgs e)
        {
            DataRow dr = gridItemChoiceView.GetFocusedDataRow();

            if (dr != null)
            {
                int        itemId = Convert.ToInt32(dr["ID"]);
                ItemPolicy addItm = new ItemPolicy(itemId, true);
                addItm.ShowDialog();
                ImportItems();
            }
        }