mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-10-26 18:49:35 +03:00
34 lines
730 B
C#
34 lines
730 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace XSDDiagram
|
|
{
|
|
public partial class OpenURLForm : Form
|
|
{
|
|
public OpenURLForm(string url)
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.textBoxURL.Text = url;
|
|
}
|
|
|
|
public string URL { get; set; }
|
|
|
|
protected override void OnLoad(EventArgs e)
|
|
{
|
|
base.OnLoad(e);
|
|
|
|
this.textBoxURL.Text = URL;
|
|
}
|
|
|
|
protected override void OnClosed(EventArgs e)
|
|
{
|
|
if (this.DialogResult == System.Windows.Forms.DialogResult.OK)
|
|
{
|
|
URL = this.textBoxURL.Text;
|
|
}
|
|
base.OnClosed(e);
|
|
}
|
|
}
|
|
}
|