SafeDispatch/Safedispatch_4_0/ErrWithLink.cs

59 lines
1.8 KiB
C#
Raw Normal View History

2024-02-22 16:43:59 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using System.Diagnostics;
namespace Dispatcher
{
public partial class ErrWithLink : Telerik.WinControls.UI.RadForm
{
public ErrWithLink()
{
InitializeComponent();
LinkLabel.Link link = new LinkLabel.Link();
link.LinkData = "http://portal.safemobile.com/upload/SafeMobilePatch.zip";
linkLabel1.Links.Add(link);
LinkLabel.Link link2 = new LinkLabel.Link();
link2.LinkData = "http://www.microsoft.com/en-us/download/details.aspx?id=26347";
linkLabel2.Links.Add(link2);
LinkLabel.Link link3 = new LinkLabel.Link();
link3.LinkData = "http://www.microsoft.com/en-us/download/details.aspx?id=11895";
linkLabel3.Links.Add(link3);
}
private void radButton1_Click(object sender, EventArgs e)
{
//System.Environment.Exit(0);
System.Windows.Forms.Application.Exit();
}
private void ErrWithLink_FormClosed(object sender, FormClosedEventArgs e)
{
//System.Environment.Exit(0);
System.Windows.Forms.Application.Exit();
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(e.Link.LinkData as string);
}
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(e.Link.LinkData as string);
}
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(e.Link.LinkData as string);
}
}
}