Allow update of formats from PROMS interface
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user