private void Button_UpdateMessage_Click(object sender, RoutedEventArgs e)
 {
     Window_Message window =
         new Window_Message
         (
             m_userControl_message.MessageId,
             m_userControl_message.MessageName,
             m_userControl_message.MessageText,
             (win) =>
             {
                 Window_Message wWin = win as Window_Message;
                 if (wWin != null)
                     GinTubBuilderManager.UpdateMessage(wWin.MessageId.Value, wWin.MessageName, wWin.MessageText);
             }
         );
     window.Show();
 }
 private void NewMessageDialog()
 {
     Window_Message window =
         new Window_Message
         (
             null,
             null,
             null,
             (win) =>
             {
                 Window_Message wWin = win as Window_Message;
                 if (wWin != null)
                     GinTubBuilderManager.CreateMessage(wWin.MessageName, wWin.MessageText);
             }
         );
     window.Show();
 }