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 }
void BtnReloadClick(object sender, EventArgs e) { Aria2.SetOptions("split:" + MaxConnections.Text, true); }
void MaxConnections_SelectedIndexChanged(object sender, EventArgs e) { AppConfig.Settings.MaxConnections = Convert.ToInt32(MaxConnections.Text); Aria2.SetOptions("split:" + MaxConnections.Text, true); }