diff --git a/View/Dialogs/DatabaseSelectorDialogView.xaml b/View/Dialogs/DatabaseSelectorDialogView.xaml index 398b2b3..5385eb6 100644 --- a/View/Dialogs/DatabaseSelectorDialogView.xaml +++ b/View/Dialogs/DatabaseSelectorDialogView.xaml @@ -4,7 +4,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" - Title="Debt Manager - Select Database" Height="285" Width="400" + Title="eJay - Select Database" Height="285" Width="400" KeyUp="Window_OnKeyUp"> diff --git a/View/MainView.xaml b/View/MainView.xaml index 95d216d..b9ceaf4 100644 --- a/View/MainView.xaml +++ b/View/MainView.xaml @@ -7,7 +7,7 @@ mc:Ignorable="d" Name="MainViewWindow" Icon="../Content/money_green.ico" - Title="Debt Manager" Height="600" MinHeight="600" Width="900" MinWidth="900" + Title="eJay" Height="600" MinHeight="600" Width="900" MinWidth="900" Background="White"> @@ -36,7 +36,7 @@ - + @@ -46,7 +46,7 @@ - + diff --git a/ViewModel/MainViewModel.cs b/ViewModel/MainViewModel.cs index 0754ddb..ed02227 100644 --- a/ViewModel/MainViewModel.cs +++ b/ViewModel/MainViewModel.cs @@ -236,8 +236,23 @@ namespace DebtMgr.ViewModel var fileName = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + ".png"); var parameter = string.Format("-sendpath \"{0}\"", fileName); - //var proc = System.Diagnostics.Process.Start(Properties.Settings.Default.TelegramPath, parameter); - var proc = System.Diagnostics.Process.Start("explorer"); + // Create temp screenshot + PrintHelper.SaveUsingEncoder(fileName, grid); + + // Create cmd process + Process process = new Process(); + + ProcessStartInfo startInfo = new ProcessStartInfo(); + startInfo.WindowStyle = ProcessWindowStyle.Hidden; + startInfo.FileName = Properties.Settings.Default.TelegramPath; + + startInfo.Arguments = parameter; + + // Attach command to process + process.StartInfo = startInfo; + + // Start process + process.Start(); } #endregion