Allow update of formats from PROMS interface

This commit is contained in:
2011-11-16 16:37:15 +00:00
parent bfd97a31bf
commit 718b4d9dc0
5 changed files with 272 additions and 245 deletions

View File

@@ -1602,5 +1602,22 @@ namespace VEPROMS
frmPropGrid pg = new frmPropGrid(tc.SelectedDisplayTabItem.MyStepTabPanel.SelectedEditItem, "EditItem");
pg.Show();
}
private void btnUpdateFormat_Click(object sender, EventArgs e)
{
string appPath = Application.ExecutablePath;
FileInfo fi = new FileInfo(appPath);
DirectoryInfo di = fi.Directory.Parent.Parent.Parent.Parent;
string fmtPath = di.FullName + @"\fmtall";
string genmacPath = di.FullName + @"\genmacall";
Format.FormatLoaded += new FormatEvent(Format_FormatLoaded);
Format.UpdateFormats(fmtPath, genmacPath);
Format.FormatLoaded -= new FormatEvent(Format_FormatLoaded);
}
void Format_FormatLoaded(object sender, FormatEventArgs args)
{
bottomProgBar.Text = args.Status;
}
}
}