private void Compose_Message(object sender, RoutedEventArgs e) { currentwindow = this; currentwindow.Hide(); composemessage = new ComposeMessage(email, password, currentwindow); composemessage.Show(); }
/// <summary> /// When Open are Delete button is clicked for each mail. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Open_Message(object sender, RoutedEventArgs e) { currentwindow = this; currentwindow.Hide(); openmessage = new OpenMessage(email, password, username, currentwindow, ((Button)sender).Tag.ToString()); openmessage.Show(); }