public AccountController(IHttpContextAccessor httpcontextaccessor, IConfiguration configuration, IHomeController ihomeController, IQuestionController IQuestionController) : base(httpcontextaccessor, configuration)
 {
     _httpcontextaccessor = httpcontextaccessor;
     _config              = configuration;
     _ihomeController     = ihomeController;
     _iQuestionController = IQuestionController;
 }
 public HomeControlApplicationContext(IHomeController tc)
 {
     this.tc = tc;
     tc.OnPersonArrived += tc_OnPersonArrived;
     tc.OnPersonLeft += tc_OnPersonLeft;
     this.notifyIcon1 = new System.Windows.Forms.NotifyIcon();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     //
     // notifyIcon1
     //
     this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
     this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
     this.notifyIcon1.Text = "Home Control";
     this.notifyIcon1.Visible = true;
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toolStripMenuItem1});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(199, 67);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(198, 30);
     this.toolStripMenuItem1.Text = "Exit";
     this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click);
 }
Exemple #3
0
        /// <summary>
        /// Gets the controller and view based on the user's role.
        /// </summary>
        /// <returns>Page to be displayed for user</returns>
        public static Page GetMainPage()
        {
            NavigationPage navPage;
            User user = null;

            // Get User
            user.Role = "Driver";

            // Create HomeController based on user's role.
            string classname = String.Format("FormsLOBAccelerator.Controllers.{0}.HomeController", user.Role);
            _homeController = (IHomeController) Assembly.GetExecutingAssembly().CreateInstance(classname);

            // Create Navigation Page and put home view as starting page.
            navPage = new NavigationPage(_homeController.GetMainPage());
            navPage.Title = _homeController.Title;

            return navPage;
        }
 public ShowPlayerProfilesCommand(IHomeController controller)
 {
     _controller = controller;
 }
 public ProfileCommand(IHomeController controller)
 {
     _controller = controller;
 }
 public HomeViewModel()
 {
     _homeControllerObj = new HomeController();
     List<Login> lstLoginDetails = _homeControllerObj.GetAllUserDetails();
 }
 public void SetUp()
 {
     _controller = new HomeController();
 }
Exemple #8
0
 public HomeViewModel()
 {
     _homeControllerObj = new HomeController();
     List <Login> lstLoginDetails = _homeControllerObj.GetAllUserDetails();
 }
Exemple #9
0
 public OpenGameCommand(IHomeController controller)
 {
     _controller = controller;
 }
 public ApplicationStart(IHomeController controller)
 {
     _controller = controller;
 }
 public LocalHomeControlService(IHomeController homeController, IStateReportersFactory reportersFactory)
 {
     this.homeController = homeController;
     this.reportersFactory = reportersFactory;
     this.reporters = reportersFactory.GetRegisteredStateReporters();
 }