|
using System;
using System.Drawing;
using System.Windows.Forms;
namespace DuplicateFinder
{
public partial class frmUndeletable : Form
{
public frmUndeletable(string[] items)
{
InitializeComponent();
string s = string.Empty;
foreach (string item in items)
{
s += "del \"" + item + "\" /F\n";
}
append(s);
}
public delegate void Append(string s);
private void append(string p)
{
if (richTextBox1.InvokeRequired)
richTextBox1.BeginInvoke(new Append(append), new object[] { p });
else
richTextBox1.AppendText(p);
}
private void frmUndeletable_Shown(object sender, EventArgs e)
{
selectAll();
}
public delegate void SelectALL();
private void selectAll()
{
if (richTextBox1.InvokeRequired)
richTextBox1.BeginInvoke(new SelectALL(selectAll));
else
{
richTextBox1.SelectAll();
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
in his studies, erratum discovered c/c++.he appreciated it.
when he met oracle products, in his job, he fell in love.
he uses c# .net & ms sql.
he created a "f.r.i.e.n.d.s" like soap movie, melting all of the above.
went back in the university.
after he took courses of artificial vision & imagery, he finished his studies with a successful license plate recognition project.