public void ShowForm(BrowserControl browser, List<object> selection) { _selectedUsers = selection; _browser = browser; this.Text = "User permissions: " + selection.Count + " user(s) selected"; this.ShowDialog(); }
public void ShowForm(BrowserControl browser, object row) { var qry = from u in _context.eUsers where u.Id == ((eUser)row).Id select u; if (row == null) { _user = new eUser(); _user.Active = true; _user.NetworkId = string.Empty; _user.Lastname = string.Empty; _user.Firstname = string.Empty; _user.eMail = string.Empty; _user.Department = string.Empty; _user.Team = string.Empty; } else _user = qry.First(); _user.PropertyChanged += ((sender, e) => { IsDirty = true; }); _browser = browser; this.Show(); }