Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                EmailAccountDataSet.WriteXml(sDir, System.Data.XmlWriteMode.IgnoreSchema);

                Program.GetAccounts();
                Program.SaveGmailtxt();
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.ToString());
            }
        }
Exemplo n.º 2
0
        public EditEmailAccounts()
        {
            InitializeComponent();

            try
            {
                EmailAccountDataSet.ReadXml(sDir);

                dataGridView1.AutoGenerateColumns = false;
                dataGridView1.DataSource          = EmailAccountDataSet;

                dataGridView1.DataMember = "EmailAccount";
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.ToString());
            }
        }