46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using EBS_POC.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
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;
|
|
|
|
namespace EBS_POC.Controls
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for EBS_Page.xaml
|
|
/// </summary>
|
|
public partial class EBS_Page : UserControl
|
|
{
|
|
public static EBS_Page Current { get; set; }
|
|
public EBS_Page()
|
|
{
|
|
InitializeComponent();
|
|
this.DataContext = Main_Model.Current;
|
|
Current = this;
|
|
}
|
|
|
|
private void UserControl_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
if (Main_Model.Current.IsHost)
|
|
{
|
|
textIsHost.Visibility = Visibility.Visible;
|
|
}
|
|
foreach (var worker in Main_Model.Current.EBSFile.WorkerList)
|
|
{
|
|
var workerWindow = new Worker_Window(worker);
|
|
stackWorkers.Children.Add(workerWindow);
|
|
}
|
|
}
|
|
}
|
|
}
|