Esempio n. 1
0
 public void DestroyBuilder()
 {
     message = null;
     builderWindow.Close();
     builderWindow      = null;
     msgBuilderInstance = null;
 }
        void buildMessageButton_Click(object sender, RoutedEventArgs e)
        {
            EmulMessage    msg    = null;
            EmulatorResult result = EmulMessageBuilder.GetBuilder().BuildMessageWithSelectedOptions(ref msg);

            if (result.Equals(EmulatorResult.EMULATOR_RESULT_SUCCESS) && (msg != null))
            {
                updateMessageFields(msg);
            }
            else if (result.Equals(EmulatorResult.EMULATOR_RESULT_CANCELLED))
            {
                //MessageBox.Show("Building message cancelled");
            }
            else
            {
                MessageBox.Show("Building message failed");
            }
        }
 void onWindowClosing(object sender, CancelEventArgs e)
 {
     EmulMessageBuilder.GetBuilder().DestroyBuilder();
 }