public UserSettings(Home home, Core core, User user, ControlDestination destination) { Home = home; Core = core; User = user; InitializeComponent(); Destination = destination; if (Core.User.Permission > 0) { textBoxEmail.IsEnabled = false; textBoxPosition.IsEnabled = false; } if (User != null) { parseUser(); } else { clearInputs(); } }
public void LoadControl(ControlDestination controlDestination, string filename, object parameter) { HandleExceptions(HandleException, () => { //.... your code }); }