Пример #1
0
        void miTrace_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            foreach (ToolStripMenuItem mi in miTrace.DropDownItems)
            {
                mi.Checked = false;
            }
            (e.ClickedItem as ToolStripMenuItem).Checked = true;
            AppConfig.Settings.LogLevel = e.ClickedItem.Name;

            Aria2.SetOptions("log:,log-level:" + AppConfig.Settings.LogLevel);
            Aria2.SetOptions("log:-"); // restart logging
        }
Пример #2
0
 void BtnReloadClick(object sender, EventArgs e)
 {
     Aria2.SetOptions("split:" + MaxConnections.Text, true);
 }
Пример #3
0
 void MaxConnections_SelectedIndexChanged(object sender, EventArgs e)
 {
     AppConfig.Settings.MaxConnections = Convert.ToInt32(MaxConnections.Text);
     Aria2.SetOptions("split:" + MaxConnections.Text, true);
 }