This commit is contained in:
Frank Skare
2021-05-16 16:49:43 +02:00
parent 45d3386a88
commit 0b28770d1a
31 changed files with 5677 additions and 17 deletions

View File

@@ -11,6 +11,7 @@ using System.Windows.Input;
using DynamicGUI;
using static TaskDialog.Msg;
using static mpvnet.Core;
namespace mpvnet
@@ -75,7 +76,7 @@ namespace mpvnet
File.WriteAllText(core.ConfPath, GetContent("mpv"));
File.WriteAllText(App.ConfPath, GetContent("mpvnet"));
Msg.Show("Changes will be available on next mpv.net startup.");
MsgInfo("Changes will be available on next mpv.net startup.");
}
string GetCompareString()
@@ -297,7 +298,7 @@ namespace mpvnet
void PreviewTextBlock_MouseUp(object sender, MouseButtonEventArgs e)
{
Msg.Show("mpv.conf Preview", GetContent("mpv"));
MsgInfo("mpv.conf Preview", GetContent("mpv"));
}
void ShowManualTextBlock_MouseUp(object sender, MouseButtonEventArgs e)

View File

@@ -9,6 +9,7 @@ using System.Windows.Data;
using System.Windows.Input;
using static mpvnet.Core;
using static TaskDialog.Msg;
namespace mpvnet
{
@@ -37,7 +38,7 @@ namespace mpvnet
if (SearchControl.SearchTextBox.Text == "?")
{
SearchControl.SearchTextBox.Text = "";
Msg.Show("Filtering", "Reduce the filter scope with:\n\ni input\n\nm menu\n\nc command\n\nIf only one character is entered input search is performed.");
MsgInfo("Filtering", "Reduce the filter scope with:\n\ni input\n\nm menu\n\nc command\n\nIf only one character is entered input search is performed.");
}
}
@@ -85,7 +86,7 @@ namespace mpvnet
foreach (CommandItem i in CommandItem.Items)
if (items.ContainsKey(i.Input) && i.Input != "")
Msg.Show($"Duplicate found:\n\n{i.Input}: {i.Path}\n\n{items[i.Input].Input}: {items[i.Input].Path}\n\nPlease note that you can chain multiple commands in the same line by using a semicolon as separator.", "Duplicate Found");
MsgInfo($"Duplicate found:\n\n{i.Input}: {i.Path}\n\n{items[i.Input].Input}: {items[i.Input].Path}\n\nPlease note that you can chain multiple commands in the same line by using a semicolon as separator.", "Duplicate Found");
else
items[i.Input] = i;
}
@@ -124,9 +125,11 @@ namespace mpvnet
void Window_Closed(object sender, EventArgs e)
{
if (InitialInputConfContent == GetInputConfContent()) return;
if (InitialInputConfContent == GetInputConfContent())
return;
File.WriteAllText(core.InputConfPath, GetInputConfContent());
Msg.Show("Changes will be available on next mpv.net startup.");
MsgInfo("Changes will be available on next mpv.net startup.");
}
void DataGrid_PreviewCanExecute(object sender, CanExecuteRoutedEventArgs e)

View File

@@ -8,6 +8,7 @@ using System.Windows;
using WinForms = System.Windows.Forms;
using static StockIcon;
using static TaskDialog.Msg;
namespace mpvnet
{
@@ -44,7 +45,7 @@ namespace mpvnet
proc.WaitForExit();
if (proc.ExitCode == 0)
Msg.Show("File associations successfully created.");
MsgInfo("File associations successfully created.");
}
} catch {}