public MainWindow()
        {
            InitializeComponent();

            //Set the localName text to the hostname
            localName.Text = HostInfo.HostName;

            //Initialise the chat application
            chatApplication = new ChatAppWPF(chatBox, scroller, messagesFrom, messageText);

            //Print out some usage instructions
            chatApplication.PrintUsageInstructions();

            //Initialise the NetworkComms.Net settings
            chatApplication.RefreshNetworkCommsConfiguration();
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            //Set the localName text to the hostname
            localName.Text = HostInfo.HostName;

            //Initialise the chat application
            chatApplication = new ChatAppWPF(chatBox, scroller, messagesFrom, messageText);

            //Print out some usage instructions
            chatApplication.PrintUsageInstructions();

            //Initialise the NetworkComms.Net settings
            chatApplication.RefreshNetworkCommsConfiguration();
        }
Beispiel #3
0
 /// <summary>
 /// Enable or disable encryption of all data as default
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UseEncryptionBox_CheckedUnchecked(object sender, RoutedEventArgs e)
 {
     chatApplication.EncryptionEnabled = (bool)useEncryptionBox.IsChecked;
     chatApplication.RefreshNetworkCommsConfiguration();
 }