Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="Ctrl"></param>
        /// <param name="CancelDefault"></param>
        void passwdbutton_Click(CommandBarButton Ctrl, ref bool CancelDefault)
        {
            try
            {
                PassCodeWindow wnd = new PassCodeWindow();
                wnd.ShowDialog();
            }

            catch (System.Exception ex)
            {
                Logger.WriteEntry(LogLevel.Error, "Exception :" + ex.GetType() + " " + ex.Message + " " + ex.StackTrace);
                MessageBox.Show(ex.Message);
            }
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="wnd"></param>
        /// <returns></returns>
        public static String getSCSAccountPassWord()
        {
            if (PassCodeWindow.SCSPassword != String.Empty)
            {
                return(PassCodeWindow.SCSPassword);
            }

            try
            {
                PassCodeWindow wnd = new PassCodeWindow();
                wnd.ShowDialog();

                return(PassCodeWindow.SCSPassword);
            }

            catch (System.Exception ex)
            {
                Logger.WriteEntry(LogLevel.Error, "Exception : " + ex.Message + ex.StackTrace);
                return("unknown");
            }
        }
Example #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="wnd"></param>
        /// <returns></returns>
        public static String getSCSAccountPassWord()
        {
            if (PassCodeWindow.SCSPassword != String.Empty)
            {
                return PassCodeWindow.SCSPassword;
            }

            try
            {
                PassCodeWindow wnd = new PassCodeWindow();
                wnd.ShowDialog();

                return PassCodeWindow.SCSPassword;
            }

            catch (System.Exception ex)
            {
                Logger.WriteEntry(LogLevel.Error, "Exception : " + ex.Message + ex.StackTrace);
                return "unknown";
            }
        }
Example #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="Ctrl"></param>
        /// <param name="CancelDefault"></param>
        void passwdbutton_Click(CommandBarButton Ctrl, ref bool CancelDefault)
        {
            try
            {
                PassCodeWindow wnd = new PassCodeWindow();
                wnd.ShowDialog();
            }

            catch (System.Exception ex)
            {
                Logger.WriteEntry(LogLevel.Error, "Exception :" + ex.GetType() + " " + ex.Message + " " + ex.StackTrace);
                MessageBox.Show(ex.Message);
            }
        }