Exemplo n.º 1
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;
            Application.DoEvents();

            try
            {
                if (spotHandelDesisionSixtyDay == null)
                    spotHandelDesisionSixtyDay = new SpotHandelDesisionSixtyDay();

                GetEntity(spotHandelDesisionSixtyDay);

                Company company = new Company
                {
                    CompanyName = HandleComp.Text,
                };
                InvokeUtil.SystemService.UpdateCompanyByName(company);

                Officers officer1 = new Officers { OfficersName = OfficerName1.Text, CID = CID1.Text };
                InvokeUtil.SystemService.UpdateOfficersByArgs(officer1);

                Officers officer2 = new Officers { OfficersName = OfficerName2.Text, CID = CID2.Text };
                InvokeUtil.SystemService.UpdateOfficersByArgs(officer2);

                InvokeUtil.SystemService.EntityUpdate(spotHandelDesisionSixtyDay);
                CloseWindow();
            }
            catch (Exception ex)
            {
                CommonInvoke.ErrorMessageBox(ex);
            }

            UseWaitCursor = false;
        }
Exemplo n.º 2
0
 public frmSpotHandelDesisionSixtyDay(SpotHandelDesisionSixtyDay spotHandelDesisionSixtyDay)
     : this()
 {
     this.spotHandelDesisionSixtyDay = spotHandelDesisionSixtyDay;
 }