Esempio n. 1
0
        private void sgc_prod_RowDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowDoubleClickEventArgs e)
        {
            producto = sgc_prod.PrimaryGrid.GridPanel.GetSelectedRows().GetCells();

            if (producto.Count != 0)
            {
                this.Close();
            }
        }
Esempio n. 2
0
        private void gridZakazky_RowDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowDoubleClickEventArgs e)
        {
            DevComponents.DotNetBar.SuperGrid.GridRow selectedRow = (DevComponents.DotNetBar.SuperGrid.GridRow)e.GridRow;
            int cisloZakazky = Convert.ToInt32(selectedRow.Cells[1].Value);

            Properties.Settings.Default.CisloZakazky = cisloZakazky;
            Properties.Settings.Default.Save();
            if (System.Windows.Forms.Application.OpenForms["EditZakazky"] as EditZakazky != null)
            {
                MessageBox.Show("Formulár úprava zákazky je už otvorený");
            }
            else
            {
                EditZakazky EditZakazky = new EditZakazky();
                EditZakazky.ShowDialog();
            }
        }
Esempio n. 3
0
 private void g_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e)
 {
     txtName.Enabled = true;
     dtFrom.Enabled = true;
     dtTo.Enabled = true;
     tv.Enabled = true;
     btnCancel.Enabled = true;
     btnSave.Enabled = true;
     bDateStartChosen = false;
     bDateFinishChosen = false;
     g.Enabled = false;
     bDateFinishChosen = true;
     bDateStartChosen = true;
 }
Esempio n. 4
0
        /// <summary>
        /// Handles invocation of RowInfoDoubleClick events
        /// </summary>
        internal void DoRowInfoDoubleClickEvent(GridRow gridRow, MouseEventArgs e)
        {
            if (RowInfoDoubleClick != null)
            {
                GridRowDoubleClickEventArgs ev = new
                    GridRowDoubleClickEventArgs(gridRow.GridPanel, gridRow, RowArea.InRowInfo, e);

                RowInfoDoubleClick(this, ev);
            }
        }
Esempio n. 5
0
 private void gContacts_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e)
 {
     EnableContact();
 }
Esempio n. 6
0
        /// <summary>
        /// Handles invocation of RowDoubleClick events
        /// </summary>
        internal bool DoRowDoubleClickEvent(GridRow row, RowArea rowArea, MouseEventArgs e)
        {
            if (RowDoubleClick != null)
            {
                GridRowDoubleClickEventArgs ev = new
                    GridRowDoubleClickEventArgs(row.GridPanel, row, rowArea, e);

                RowDoubleClick(this, ev);

                return (ev.Cancel);
            }

            return (false);
        }
Esempio n. 7
0
 private void gCompanies_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e)
 {
     EnableCompany();
 }
Esempio n. 8
0
 private void gEnquiries_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e)
 {
     EnableEnquiry();
 }
Esempio n. 9
0
        private void gBookings_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e)
        {
            if (e.GridRow.RowIndex > -1 && e.MouseEventArgs.Button == MouseButtons.Left && gBookings.PrimaryGrid.Rows[e.GridRow.RowIndex].Tag != null)
            {
                SharedData.iBookingID = Convert.ToInt32(gBookings.PrimaryGrid.Rows[e.GridRow.RowIndex].Tag);

                Form frmBooking = new frmBooking();
                DialogResult dlg = frmBooking.ShowDialog();
                if (dlg == DialogResult.OK && SharedData.iBookingID > 0 && SharedData.dSchedule.Count > 0)
                {
                    LoadBookings();
                }

                SharedData.iBookingID = 0;
            }
        }
Esempio n. 10
0
 private void gItems_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e)
 {
     EnableItem();
 }
Esempio n. 11
0
 private void gInspections_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e)
 {
     EnableInspection();
 }