47 lines
1.0 KiB
C#
47 lines
1.0 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.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ELMA
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
public MainForm()
|
|
{
|
|
InitializeComponent();
|
|
myInit();
|
|
}
|
|
|
|
private void myInit()
|
|
{
|
|
lblVers.Text = $"v.{System.Reflection.Assembly.GetExecutingAssembly().GetName().Version}";
|
|
// avvio il logger...
|
|
LogAnalyzer logPage = new LogAnalyzer();
|
|
logPage.MdiParent = this;
|
|
logPage.Dock = DockStyle.Fill;
|
|
logPage.Show();
|
|
startTimers();
|
|
}
|
|
|
|
private void startTimers()
|
|
{
|
|
timerUI.Start();
|
|
}
|
|
|
|
private void timerUI_Tick(object sender, EventArgs e)
|
|
{
|
|
progBar.Increment(1);
|
|
if (progBar.Value >= 100)
|
|
{
|
|
progBar.Value = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|