mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-13 23:03:47 +00:00
Added zip support to file viewer.
This commit is contained in:
36
FileDialogMsgForm.cs
Normal file
36
FileDialogMsgForm.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MeshCentralRouter
|
||||
{
|
||||
public partial class FileDialogMsgForm : Form
|
||||
{
|
||||
private FileViewer xparent = null;
|
||||
|
||||
public FileDialogMsgForm(FileViewer xparent)
|
||||
{
|
||||
this.xparent = xparent;
|
||||
InitializeComponent();
|
||||
Translate.TranslateControl(this);
|
||||
}
|
||||
|
||||
public void UpdateStatus(string msg, string file, int progress)
|
||||
{
|
||||
if (msg != null) { mainLabel1.Text = msg; } else { mainLabel1.Text = ""; }
|
||||
if (file != null) { mainLabel2.Text = file; } else { mainLabel2.Text = ""; }
|
||||
if ((progress >= 0) && (progress <= 100)) { progressBar1.Value = progress; }
|
||||
}
|
||||
|
||||
private void cancelButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
xparent.requestCancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user