示例#1
0
        static void Main(string[] args)
        {
            ParseArguments(args);

            // Set startup path
            Global.StartupPath = Application.StartupPath;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MainWindow w = new MainWindow();
            Application.Run(w);
        }
示例#2
0
		public MainController(MainWindow mainForm)
        {
			this.mainForm = mainForm;
			itemToTorrent = new Dictionary<ListViewItem, TorrentManager>();
			itemToPeers = new Dictionary<ListViewItem, PeerId>();
			peerlocker = new ReaderWriterLock();
			settingsBase = new SettingsBase();
            mono = ResourceHandler.GetIcon("mono", 16, 16);

            this.miniWindow = new MiniWindow(this);

			LoadViewSettings();
            Init();
        }