// LayerProfileSettingDialogを表示 private void ShowLayerProfileSettingDialog() { LayerData layer = treeView.SelectedNode.Tag as LayerData ?? ((treeView.SelectedNode.Tag as LayerProfileData).Parent as LayerData); if (layer == null) { return; } LayerSettingDialog dialog = new LayerSettingDialog(layer); if (dialog.ShowDialog(Application.MainForm) == DialogResult.OK) { Application.ValidateProject(true); treeView.SelectedNode = dialog.LayerProfile.TreeNode; } }
// LayerProfileSettingDialogを表示 private void ShowLayerProfileSettingDialog() { LayerData layer = treeView.SelectedNode.Tag as LayerData ?? ( ( treeView.SelectedNode.Tag as LayerProfileData ).Parent as LayerData ); if( layer == null ) return; LayerSettingDialog dialog = new LayerSettingDialog( layer ); if( dialog.ShowDialog( Application.MainForm ) == DialogResult.OK ) { Application.ValidateProject( true ); treeView.SelectedNode = dialog.LayerProfile.TreeNode; } }