public test() { InitializeComponent(); apiol = new apioutlook(); dataGridView1.Columns.Add("name", "Name"); dataGridView1.Columns.Add("email", "Email"); apiol.cbinitAddLists(comboBox1); }
public HRMain() { InitializeComponent(); txt3Addtchedfilepath.ReadOnly = true; // apiol = new apioutlook(); apizip = new apiZip(); _hrzip = new HR_Zip(); _guserMstrList = new List <user_mstr>(); _gzipfilepath = new List <savezipfile>(); }
void initset() { this.StartPosition = FormStartPosition.Manual; this.Location = new Point { X = Control.MousePosition.X - this.Width / 5, Y = Control.MousePosition.Y + 25 }; this.Resize += GetEmailfrm_Resize; this.AcceptButton = button1; this.Icon = Resources.t__3_; // apiol = new apioutlook(); dataGridView1.Columns.Add("name", "Name"); dataGridView1.Columns.Add("email", "Email"); dataGridView1.Rows.Clear(); dataGridView1.MultiSelect = false; dataGridView1.ReadOnly = true; dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dataGridView1.CellDoubleClick += dataGridView1_CellDoubleClick; dataGridView1.CellClick += dataGridView1_CellClick; while (!Program._exuserThreadinitover) { _userform.Invoke(new Action(delegate() { _toolmsg.Text = "正在加载中..."; })); } _userform.Invoke(new Action(delegate() { _toolmsg.Text = "加载成功..."; })); if (Program._exuser.Count <= 0) { apiol.dgvaddEmailUsernameByExchange("dd"); } foreach (var item in Program._exuser) { DataGridViewRow dgvr = new DataGridViewRow(); dgvr.CreateCells(dataGridView1); dgvr.Cells[0].Value = item.Name; dgvr.Cells[1].Value = item.PrimarySmtpAddress; dataGridView1.Rows.Add(dgvr); } dataGridView1.Refresh(); this.Text = "Email,Count:" + dataGridView1.RowCount; }
public SendEmailByXls() { InitializeComponent(); // init(); // try { System.Diagnostics.Process.Start("outlook.exe");//,null apiol = new apioutlook(); apizip = new apiZip(); _guserMstrList = new List <user_mstrViewXls>(); _gzipfilepath = new List <savezipfile>(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }