Пример #1
0
 private void UrlListDisplay_Load(object sender, EventArgs e)
 {
     if (listBox1.Items.Count == 1)
     {
         Process.Start(ContentIdentifier.CheckAndAppendHTTP((string)listBox1.Items[0]));
         Close();
     }
 }
Пример #2
0
 private void openButton_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedItem != null)
     {
         Process.Start(ContentIdentifier.CheckAndAppendHTTP(listBox1.SelectedItem.ToString()));
     }
     else
     {
         MessageBox.Show("Please select a URL to open.",
                         "Clipboarder - Display URL",
                         MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }