Ejemplo n.º 1
0
 private void licitacionesToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         TenderForm frmTender = new TenderForm();
         frmTender.Show();
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
        private TenderForm GetTenderform(int selectedIndex)
        {
            TenderForm result = new TenderForm();

            foreach (IndexedTenderForm form in Bizz.IndexedTenderForms)
            {
                if (form.Index == selectedIndex)
                {
                    result = form;
                    break;
                }
            }

            return(new TenderForm(result.Id, result.Description));
        }
        private void ComboBoxTenderForm_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (ComboBoxTenderForm.SelectedIndex >= 0)
            {
                TenderForm tenderForm = new TenderForm((TenderForm)ComboBoxTenderForm.SelectedItem);
                if (CBZ.TempProject.TenderForm.Id != tenderForm.Id)
                {
                    CBZ.TempProject.TenderForm = tenderForm;

                    //Set CBZ.UcMainEdited
                    if (!CBZ.UcMainEdited)
                    {
                        CBZ.UcMainEdited = true;
                    }
                }
            }
            else
            {
                CBZ.TempProject.TenderForm = new TenderForm();
            }
        }