示例#1
0
 public MainWindow()
 {
     XmlManager xmlManager = new XmlManager();
     xmlManager.addChildToCategory(Categories.IMAGES, "C:/Users/gross/Pictures");
     xmlManager.addChildToCategory(Categories.MUSIC, "C:/Users/gross/Music");
     xmlManager.addChildToCategory(Categories.VIDEOS, "C:/Users/gross/Videos");
     xmlManager.saveXml();
     BroadcastSender mBroadcastSender = new BroadcastSender(1);
     Thread BcSender = new Thread(mBroadcastSender.run);
     BcSender.Start();
     DServer MyDServer = new DServer();
     Thread dservThread = new Thread(MyDServer.run);
     dservThread.Start();
     InitializeComponent();
 }
示例#2
0
        public MainWindow()
        {
            XmlManager xmlManager = new XmlManager();

            xmlManager.addChildToCategory(Categories.IMAGES, "C:/Users/gross/Pictures");
            xmlManager.addChildToCategory(Categories.MUSIC, "C:/Users/gross/Music");
            xmlManager.addChildToCategory(Categories.VIDEOS, "C:/Users/gross/Videos");
            xmlManager.saveXml();
            BroadcastSender mBroadcastSender = new BroadcastSender(1);
            Thread          BcSender         = new Thread(mBroadcastSender.run);

            BcSender.Start();
            DServer MyDServer   = new DServer();
            Thread  dservThread = new Thread(MyDServer.run);

            dservThread.Start();
            InitializeComponent();
        }