Esempio n. 1
0
        public OptionWindow(MainController mainController, SettingsBase settings)
        {
            InitializeComponent();
            this.controller = mainController;
            this.Icon       = ResourceHandler.GetIcon("mono", 16, 16);
            GetButtonImages();

            GuiGeneralSettings genSettings = settings.LoadSettings <GuiGeneralSettings>("General Settings");

            MaxConnectionsNumericUpDown.Value      = genSettings.GlobalMaxConnections;
            MaxDownloadSpeedNumericUpDown.Value    = genSettings.GlobalMaxDownloadSpeed;
            HalfOpenConnectionsNumericUpDown.Value = genSettings.GlobalMaxHalfOpenConnections;
            MaxUploadSpeedNumericUpDown.Value      = genSettings.GlobalMaxUploadSpeed;
            ListenPortNumericUpDown.Value          = genSettings.ListenPort;
            SavePathTextBox.Text    = genSettings.SavePath;
            TorrentPathTextBox.Text = genSettings.TorrentsPath;
            UseUPnPCheckBox.Checked = genSettings.UsePnP;
        }
Esempio n. 2
0
 public MainWindow()
 {
     InitializeComponent();
     this.Icon = ResourceHandler.GetIcon("mono", 16, 16);
 }
 public TorrentSettingWindow()
 {
     InitializeComponent();
     this.Icon = ResourceHandler.GetIcon("mono", 16, 16);
 }
Esempio n. 4
0
 public OptionWindow()
 {
     InitializeComponent();
     this.Icon = ResourceHandler.GetIcon("mono", 16, 16);
     GetButtonImages();
 }
Esempio n. 5
0
 public CreateWindow(MainController controller)
 {
     InitializeComponent();
     mainController = controller;
     this.Icon      = ResourceHandler.GetIcon("mono", 16, 16);
 }
Esempio n. 6
0
 public TorrentUrl()
 {
     InitializeComponent();
     this.Icon = ResourceHandler.GetIcon("mono", 16, 16);
 }
Esempio n. 7
0
 public MiniWindow(MainController mainController)
 {
     InitializeComponent();
     this.controller = mainController;
     this.Icon       = ResourceHandler.GetIcon("mono", 16, 16);
 }
Esempio n. 8
0
 public AboutWindow()
 {
     InitializeComponent();
     label4.Text += Assembly.GetExecutingAssembly().GetName().Version.ToString();
     this.Icon    = ResourceHandler.GetIcon("mono", 16, 16);
 }