Exemplo n.º 1
0
 public SettingsPanel(ConsolePanel console)
 {
     Console = console;
     InitializeComponent();
     Path           = Read.GetPath();
     PathBlock.Text = Path;
 }
 public ServerControl(Server server, ServerControlPanel cp, ConsolePanel console)
 {
     Console     = console;
     this.Server = server;
     InitializeComponent();
     this.ServerName.Content = server.Name;
     this.cp = cp;
 }
Exemplo n.º 3
0
        public ServerControlPanel(ConsolePanel console)
        {
            Console = console;
            InitializeComponent();

            //read
            var servers = Read.GetServerData();

            foreach (Server s in servers)
            {
                Servers.Add(new ServerControl(s, this, Console));
            }

            foreach (ServerControl s in Servers)
            {
                ServersView.Children.Add(s);
            }

            Back(BackB, new RoutedEventArgs());
        }