internal bool Add(MailCount x) { a.Add(x); if (c != null) { c(x); } return(Save()); }
public void Add(string to) { var x = new MailCount() { user = to }; To.Add(x); }
public bool Add(string name, string usr, string pwd, Host host) { var x = new MailCount() { name = name, user = usr, pwd = pwd, code = host.code }; return(Add(x)); }
private void UpdateBoxes() { if (mail == null) { mail = new MailCount(); } host.SelectedItem = this.mail.Host; this.email.Text = mail.user; this.pwd.Text = mail.pwd; this.name.Text = mail.name; }
private void Save_Click(object sender, EventArgs e) { if (mail == null) { mail = new MailCount(); } _Save(); if (!counts.Contains(mail)) { counts.Add(mail); } Close(); }
public bool Remove(MailCount h) { var i = a.IndexOf(h); if (i == -1) { return(true); } a.RemoveAt(i); if (r != null) { r(h, i); } return(true); }
private void _Save() { if (mail == null) { mail = new MailCount(); } this.mail.Host = (Host)host.SelectedItem; if (mail.Host != null) { this.mail.code = mail.Host.code; } else { Message("Host Not Selected"); } mail.user = this.email.Text; mail.pwd = this.pwd.Text; mail.name = this.name.Text; }
void counts_Created(MailCount obj) { UpdateFT(); }
void counts_Removed(MailCount arg1, int arg2) { UpdateFT(); }
public void Add(MailCount to) { To.Add(to); }
public void AddTo(MailCount f) { To.Add(new MailAddress(f.user, f.name)); }
public void SetFrom(MailCount f) { From = f; from = new MailAddress(f.user, f.name); }
public User(MailCount mc) : this() { mail = mc; UpdateBoxes(); }
internal bool Contains(MailCount mail) { return(a.Contains(mail)); }
internal static Host GetHost(MailCount From) { throw new NotImplementedException(); }