This commit is contained in:
@@ -11,22 +11,29 @@ namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
public partial class ProgressForm : Form
|
||||
{
|
||||
public bool KeepGoing { get; set; }
|
||||
public ProgressForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
KeepGoing = true;
|
||||
}
|
||||
|
||||
|
||||
public void StartedImport()
|
||||
{
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
//Cursor.Current = Cursors.WaitCursor;
|
||||
btnClose.Enabled = false;
|
||||
btnCancel.Enabled = true;
|
||||
btnCancel.Visible = true;
|
||||
|
||||
}
|
||||
|
||||
public void FinishedImport()
|
||||
{
|
||||
Cursor.Current = Cursors.Default;
|
||||
//Cursor.Current = Cursors.Default;
|
||||
btnClose.Enabled = true;
|
||||
btnCancel.Enabled = false;
|
||||
btnCancel.Visible = false;
|
||||
}
|
||||
|
||||
public void Append(string txt)
|
||||
@@ -58,5 +65,13 @@ namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
KeepGoing = false;
|
||||
|
||||
}
|
||||
|
||||
//eoc
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user