Exemple #1
0
 private void emberekDGV_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 0)
     {
         InputWindow iw = new InputWindow(personDGV.SelectedCells[0].Value.ToString(), 3);
         iw.Show();
         iw.FormClosed += new FormClosedEventHandler(CloseAndUpdate);
     }
     else if (e.ColumnIndex == 1)
     {
         InputWindow iw = new InputWindow(personDGV.SelectedCells[0].Value.ToString(), 4);
         iw.Show();
         iw.FormClosed += new FormClosedEventHandler(CloseAndUpdate);
     }
 }
 private void gyogyszerBox_DoubleClick(object sender, EventArgs e)
 {
     if (medicineBox.SelectedItem != null)
     {
         DialogResult dialogResult = MessageBox.Show("Biztosan módositani szeretnéd a gyógyszer nevét?", " Figyelem! ", MessageBoxButtons.YesNo);
         if (dialogResult == DialogResult.Yes)
         {
             string selected = medicineBox.SelectedItem.ToString();
             medicineBox.Items.Clear();
             InputWindow iw = new InputWindow(selected, 1);
             iw.Show();
             iw.FormClosed += new FormClosedEventHandler(CloseAndUpdate);
             drMedicine     = m_myUp.ListBoxUploadMedDR(ref ErrMess);
             Utils.ListboxToltoDR(medicineBox, drMedicine);
         }
     }
 }
Exemple #3
0
        private void pelenkaBox_DoubleClick(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Biztosan módositani szeretnéd a pelenka nevét?", " Figyelem! ", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                if (pelenkaBox.SelectedIndex > -1)
                {
                    string torol = pelenkaBox.SelectedItem.ToString();
                    pelenkaBox.Items.Clear();
                    InputWindow iw = new InputWindow(torol, 2);
                    iw.Show();
                    iw.FormClosed += new FormClosedEventHandler(CloseAndUpdate);
                    drNappy        = m_myUp.ListBoxUploadNappyDR(ref ErrMess);
                    Utils.ListboxToltoDR(pelenkaBox, drNappy);
                }
            }
        }