コード例 #1
0
        public void SetOptions(OptionValues ov)
        {
            if (ov.SavePath == "")
            {
                ov.SavePath = System.IO.Path.GetFullPath(Global.m_CurrentDirectory + "Download");
            }

            this.Check_Tray.Checked      = ov.MinimizeToTray;
            this.Check_Idle.Checked      = ov.DisconnectOnIdle;
            this.Number_Idle.Value       = ov.IdleDelay;
            this.Check_Prune.Checked     = ov.AutoPrune;
            this.Check_Retry.Checked     = ov.RetryConnections;
            this.Number_Delay.Value      = ov.RetryDelay;
            this.Check_Attempts.Checked  = ov.LimitAttempts;
            this.Numer_Attempts.Value    = ov.RetryAttempts;
            this.Check_Associate.Checked = ov.AssociateWithNZB;
            this.Check_Connect.Checked   = ov.ConnectOnStart;
            this.TextBox_Path.Text       = ov.SavePath;
            this.TextBox_Folder.Text     = ov.SaveFolder;
            this.Check_Delete.Checked    = ov.DeleteNZB;
            this.Monitor_folder.Text     = ov.MonitorPath;
            this.Check_Monitor.Checked   = ov.MonitorFolder;
        }
コード例 #2
0
        public void SetOptions(OptionValues ov)
        {
            if(ov.SavePath == "")
                ov.SavePath = System.IO.Path.GetFullPath(Global.m_CurrentDirectory + "Download");

            this.Check_Tray.Checked = ov.MinimizeToTray;
            this.Check_Idle.Checked = ov.DisconnectOnIdle;
            this.Number_Idle.Value = ov.IdleDelay;
            this.Check_Prune.Checked = ov.AutoPrune;
            this.Check_Retry.Checked = ov.RetryConnections;
            this.Number_Delay.Value = ov.RetryDelay;
            this.Check_Attempts.Checked = ov.LimitAttempts;
            this.Numer_Attempts.Value = ov.RetryAttempts;
            this.Check_Associate.Checked = ov.AssociateWithNZB;
            this.Check_Connect.Checked = ov.ConnectOnStart;
            this.TextBox_Path.Text = ov.SavePath;
            this.TextBox_Folder.Text = ov.SaveFolder;
            this.Check_Delete.Checked = ov.DeleteNZB;
            this.Monitor_folder.Text = ov.MonitorPath;
            this.Check_Monitor.Checked = ov.MonitorFolder;
        }