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();
        }
示例#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();
        }
示例#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();
 }