Ejemplo n.º 1
0
        /// <summary>
        /// Execute
        /// </summary>
        /// <param name="ex">Exception</param>
        /// <returns>Boolean</returns>
        public override bool Execute(Exception ex)
        {
            // Message= citPOINT.eNeg.Infrastructure.Common.ExceptionsFriendlyMessages.CommonException;
            MessagesWindow win = new MessagesWindow(Message, ex.StackTrace);

            win.Show();
            return(true);
        }
        public void changerFenetre(int FenetreAvant, int FenetreApres)
        {
            switch (FenetreAvant)
            {
            case 0:
                acceuil.Hide();
                break;

            case 1:
                memes.Hide();
                break;

            case 2:
                messages.Hide();
                break;

            case 3:
                crypto.Hide();
                break;

            case 4:
                meteo.Hide();
                break;

            case 5:
                poke.Hide();
                break;
            }

            switch (FenetreApres)
            {
            case 0:
                acceuil.Show();
                break;

            case 1:
                memes.Show();
                break;

            case 2:
                messages.Show();
                break;

            case 3:
                crypto.Show();
                break;

            case 4:
                meteo.Show();
                break;

            case 5:
                poke.Show();
                break;
            }
        }
Ejemplo n.º 3
0
        // Кликнули по кнопке сообщений
        private void MessagesButton_Click(object sender, RoutedEventArgs e)
        {
            MessagesWindow messagesWindow = new MessagesWindow(recvPipe);

            messagesWindow.Show();
        }