public void principal(ref modeFonctionnement mode,ref couleur couleur, ref int choix) { // Do one-time tasks here GlideTouch.Initialize(); // Load the Window XML window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.windowPrincipal)); // Resize any loaded Window to the LCD's size. Glide.FitToScreen = true; // Assign the Window to MainWindow; rendering it to the LCD. Glide.MainWindow = window; // Get the Buttons GHIElectronics.NETMF.Glide.UI.Button boutonJouer = (GHIElectronics.NETMF.Glide.UI.Button)window.GetChildByName("boutonJouer"); GHIElectronics.NETMF.Glide.UI.Button boutonHomologation = (GHIElectronics.NETMF.Glide.UI.Button)window.GetChildByName("boutonHomologation"); // Set up event handlers boutonJouer.TapEvent += new OnTap(boutonJouer_TapEvent); boutonHomologation.TapEvent += new OnTap(boutonHomologation_TapEvent); // Wait while (m_boutonSelect == false) ; if (enAttendant == 1) { IhmColor.selectColor(ref m_couleur, window); IhmPos.selectPos(ref m_choix, window); } else { } // init selecteur m_boutonSelect = false; //---passage param // modeFonctionnement mode = m_mode; //couleur couleur = m_couleur; //choix position choix = m_choix; }
void boutonJouer_TapEvent(object sender) { enAttendant = 1; m_mode = modeFonctionnement.JOUERPARTIE; m_boutonSelect = true; }
void boutonHomologation_TapEvent(object sender) { enAttendant = 1; m_mode = modeFonctionnement.HOMOLOGATION; m_boutonSelect = true; }