1
0
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:
Ylian Saint-Hilaire
2021-08-11 11:59:41 -07:00
parent f2d23d75c3
commit 97f67a8f24
11 changed files with 3406 additions and 687 deletions

36
FileDialogMsgForm.cs Normal file
View 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();
}
}
}