48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using Step.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 Step.UI
|
|
{
|
|
public partial class LockForm : Form
|
|
{
|
|
bool lockOp = false;
|
|
|
|
public LockForm(bool lockOperation)
|
|
{
|
|
InitializeComponent();
|
|
|
|
lockOp = lockOperation;
|
|
if (lockOp)
|
|
PictureBox_Gif.Image = Step.UI.Properties.Resources.LockClose;
|
|
else
|
|
PictureBox_Gif.Image = Step.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();
|
|
}
|
|
}
|
|
}
|