public MainForm() { InitializeComponent(); this.Text = string.Format("UnpackQueue {0}", Program.GetVersion()); this.VisibleChanged += new EventHandler(MainForm_VisibleChanged); this.FormClosing += new FormClosingEventHandler(MainForm_FormClosing); unpackQueue = new UnpackQueue(); unpackQueue.ItemProgressChanged += new Action<ItemProgressChanged>(unpackQueue_statusChanged); unpackQueue.UnpackerOutputChanged += new Action<string>(unpackQueue_UnpackerOutputChanged); unpackQueue.StatusChanged += new Action<UnpackStatus>(unpackQueue_statusChanged); unpackQueue.QueueProgressChanged += new Action<QueueProgressChanged>(unpackQueue_statusChanged); unpackQueue.AutoAddUnpackedFiles = ConfigurationManager.AppSettings["AutoAddUnpackedFiles"] == "true"; CreateWorker(); }
public MainForm() { InitializeComponent(); this.Text = string.Format("UnpackQueue {0}", Program.GetVersion()); this.VisibleChanged += new EventHandler(MainForm_VisibleChanged); this.FormClosing += new FormClosingEventHandler(MainForm_FormClosing); unpackQueue = new UnpackQueue(); unpackQueue.ItemProgressChanged += new Action <ItemProgressChanged>(unpackQueue_statusChanged); unpackQueue.UnpackerOutputChanged += new Action <string>(unpackQueue_UnpackerOutputChanged); unpackQueue.StatusChanged += new Action <UnpackStatus>(unpackQueue_statusChanged); unpackQueue.QueueProgressChanged += new Action <QueueProgressChanged>(unpackQueue_statusChanged); unpackQueue.AutoAddUnpackedFiles = ConfigurationManager.AppSettings["AutoAddUnpackedFiles"] == "true"; CreateWorker(); }