Files
cms_thermo_active/Thermo.Active.UI/Dialogs/LockForm.cs
T
2020-04-09 14:37:07 +02:00

48 lines
1.1 KiB
C#

using Thermo.Active.NC;
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 Thermo.Active.UI
{
public partial class LockForm : Form
{
bool lockOp = false;
public LockForm(bool lockOperation)
{
InitializeComponent();
lockOp = lockOperation;
if (lockOp)
PictureBox_Gif.Image = Thermo.Active.UI.Properties.Resources.LockClose;
else
PictureBox_Gif.Image = Thermo.Active.UI.Properties.Resources.LockOpen;
}
private void LockForm_Load(object sender, EventArgs e)
{
Timer_Exit.Start();
}
private void Timer_Exit_Tick(object sender, EventArgs e)
{
Timer_Exit.Stop();
this.Opacity = 0.7;
this.Refresh();
this.Opacity = 0.3;
this.Refresh();
this.Opacity = 0.0;
this.Refresh();
this.Close();
}
}
}