示例#1
0
 public AccountController()
 {
     SliceOfPie.Controller.IsWebController = true;
     um = new SliceOfPie.UserModel();
 }
示例#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();
 }
 public AccountController()
 {
     SliceOfPie.Controller.IsWebController = true;
     um = new SliceOfPie.UserModel();
 }