Exemple #1
0
 private void customersItem_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     try
     {
         FormRicercaCliente c = new FormRicercaCliente();
         if (c.ShowDialog() == DialogResult.OK)
         {
             _navUtil.NavigateToControl(WIN.SCHEDULING_APP.GUI.Commands.CommandType.Contacts, c.SelectedCustomer.Id);
         }
         c.Dispose();
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }
Exemple #2
0
        //Pulsante nuova ricerca
        private void commandBar1_NewSearchCommandPressed(object sender, EventArgs e)
        {
            //try
            //{
            //    if (base.CheckBeforeNavigate())
            //        base.NavigateTo("Customers", true);
            //    //else
            //    //    _mainForm.NavigatorUtility.NavigateToPrevious();
            //}
            //catch (Exception ex)
            //{
            //    ErrorHandler.Show(ex);
            //}
            FormRicercaCliente c = new FormRicercaCliente();

            if (c.ShowDialog() == DialogResult.OK)
            {
                Hashtable ParameterList = new Hashtable();
                ParameterList.Add("Id", c.SelectedCustomer.Id);
                NavigateTo("Customers", ParameterList, true);
            }
            c.Dispose();
        }