예제 #1
0
        public void addNewTagsToXml(DataGridView gridView)
        {
            XMLFormatter formatter        = new XMLFormatter();
            int          currentTagsCount = xmlTagInfoList.Count;

            int randAdded = formatter.AddFileTagsToList(xmlTagInfoList);

            PopilateGridView(gridView, currentTagsCount);

            MessageBox.Show(randAdded.ToString(), "Added new Items", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
예제 #2
0
        public void removeXmlTags(DataGridView gridView, int count)
        {
            try
            {
                XMLFormatter formatter = new XMLFormatter();
                formatter.removeTagsFromList(xmlTagInfoList, count);

                for (int i = gridView.RowCount - 2; i > count - 1; --i)
                {
                    gridView.Rows.RemoveAt(i);
                }
            }
            catch { }
        }