From 1d342897ab09f52f3703487ea988aac73d0a85b4 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 29 Oct 2022 16:47:01 +0800 Subject: [PATCH] Update to 1.0.2 --- Properties/AssemblyInfo.cs | 4 ++-- README.md | 4 ++-- src/MainForm.cs | 11 +++++++++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 1d0b78a..c6a45fb 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.1.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.0.2.0")] +[assembly: AssemblyFileVersion("1.0.2.0")] diff --git a/README.md b/README.md index dd05380..1c71612 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ By default, Remote Desktop Connection (mstsc.exe) is not possible to backup the With RDP Portal, it is possible to save password and use it on any other Windows PCs. ## ⭐ Features -- Save Password - Portable -- Backup-able +- Backup-able Saved Passwords +- Same user experience while connected to your remote desktop. - The workflow is similar to WinSCP or HeidiSQL ## Download diff --git a/src/MainForm.cs b/src/MainForm.cs index 033fd1a..a874e74 100644 --- a/src/MainForm.cs +++ b/src/MainForm.cs @@ -74,13 +74,20 @@ namespace RDP_Portal { private void buttonConnect_Click(object sender, EventArgs e) { - GetSelectedProfile().PrepareRdpFile(); + var profile = GetSelectedProfile(); + + if (String.IsNullOrWhiteSpace(profile.Computer) || String.IsNullOrWhiteSpace(profile.Computer)) { + MessageBox.Show("Invalid connection"); + return; + } + + profile.PrepareRdpFile(); ProcessStartInfo startInfo = new ProcessStartInfo { CreateNoWindow = false, UseShellExecute = false, FileName = "mstsc.exe", - Arguments = GetSelectedProfile().Filename, + Arguments = profile.Filename, }; try {