Esempio n. 1
0
        private void OnRowUpdating(object sender, VistaDBRowUpdatingEventArgs e)
        {
            StatementType type1;

            type1 = e.StatementType;

            switch (type1)
            {
            case StatementType.Insert:
                if (e.Command != null)
                {
                    return;
                }

                e.Command = insertCommand;
                RetrieveParameterValues(e.Command, e.Row);
                break;

            case StatementType.Update:
                if (e.Command != null)
                {
                    return;
                }

                e.Command = updateCommand;
                RetrieveParameterValues(e.Command, e.Row);
                break;

            case StatementType.Delete:
                if (e.Command != null)
                {
                    return;
                }

                e.Command = deleteCommand;
                RetrieveParameterValues(e.Command, e.Row);
                break;
            }
        }
		private void OnRowUpdating(object sender, VistaDBRowUpdatingEventArgs e)
		{
			StatementType type1;

			type1 = e.StatementType;

			switch(type1)
			{
				case StatementType.Insert:
					if (e.Command != null)
						return;

					e.Command = insertCommand;
					RetrieveParameterValues(e.Command, e.Row);
					break;
				case StatementType.Update:
					if (e.Command != null)
						return;

					e.Command = updateCommand;
					RetrieveParameterValues(e.Command, e.Row);
					break;

				case StatementType.Delete:
					if (e.Command != null)
						return;

					e.Command = deleteCommand;
					RetrieveParameterValues(e.Command, e.Row);
					break;
			}
		}