public FormMain(ControllerUser service, ControllerMain serviceMain) { InitializeComponent(); this.service = service; this.serviceMain = serviceMain; regis = false; }
private static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var datenbank = new FakeDatenbank(); if (args.Contains("--legacyview")) { var viewMain = new ViewMain(); var controllerMain = new ControllerMain(); var modelMain = new ModelMain(datenbank); viewMain.Controller = controllerMain; controllerMain.ModelMain = modelMain; modelMain.ViewMain = viewMain; Application.Run(viewMain); } else { var viewMain = new Main.ViewMain(); var controllerMain = new Main.ControllerMain(); var modelMain = new Main.ModelMain(datenbank); viewMain.Controller = controllerMain; controllerMain.ModelMain = modelMain; modelMain.ViewMain = viewMain; Application.Run(viewMain); } }
/// <summary> /// Load terrain and water /// </summary> /// <param name="terrainRoot"></param> public void LoadTerrain() { Debug.Log("LoadTerrain:" + Time.time); //bz music CamControl.CreateCam(H.CamRTS); if (string.IsNullOrEmpty(Program.MyScreen1.TerraRoot)) { //the default terrain Terreno = Terreno.CreateTerrain(Root.bayAndMountain1River, true); } else { //will create cvamera if is null Terreno = Terreno.CreateTerrain(Program.MyScreen1.TerraRoot); } if (WaterBody == null) { //at the Moment Water Small is not visible Apr1 2016. since the mirror was duplicating //the Draw calls _waterBody = General.Create(Root.waterSmall, new Vector3(0, 8, 0)); } controllerMain = Create(Root.controllerMain, container: Program.ClassContainer.transform) as ControllerMain; Debug.Log("LoadTerrain:" + Time.time); }
public MainWindow() { controller = new ControllerMain(); viewModel = new ViewModelMain(); InitializeComponent(); this.DataContext = viewModel; }
public frmMain() { InitializeComponent(); cm = new ControllerMain(); lblFileDirectory.Text = "File Directory: " + cm.FileName; LoadData(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); IModel _modelMain = new ModelMain(); ViewMain _viewMain = new ViewMain(); ViewAddProject _viewAddProject = new ViewAddProject(); ViewEvaluation _viewEvaluation = new ViewEvaluation(); IController cnt = new ControllerMain(_modelMain, _viewMain, _viewAddProject, _viewEvaluation); Application.Run(_viewMain); }
static void Main() { //Initialize Main Form Forms FormMain FMain = new FormMain(); FMain.Visible = false; //Initialize Controller ControllerMain CMain = new ControllerMain(FMain); //pass controller to Form FMain.Currentcontroller = CMain; FMain.ShowDialog(); }
public FormMain() { InitializeComponent(); Dictionary <string, ToolStripMenuItem> menuItems = new Dictionary <string, ToolStripMenuItem>(); menuItems.Add("Dictionary", itemDictionary); menuItems.Add("Booking", itemBooking); menuItems.Add("Statistic", itemStatistic); menuItems.Add("Setting", itemSetting); menuItems.Add("CheckIn", itemCheckIn); menuItems.Add("Payment", itemPayment); menuItems.Add("BookingAll", itemBookingAll); controller = new ControllerMain(menuItems); controllerProfile = new ControllerProfile(); }
public MainWindow() { controller = new ControllerMain(); viewModel = new searchPage(); InitializeComponent(); this.DataContext = viewModel; List <ListItem> list = new List <ListItem>(); list.Add(new ListItem() { ID = 1, Name = "Playing Now", ImagePath = "../Images/play.png" }); list.Add(new ListItem() { ID = 2, Name = "Top", ImagePath = "../Images/star.png" }); list.Add(new ListItem() { ID = 3, Name = "Popular", ImagePath = "../Images/popular.png" }); list.Add(new ListItem() { ID = 4, Name = "Upcoming", ImagePath = "../Images/upcoming.png" }); listbox1.ItemsSource = list; }
void Start() { m_ControllerMain = GameObject.Find("ScenesController").GetComponent <ControllerMain>(); }
// Use this for initialization void Start() { DontDestroyOnLoad(gameObject); CtrlMain = this; }