public AppShell(string nombre) { InitializeComponent(); FlyoutHeaderTemplate = menuHeader; Inicio = new InicioView(nombre); BindingContext = Inicio; }
private void pictureBox2_Click(object sender, EventArgs e) { this.Hide(); InicioView frm = new InicioView(); frm.Show(); }
private void HalconWindow_HInitWindow(object sender, EventArgs e) { window = HalconWindow.HalconID; InicioView = new InicioView(window); //Main Page View InicioView.ChangeLabelEvent += ConfigDispAquiView_ChangeLabelEvent; InicioView.AddMediator(concreteMediator); concreteMediator.AddParticipant(InicioView); configAcquisitionDevice.FireConfigurationChangedEvent(); if (HalconAPI.isWindows) // Necessário para fazer o gerenciamento de threads das janelas { HOperatorSet.SetSystem("use_window_thread", "true"); } Console.WriteLine("Halcon Window loaded"); contentMain.Content = InicioView; }
public App() { InitializeComponent(); MainPage = new InicioView(); }