| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using System.Windows.Forms;
- namespace UAS_MES_NEW.CustomControl.ClickPicBox
- {
- public partial class LockIcon : PictureBox
- {
- static Control MaCtl;
- private bool Locked = false;
- public LockIcon()
- {
- InitializeComponent();
- Image = Properties.Resources.lock_open_24px;
- }
- /// <summary>
- /// 获取存放工单的控件
- /// </summary>
- public static void GetMakeCodeCtl(Control ctl)
- {
- MaCtl = ctl;
- }
- private void LockIcon_Click(object sender, EventArgs e)
- {
- if (Locked)
- {
- Image = Properties.Resources.lock_open_24px;
- Locked = false;
- }
- else
- {
- Image = Properties.Resources.lock_lock_24px;
- Locked = true;
- }
- }
- }
- }
|