public BlockStudioProjectService(TreeView treeview, FlowLayoutPanel fpAbi, TextBox txtEstimatedGas,TextBox txtConsoleOut)
{
_txtEstimatedGas = txtEstimatedGas;
_fpAbi = fpAbi;
_fileTreeView = treeview;
_txtConsoleOut = txtConsoleOut;
SolcOutputPath = string.Format(@"{0}contract", BlockStudioProject.SaveFolder);
if (!Directory.Exists(SolcOutputPath))
{
Directory.CreateDirectory(SolcOutputPath);
}
var watcher = new FileSystemWatcher(SolcOutputPath);
watcher.Created += Watcher_Created;
watcher.EnableRaisingEvents = true;
BlockStudioSettings = BlockStudioSettings.Load();
}