private void mnuMainSetAsDesktop_Click(object sender, EventArgs e)
{
if (GlobalSetting.IsImageError)
return;
try
{
Process p = new Process();
p.StartInfo.FileName = GlobalSetting.StartUpDir + "igtasks.exe";
p.StartInfo.Arguments = "setwallpaper " + //name of param
"\"" + GlobalSetting.ImageList.GetFileName(GlobalSetting.CurrentIndex) + "\" " + //arg 1
"\"" + "0" + "\" "; //arg 2
p.Start();
}
catch (Exception)
{ }
}