Skip to content

Commit c8bc87c

Browse files
committed
Update exit confirmation dialog
1 parent 5086ba5 commit c8bc87c

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed
Binary file not shown.
0 Bytes
Binary file not shown.
16.2 KB
Binary file not shown.

Text Editor Setup/Text Editor Setup-cache/part2/output-info.ini renamed to Text Editor Setup/Text Editor Setup-cache/part1/output-info.ini

1.42 KB
Binary file not shown.
-16.2 KB
Binary file not shown.

Text Editor Setup/Text Editor Setup.aip

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<ROW Property="ARPCOMMENTS" Value="This installer database contains the logic and data required to install [|ProductName]." ValueLocId="*"/>
1212
<ROW Property="ARPPRODUCTICON" Value="icon72.exe" Type="8"/>
1313
<ROW Property="Manufacturer" Value="Zach, Inc."/>
14-
<ROW Property="ProductCode" Value="1033:{AC04B2FD-458A-428D-A3DD-C2CFE72D7708} " Type="16"/>
14+
<ROW Property="ProductCode" Value="1033:{259CF9DB-508A-4DF2-8ED7-5E350DFE3DE1} " Type="16"/>
1515
<ROW Property="ProductLanguage" Value="1033"/>
1616
<ROW Property="ProductName" Value="Text Editor"/>
17-
<ROW Property="ProductVersion" Value="1.0.9" Type="32"/>
17+
<ROW Property="ProductVersion" Value="1.1.0" Type="32"/>
1818
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
1919
<ROW Property="UpgradeCode" Value="{6F659083-3442-43A7-8DA3-D7192D778487}"/>
2020
<ROW Property="WindowsType9X" MultiBuildValue="DefaultBuild:Windows 9x/ME" ValueLocId="-"/>
@@ -57,7 +57,7 @@
5757
<ROW BootstrOptKey="GlobalOptions" DownloadFolder="[AppDataFolder][|Manufacturer]\[|ProductName]\prerequisites" Options="2"/>
5858
</COMPONENT>
5959
<COMPONENT cid="caphyon.advinst.msicomp.BuildComponent">
60-
<ROW BuildKey="DefaultBuild" BuildName="DefaultBuild" BuildOrder="1" BuildType="0" PackageFileName="Text_Editor_1_0_9_Setup" Languages="en" InstallationType="4" UseLargeSchema="true"/>
60+
<ROW BuildKey="DefaultBuild" BuildName="DefaultBuild" BuildOrder="1" BuildType="0" PackageFileName="Text_Editor_1_1_0_Setup" Languages="en" InstallationType="4" UseLargeSchema="true"/>
6161
</COMPONENT>
6262
<COMPONENT cid="caphyon.advinst.msicomp.DictionaryComponent">
6363
<ROW Path="&lt;AI_DICTS&gt;ui.ail"/>

Text Editor/AboutForm.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Text Editor/Form1.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,15 @@ private void Form1_FormClosing(object sender, FormClosingEventArgs e)
230230
switch (e.CloseReason)
231231
{
232232
case CloseReason.UserClosing:
233-
if (MessageBox.Show("Your file has unsaved changes. Are you sure you want to exit?",
234-
"Unsaved changes",
235-
MessageBoxButtons.YesNo,
236-
MessageBoxIcon.Question) == DialogResult.No)
233+
DialogResult dr = MessageBox.Show("Your file has unsaved changes. Do you want to save them?", "Unsaved changes", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
234+
if (dr == DialogResult.Yes)
237235
{
238-
e.Cancel = true;
239236
this.menuItem5.PerformClick();
240237
}
238+
else if (dr == DialogResult.Cancel)
239+
{
240+
e.Cancel = true;
241+
}
241242
break;
242243
}
243244
}

0 commit comments

Comments
 (0)