Exemplo n.º 1
0
 protected override void tsb_Edit_Click(object sender, EventArgs e)
 {
     if (fizlicoGridView.RowCount > 0)
     {
         try
         {
             frm_EditPartnersFiz frm_editPartnersFiz = new frm_EditPartnersFiz((int)this.fizlicoGridView.SelectedRows[0].Cells[0].Value, "EDIT");
             if (frm_editPartnersFiz.ShowDialog() == DialogResult.OK)
                 this.SetProperties();
         }
         catch { }
     }
 }
Exemplo n.º 2
0
        private void btn_NewPartner_Click(object sender, EventArgs e)
        {
            switch (EditType)
            {
                case "INS":
                    if (rb_Org.Checked)
                    {
                        frm_EditPartnerOrgs frm_editpartnerorgs =
                            new frm_EditPartnerOrgs(0, 0, "INS");
                        frm_editpartnerorgs.ShowDialog();
                    }
                    else
                    {
                        frm_EditPartnersFiz frm_editpartnerfiz =
                            new frm_EditPartnersFiz(0, "INS");
                        frm_editpartnerfiz.ShowDialog();
                    }

                    break;
                case "EDIT":
                    break;
                default:
                    MessageBox.Show("Ќеверный тип операции", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    break;
            }
        }
Exemplo n.º 3
0
 protected override void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
 {
     frm_EditPartnersFiz frm_editPartnersFiz = new frm_EditPartnersFiz(0, "INS");
     frm_editPartnersFiz.ShowDialog();
     this.SetProperties();
 }