Пример #1
0
        private void btnNewMs_Click(object sender, RoutedEventArgs e)
        {
            MessageWind messageWind = new MessageWind();

            messageWind.login           = login;
            messageWind.passwd          = passwd;
            messageWind.lbDate.Content  = "Send to email";
            messageWind.btnSend.Content = "Send";
            messageWind.Show();
        }
Пример #2
0
 private void lbItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if ((sender as ListView).SelectedIndex != -1)
     {
         MessageWind messageWind = new MessageWind();
         messageWind.btnSend.Content = "OK";
         messageWind.lbDate.Content  = "Date";
         messageWind.tbDateOrTo.Text = userMessages[(sender as ListView).SelectedIndex].Date.ToString();
         messageWind.tbFrom.Text     = userMessages[(sender as ListView).SelectedIndex].Name;
         messageWind.tbHead.Text     = userMessages[(sender as ListView).SelectedIndex].Subj;
         messageWind.tbText.Text     = userMessages[(sender as ListView).SelectedIndex].Text;
         messageWind.Show();
     }
 }