コード例 #1
0
 public frmPatternLock(Settings settings)
 {
     InitializeComponent();
     this.settings = settings;
     this.StartPosition = FormStartPosition.Manual;
     this.Top = settings.PatternWindowTop;
     this.Left = settings.PatternWindowLeft;
     constructing = false;
 }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: richard-green/LCGoogleApps
        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;
        }