本页面尚未提供您的语言版本,显示其他语言版本。

Window

The SecurityCreateWindow component is a window for creating and editing an instrument. The component consists of two main elements: the special text field SecurityIdTextBox and the property editing grid PropertyGridEx. You can access the created (edited) instrument with the SecurityCreateWindow.Security property.

Below is the appearance of the component and the code snippet with its use.

Gui SecurityCreateWindow

private void Button_Click(object sender, RoutedEventArgs e)
{
	var dlg = new SecurityCreateWindow();
	var result = dlg.ShowDialog();
	if (result != null && (bool)result)
	{
		var security = dlg.Security;
	}
}