示例#1
0
        private void linkAction_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            switch (linkAction.Text)
            {
            case "Download":
                _sharedFile.Start();
                break;

            case "Pause":
                _sharedFile.Pause();
                break;

            case "Open":
                openFileToolStripMenuItem_Click(null, null);
                break;
            }
        }
 private void StartAsync(object obj)
 {
     try
     {
         _sharedFile.Start();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error! " + ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }