Example #1
0
 private void BtnOwner_composeMessage_Click(object sender, RoutedEventArgs e)
 {
     composeMessageWindow = new ComposeMessageWindow
     {
         Owner          = this,
         currentStaffID = currentStaffID
     };
     composeMessageWindow.Show();
     composeMessageWindow.txbMessage_message.IsEnabled = true;
     composeMessageWindow.btnMessage_send.IsEnabled    = true;
 }
        private void btnConsultant_composeMessage_Click(object sender, RoutedEventArgs e)
        {
            ComposeMessageWindow composeMessageWindow = new ComposeMessageWindow
            {
                currentStaffID = currentStaffID,
                Owner          = this
            };

            composeMessageWindow.Show();
            //Hide();
        }
        /// <summary>
        /// Go to the compose message window.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnManager_composeMessage_Click(object sender, RoutedEventArgs e)
        {
            composeMessageWindow = new ComposeMessageWindow
            {
                currentStaffID = currentStaffID
            };
            //Hide();
            composeMessageWindow.Show();

            // enable
            composeMessageWindow.txbMessage_message.IsEnabled = true;
            composeMessageWindow.btnMessage_send.IsEnabled    = true;
        }