1
1
using System . IO ;
2
+ using CADPythonShell . App ;
2
3
3
4
namespace CADPythonShell
4
5
{
5
6
public partial class ConfigureCommandsForm : Form
6
7
{
7
- private List < Command > _commands ;
8
+ private List < App . Command > _commands ;
8
9
private List < string > _searchPaths ;
9
10
private List < KeyValuePair < string , string > > _variables ;
10
11
@@ -50,7 +51,7 @@ private void ConfigureCommandsForm_Load(object sender, EventArgs e)
50
51
/// </summary>
51
52
private void lstCommands_SelectedIndexChanged ( object sender , EventArgs e )
52
53
{
53
- var command = ( Command ) lstCommands . SelectedItem ;
54
+ var command = ( App . Command ) lstCommands . SelectedItem ;
54
55
txtCommandName . Text = command . Name ;
55
56
txtCommandPath . Text = command . Source ;
56
57
txtCommandGroup . Text = command . Group ;
@@ -61,15 +62,15 @@ private void lstCommands_SelectedIndexChanged(object sender, EventArgs e)
61
62
/// </summary>
62
63
private void txtCommandName_TextChanged ( object sender , EventArgs e )
63
64
{
64
- var command = ( Command ) lstCommands . SelectedItem ;
65
+ var command = ( App . Command ) lstCommands . SelectedItem ;
65
66
command . Name = txtCommandName . Text ;
66
67
67
68
RefreshBindingContext ( lstCommands , _commands ) ;
68
69
}
69
70
70
71
private void txtCommandGroup_TextChanged ( object sender , EventArgs e )
71
72
{
72
- var command = ( Command ) lstCommands . SelectedItem ;
73
+ var command = ( App . Command ) lstCommands . SelectedItem ;
73
74
command . Group = txtCommandGroup . Text ;
74
75
75
76
RefreshBindingContext ( lstCommands , _commands ) ;
@@ -80,7 +81,7 @@ private void txtCommandGroup_TextChanged(object sender, EventArgs e)
80
81
/// </summary>
81
82
private void txtCommandPath_TextChanged ( object sender , EventArgs e )
82
83
{
83
- var command = ( Command ) lstCommands . SelectedItem ;
84
+ var command = ( App . Command ) lstCommands . SelectedItem ;
84
85
command . Source = txtCommandPath . Text ;
85
86
86
87
RefreshBindingContext ( lstCommands , _commands ) ;
@@ -120,7 +121,7 @@ private void btnCommandAdd_Click(object sender, EventArgs e)
120
121
121
122
if ( dialog . ShowDialog ( this ) == DialogResult . OK )
122
123
{
123
- var command = new Command ( ) ;
124
+ var command = new App . Command ( ) ;
124
125
command . Name = "" ;
125
126
command . Group = "" ;
126
127
command . Source = dialog . FileName ;
0 commit comments