bool tray; // булевая переменная для закрития из трея #endregion Fields #region Constructors public SettingsForm() { InitializeComponent(); tray = true; Lock = new locker(); s = new Settings(); }
public LockForm(Image image, SettingsForm s) { InitializeComponent(); L = s.Lock; LockPic.Image = s.pictureBox1.Image; DataClass data = new DataClass(); // создание коннекта к бд points = data.getCollection(); // возвращает коллекцию точек ImagePoint из бд iterator = 0; countOfTry = 0; this.s = s; done = false; }