示例#1
0
        private void btnClick_Responder(object sender, RoutedEventArgs e)
        {
            if ((DataContext as VMmanager).SelectedMail.Flag == 2)
            {
                NovaMensagem tmp = new NovaMensagem();
                tmp.txtDestino.Text  = txtDestino.Text;
                tmp.txtAssunto.Text  = txtAssunto.Text;
                tmp.txtMensagem.Text = txtMensagem.Text;
                this.Visibility      = Visibility.Hidden;
                tmp.Owner            = this.Owner;
                this.Close();
                this.Owner.Visibility = Visibility.Visible;

                (DataContext as VMmanager).delMail();

                tmp.Show();
            }
            else
            {
                NovaMensagem tmp = new NovaMensagem();
                tmp.txtDestino.Text = txtDestino.Text;
                tmp.txtAssunto.Text = "[RE]:" + txtAssunto.Text;
                this.Visibility     = Visibility.Hidden;
                tmp.Owner           = this.Owner;


                this.Owner.Visibility = Visibility.Visible;
                this.Close();

                tmp.Show();
            }
        }
示例#2
0
        private void Novo_Email_Click(object sender, RoutedEventArgs e)
        {
            NovaMensagem tmp = new NovaMensagem();

            tmp.Owner       = this;
            tmp.DataContext = this.DataContext;
            tmp.ShowDialog();
        }
示例#3
0
        private void bttEmail_Click(object sender, RoutedEventArgs e)
        {
            NovaMensagem tmp = new NovaMensagem();

            tmp.txtDestino.Text = tbEmail.Text;

            this.Visibility = Visibility.Hidden;
            tmp.Owner       = this.Owner.Owner;


            this.Owner.Visibility = Visibility.Visible;
            this.Close();

            tmp.Show();
        }