Esempio n. 1
0
 public AccountController()
 {
     SliceOfPie.Controller.IsWebController = true;
     um = new SliceOfPie.UserModel();
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new instance of a controller. Made private as to only allow one instance
 /// to be created. External sources should get the controller from <c>Controller.Instance;</c>
 /// </summary>
 /// <param name="model">FileModel to use (local or web?)</param>
 private Controller(IFileModel model = null)
 {
     if (model == null) model = new LocalFileModel();
     fileModel = model;
     userModel = new UserModel();
 }
Esempio n. 3
0
 public AccountController()
 {
     SliceOfPie.Controller.IsWebController = true;
     um = new SliceOfPie.UserModel();
 }