Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
Обновлен runner
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyarnd committed Jan 12, 2017
1 parent 786f4e5 commit 4a6e252
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 70 deletions.
84 changes: 28 additions & 56 deletions robopascal-runner/MainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions robopascal-runner/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@ public MainWindow()
InitializeComponent();

StartPosition = FormStartPosition.CenterScreen;

robopascalPathTextBox.Text = RobopascalDir;
_folderBrowserDialog.SelectedPath = RobopascalDir;
}

private void compileButton_Click(object sender, EventArgs e)
{
logboxListBox.Items.Clear();
DirectoryInfo dir = new DirectoryInfo(robopascalPathTextBox.Text);
DirectoryInfo dir = new DirectoryInfo(RobopascalDir);
var files = dir.GetFiles("*.pas", SearchOption.AllDirectories).Where(x => x.Name != "PABCSystem.pas").ToList();

foreach (var file in files)
Expand Down Expand Up @@ -93,20 +91,12 @@ private void runButton_Click(object sender, EventArgs e)
FileName = batPath
};

var process = Process.Start(psi);
}

private void pathButton_Click(object sender, EventArgs e)
{
if (_folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
robopascalPathTextBox.Text = _folderBrowserDialog.SelectedPath;
}
Process.Start(psi);
}

private void defaultPathButton_Click(object sender, EventArgs e)
private void openPathButton_Click(object sender, EventArgs e)
{
robopascalPathTextBox.Text = RobopascalDir;
Process.Start("explorer.exe", RobopascalDir);
}
}
}

0 comments on commit 4a6e252

Please sign in to comment.