예제 #1
0
        public bool CreatePassword()
        {
            var form = new CreatePasswordForm();

            DialogResult result = form.ShowDialog();

            if ( result == DialogResult.Cancel )
            {
                return false;
            }

            if ( result == DialogResult.OK )
            {
                return manager.AddPassword( null, form.Password );
            }

            return false;
        }
예제 #2
0
        public bool CreatePassword()
        {
            var form = new CreatePasswordForm();

            DialogResult result = form.ShowDialog();

            if (result == DialogResult.Cancel)
            {
                return(false);
            }

            if (result == DialogResult.OK)
            {
                return(manager.AddPassword(null, form.Password));
            }

            return(false);
        }