Cosmos/source2/Cosmos.Deploy.Pixie.Test/MainWindow.xaml.cs
kudzu_cp 5dc7edd1f3
2012-06-23 22:00:38 +00:00

36 lines
970 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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;
using System.Net.Sockets;
using System.IO;
namespace Cosmos.Deploy.Pixie.Test {
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e) {
string xBootFile = @"D:\source\Cosmos\Build\PXE\pxelinux.0";
var xServerIP = new byte[] { 192, 168, 42, 1 };
var xBOOTP = new DHCP(xServerIP, xBootFile);
xBOOTP.Execute();
var xTFTP = new TrivialFTP(xServerIP, System.IO.Path.GetDirectoryName(xBootFile));
xTFTP.Execute();
}
}
}