40 lines
952 B
C#
40 lines
952 B
C#
using System;
|
|
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();
|
|
}
|
|
}
|
|
}
|