88 lines
1.9 KiB
C#
88 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
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;
|
|
btnClose.Enabled = false;
|
|
btnCancel.Enabled = true;
|
|
btnCancel.Visible = true;
|
|
|
|
}
|
|
|
|
public void FinishedImport()
|
|
{
|
|
//Cursor.Current = Cursors.Default;
|
|
btnClose.Enabled = true;
|
|
btnCancel.Enabled = false;
|
|
btnCancel.Visible = false;
|
|
}
|
|
|
|
public void Append(string txt)
|
|
{
|
|
edOut.AppendText(DateTime.Now.ToString("s") + "\t"+txt + "\r\n");
|
|
}
|
|
|
|
public void Op(string txt)
|
|
{
|
|
edCurrent.Text = txt;
|
|
}
|
|
|
|
public string AllText
|
|
{
|
|
get { return edOut.Text; }
|
|
}
|
|
|
|
public string LastOp
|
|
{
|
|
get { return edCurrent.Text; }
|
|
}
|
|
|
|
public void SubOp(string txt)
|
|
{
|
|
edSubOp.Text = txt;
|
|
}
|
|
|
|
public string LastSubOp
|
|
{
|
|
get { return edSubOp.Text; }
|
|
}
|
|
|
|
private void btnClose_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|
{
|
|
KeepGoing = false;
|
|
|
|
}
|
|
|
|
private void ProgressForm_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
//eoc
|
|
}
|
|
}
|