/// <summary> /// Handles the OnClick event of the Multi control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void Multi_OnClick(object sender, RoutedEventArgs e) { string ip = SettingsManager.ReadSetting(SettingName.IP); int port = int.Parse(SettingsManager.ReadSetting(SettingName.Port)); MultiManager starter = new MultiManager(ip, port); this.Hide(); starter.Start(); this.Show(); }