Save head-file and changes on GUI

This commit is contained in:
2015-07-19 21:07:05 +02:00
parent 691cbf23e3
commit 572735bffe
2 changed files with 222 additions and 151 deletions

View File

@ -39,6 +39,7 @@ namespace CobXmlSupport
private bool eventRun = false, formLoading = false;
private string indTemp = "";
private char[] splitChars = { '#' };
private int ClientSizeMinWidth;
Dictionary<string, GenSetting> setObjs; // = new Dictionary<string, GenSetting>();
SaverListener sl;
@ -749,6 +750,7 @@ namespace CobXmlSupport
chkDisplays.Checked = true;
chkWrap.Checked = true;
chkNewArea.Checked = false;
ClientSizeMinWidth = this.ClientSize.Width;
@ -2273,6 +2275,27 @@ namespace CobXmlSupport
}
}
private void btnSaveArea_Click(object sender, EventArgs e)
{
SaveRegCopyFile srcf = new SaveRegCopyFile();
savedFile localSaver = new savedFile();
localSaver.idConnect = "4B0E5C02-B2D0-4755-B4EC-AF449D513582";
localSaver.usageName = "XMLCOBfrom_"+S.ettingActualFile;
srcf.SavedFile = localSaver;
srcf.FileData = this.outCob.Text;
srcf.ShowDialog();
}
private void GenCobCode_ClientSizeChanged(object sender, EventArgs e)
{
if (ClientSize.Width < ClientSizeMinWidth)
{
MessageBox.Show("Form can't be narrower !");
this.Size = new Size(ClientSizeMinWidth + 15, Size.Height);
}
}
private void btnCrossref_Click(object sender, EventArgs e)
{
//Create showing window