Пример #1
0
 /// <summary>
 /// Modo consulta
 /// </summary>
 /// <param name="pServiceConfiguration"><see cref="ServiceConfiguration"/></param>
 /// <returns></returns>
 internal static DialogResult ShowQuery(ServiceConfiguration pServiceConfiguration)
 {
     using (frmEdit wfrmEdit = new frmEdit())
     {
         wfrmEdit.ctrlService1.ShowAction  = Action.Query;
         wfrmEdit.ctrlService1.EntityParam = pServiceConfiguration;
         wfrmEdit.ctrlService1.Populate();
         wfrmEdit.btnSearchFile.Enabled = false;
         wfrmEdit.ShowDialog();
         wfrmEdit.Text = wfrmEdit.ctrlService1.Text;
         return(wfrmEdit.DialogResult);
     }
 }
Пример #2
0
        /// <summary>
        /// Modo consulta
        /// </summary>
        /// <param name="pServiceConfiguration"><see cref="ServiceConfiguration"/></param>
        /// <returns></returns>
        internal static DialogResult ShowQuery(ServiceConfiguration pServiceConfiguration)
        {
            using (frmEdit wfrmEdit = new frmEdit())
            {
                wfrmEdit.ctrlService1.ShowAction = Action.Query;
                wfrmEdit.ctrlService1.EntityParam = pServiceConfiguration;
                wfrmEdit.ctrlService1.Populate();
                wfrmEdit.btnSearchFile.Enabled = false;
                wfrmEdit.ShowDialog();
                wfrmEdit.Text = wfrmEdit.ctrlService1.Text;
                return wfrmEdit.DialogResult;

            }
        }