Beispiel #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            info inf = new info();

            inf.deleteInfo();
            dataGridView1.DataSource = inf.getInfo();
        }
Beispiel #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            info   inf  = new info();
            string name = string.Empty;
            string url  = string.Empty;

            for (int i = 0; i < content.Length; i++)
            {
                name = content[i];
                i++;
                url = content[i];
                inf.addInfo(name, url);
            }
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            info inf = new info();

            OpenFileDialog ofd  = new OpenFileDialog();
            List <string>  list = new List <string>();

            ofd.Filter = "Text File|*.txt";
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                StreamReader reader = new StreamReader(ofd.FileName);

                content     = reader.ReadToEnd().Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
                tbname.Text = ofd.SafeFileName;
                reader.Dispose();
            }
        }