48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace RBG_Server_WPF
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for ConnectionPage.xaml
|
|
/// </summary>
|
|
public partial class ConnectionPage : Page
|
|
{
|
|
public ConnectionPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void HostButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
// Draw host window
|
|
ServerGrid.Visibility = Visibility.Visible;
|
|
ServerSelectPanel.Visibility = Visibility.Collapsed;
|
|
}
|
|
|
|
private void ConnectButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
// Draw client window
|
|
}
|
|
|
|
private void BackButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
// Hide host view, show connect view
|
|
ServerGrid.Visibility = Visibility.Collapsed;
|
|
ServerSelectPanel.Visibility = Visibility.Visible;
|
|
}
|
|
}
|
|
}
|