Exemple #1
0
        private void EditItem()
        {
            if (sourceDanhMuc.Count == 0)
            {
                return;
            }

            var refData = sourceDanhMuc.Current as DanhMucItemData;

            var f = new frmDanhMucItem_Edit(CurrentDanhMuc) { RefData = refData };

            if (f.ShowDialog() != DialogResult.Cancel)
            {
                LoadDanhMucItem();
            }
        }
Exemple #2
0
        private void EditItem()
        {
            if (sourceDanhMuc.Count == 0)
            {
                return;
            }

            var refData = sourceDanhMuc.Current as DanhMucItemData;

            var f = new frmDanhMucItem_Edit(CurrentDanhMuc)
            {
                RefData = refData
            };

            if (f.ShowDialog() != DialogResult.Cancel)
            {
                LoadDanhMucItem();
            }
        }