Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add MoreMessageBox for silient messages and rich text #584

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion OneMore/Commands/References/CopyLinkCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace River.OneMoreAddIn
{
using River.OneMoreAddIn.Commands;
using River.OneMoreAddIn.Models;
using River.OneMoreAddIn.UI;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Expand Down Expand Up @@ -93,7 +94,7 @@ public override async Task Execute(params object[] args)
Win.Clipboard.SetText(html, Win.TextDataFormat.Html);
});

UIHelper.ShowInfo(specific
MoreMessageBox.Show(owner, specific
? Resx.CopyLinkCommand_LinkToParagraph
: Resx.CopyLinkCommand_LinkToPage);
}
Expand Down
9 changes: 9 additions & 0 deletions OneMore/OneMore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,12 @@
<Compile Include="Commands\Edit\PronunciateDialog.Designer.cs">
<DependentUpon>PronunciateDialog.cs</DependentUpon>
</Compile>
<Compile Include="UI\MoreMessageBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\MoreMessageBox.Designer.cs">
<DependentUpon>MoreMessageBox.cs</DependentUpon>
</Compile>
<Compile Include="UI\MorePictureBox.cs">
<SubType>Component</SubType>
</Compile>
Expand Down Expand Up @@ -1140,6 +1146,9 @@
<EmbeddedResource Include="UI\MoreLinkLabel.resx">
<DependentUpon>MoreLinkLabel.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\MoreMessageBox.resx">
<DependentUpon>MoreMessageBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\ProgressDialog.resx">
<DependentUpon>ProgressDialog.cs</DependentUpon>
</EmbeddedResource>
Expand Down
18 changes: 18 additions & 0 deletions OneMore/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.ar-SA.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3933,4 +3933,10 @@ ISO-code then comma then language name</comment>
<value>استخدم عناوين النص</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>رقم</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>نعم</value>
</data>
</root>
6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.de-DE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3920,4 +3920,10 @@ Wählen Sie Nein, um eine leere Zeile zwischen den Absätzen zu halten</value>
<value>Verwenden Sie Texttitel</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>Nein</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>Ja</value>
</data>
</root>
6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.es-ES.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3933,4 +3933,10 @@ Seleccione No para mantener una línea vacía entre los párrafos</value>
<value>Use títulos de texto</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>No</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>Sí</value>
</data>
</root>
6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.fr-FR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3929,4 +3929,10 @@ Sélectionnez Non pour conserver une ligne vide entre les paragraphes</value>
<value>Utiliser des titres de texte</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>Non</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>Oui</value>
</data>
</root>
6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.nl-NL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3933,4 +3933,10 @@ Selecteer NO om één lege regel tussen paragrafen te behouden</value>
<value>Gebruik teksttitels</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>Nee</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>Ja</value>
</data>
</root>
6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.pl-PL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3986,4 +3986,10 @@ Wybierz Nie, aby zachować jedną pustą linię między akapitami</value>
<value>Użyj tytułów tekstowych</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>Nie</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>TAk</value>
</data>
</root>
6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.pt-BR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3933,4 +3933,10 @@ Selecione Não para manter uma linha vazia entre os parágrafos</value>
<value>Use títulos de texto</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>Não</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>Sim</value>
</data>
</root>
6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3982,4 +3982,10 @@ Select No to keep one empty line between paragraphs</value>
<value>Use Text Titles</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>No</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>Yes</value>
</data>
</root>
6 changes: 6 additions & 0 deletions OneMore/Properties/Resources.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3925,4 +3925,10 @@ OneNote 文件 (*.one)</value>
<value>使用文本标题</value>
<comment>checkbox</comment>
</data>
<data name="word_No" xml:space="preserve">
<value>不</value>
</data>
<data name="word_Yes" xml:space="preserve">
<value>是的</value>
</data>
</root>
148 changes: 148 additions & 0 deletions OneMore/UI/MoreMessageBox.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.