Compare commits
2 Commits
52a34c06b6
...
d5e8d939e3
Author | SHA1 | Date | |
---|---|---|---|
d5e8d939e3 | |||
|
cf92efc198 |
@ -11,7 +11,7 @@
|
||||
<Copyright>Ray Lam</Copyright>
|
||||
<ApplicationIcon>favicon.ico</ApplicationIcon>
|
||||
<NoWin32Manifest>true</NoWin32Manifest>
|
||||
<Version>0.1.0.009</Version>
|
||||
<Version>0.1.1.003</Version>
|
||||
<Title>Clipboard Watcher</Title>
|
||||
</PropertyGroup>
|
||||
|
||||
|
14
MainForm.cs
14
MainForm.cs
@ -2,6 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
using RyzStudio.Windows.Forms;
|
||||
using RyzStudio.Windows.ThemedForms;
|
||||
|
||||
namespace ClipboardWatcher
|
||||
@ -15,6 +16,7 @@ namespace ClipboardWatcher
|
||||
|
||||
protected IntPtr _clipboardViewer;
|
||||
protected bool isMonitoring = false;
|
||||
protected int lineCount = 0;
|
||||
|
||||
|
||||
public MainForm()
|
||||
@ -142,6 +144,7 @@ namespace ClipboardWatcher
|
||||
Clipboard.Clear();
|
||||
|
||||
memoBox1.Text = string.Empty;
|
||||
lineCount = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -190,6 +193,9 @@ namespace ClipboardWatcher
|
||||
foreach (string item in fileList)
|
||||
{
|
||||
memoBox1.Text += item + Environment.NewLine;
|
||||
lineCount++;
|
||||
|
||||
UIControl.SetText(this, $"Clipboard Monitor ({lineCount.ToString()})");
|
||||
}
|
||||
}
|
||||
|
||||
@ -208,6 +214,14 @@ namespace ClipboardWatcher
|
||||
}
|
||||
|
||||
memoBox1.Text += clipboardText.Trim() + Environment.NewLine;
|
||||
lineCount++;
|
||||
|
||||
UIControl.SetText(this, $"Clipboard Monitor ({lineCount.ToString()})");
|
||||
|
||||
this.TopMost = true;
|
||||
this.BringToFront();
|
||||
this.Focus();
|
||||
this.TopMost = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user