コード例 #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;
        }
コード例 #2
0
 public MainWindow()
 {
     InitializeComponent();
     this.Icon = ResourceHandler.GetIcon("mono", 16, 16);
 }
コード例 #3
0
 public TorrentSettingWindow()
 {
     InitializeComponent();
     this.Icon = ResourceHandler.GetIcon("mono", 16, 16);
 }
コード例 #4
0
 public OptionWindow()
 {
     InitializeComponent();
     this.Icon = ResourceHandler.GetIcon("mono", 16, 16);
     GetButtonImages();
 }
コード例 #5
0
 public CreateWindow(MainController controller)
 {
     InitializeComponent();
     mainController = controller;
     this.Icon      = ResourceHandler.GetIcon("mono", 16, 16);
 }
コード例 #6
0
 public TorrentUrl()
 {
     InitializeComponent();
     this.Icon = ResourceHandler.GetIcon("mono", 16, 16);
 }
コード例 #7
0
 public MiniWindow(MainController mainController)
 {
     InitializeComponent();
     this.controller = mainController;
     this.Icon       = ResourceHandler.GetIcon("mono", 16, 16);
 }
コード例 #8
0
 public AboutWindow()
 {
     InitializeComponent();
     label4.Text += Assembly.GetExecutingAssembly().GetName().Version.ToString();
     this.Icon    = ResourceHandler.GetIcon("mono", 16, 16);
 }