Example #1
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            var dsa = UsingFile.SearchAndFindFilesName(textBox1.Text);

            foreach (var item in dsa)
            {
                OleDocumentProperties dso = new DSOFile.OleDocumentProperties();
                dso.Open(item);
                MessageBox.Show(dso.SummaryProperties.Keywords);
                dso.Save();
                dso.Close(true);
            }
        }
Example #2
0
        public async void Operate(object sender, EventArgs e)
        {
            bool answer = await EnumerateFilesAndWriteKeywords(UsingFile.SearchAndFindFilesName(textBox1.Text));

            if (answer)
            {
                MessageBox.Show("successfully changed");
            }
            else
            {
                MessageBox.Show("something went wrong please try again");
            }
        }