Close the dialog with 'OK' result when list view item is activated
This commit is contained in:
parent
8dde2cde5a
commit
0bbf8ac806
@ -158,9 +158,17 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
{
|
||||
base.OnCreating(e);
|
||||
|
||||
tvTemplate.RowActivated += tvTemplate_RowActivated;
|
||||
|
||||
InitializeTreeView();
|
||||
}
|
||||
|
||||
private void tvTemplate_RowActivated (object sender, ListViewRowActivatedEventArgs e)
|
||||
{
|
||||
cmdOK_Click (sender, e);
|
||||
}
|
||||
|
||||
|
||||
private void InitializeTreeView()
|
||||
{
|
||||
switch (this.Mode)
|
||||
@ -484,6 +492,7 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
|
||||
private void cmdOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
/*
|
||||
if (String.IsNullOrEmpty(this.txtFileName.Text))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user