コード例 #1
0
        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();
            }
        }
コード例 #2
0
 public void LoadControl(ControlDestination controlDestination, string filename, object parameter)
 {
     HandleExceptions(HandleException, () =>
     {
         //.... your code
     });
 }