예제 #1
0
        public sealed override object ExecuteWithResult(string cmdStr)
        {
            try
            {
                CurDBE.DoExecuteNonQuery(cmdStr);
                NotifySuccessful();
            }
            catch (Exception ee)
            {
                NotifyError(ee.Message);
            }

            return(null);
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="cmdStr"></param>
        /// <returns></returns>
        public sealed override object ExecuteWithResult(string cmdStr)
        {
            try
            {
                int count = CurDBE.DoExecuteNonQuery(cmdStr);

                Debug.WriteLine("Current execute result is " + count);

                NotifySuccessfulAndRefreshClientUI();
            }
            catch (Exception ee)
            {
                NotifyError(ee.Message);
            }

            return(null);
        }