public frmPatternLock(Settings settings) { InitializeComponent(); this.settings = settings; this.StartPosition = FormStartPosition.Manual; this.Top = settings.PatternWindowTop; this.Left = settings.PatternWindowLeft; constructing = false; }
private void frmMain_Load(object sender, EventArgs e) { settings = new Settings(); settings.LoadSettings(); if (settings.StartupPrompt) { StartupPrompt(); } if (settings.EncryptionMode == EncryptionMode.Basic) { mnuLockUnlock.Text = "Lock Data"; settings.Unlock(); AddAccounts(); } else { mnuAddAccount.Enabled = false; } SystemEvents.SessionSwitch += SystemEvents_SessionSwitch; }