Example #1
0
        private void mainMenuFileExit_Click(object sender, EventArgs e)
        {
            bool ok = true;

            if (_KeysChanged)
            {
                ok = Prompt.ForConfirmation("Create New Key List");
            }
            if (ok)
            {
                Close();
            }
        }
Example #2
0
        private void mainMenuFileNew_Click(object sender, EventArgs e)
        {
            bool ok = true;

            if (_KeysChanged)
            {
                ok = Prompt.ForConfirmation("Create New Key List");
            }
            if (ok)
            {
                _LockerPath = null;
                ResolveKeys();
            }
            SetMenuActive();
        }
Example #3
0
        private void mainMenuFileOpen_Click(object sender, EventArgs e)
        {
            bool ok = true;

            if (_KeysChanged)
            {
                ok = Prompt.ForConfirmation("Create New Key List");
            }
            if (ok)
            {
                _LockerPath = Prompt.ForOpenPath(_LockerPath);
                if (!String.IsNullOrWhiteSpace(_LockerPath))
                {
                    ResolveKeys();
                }
            }
            SetMenuActive();
        }