Exemplo n.º 1
0
        private void PictureBox1_Click(object sender, EventArgs e)
        {
            employePanel EP = new employePanel();

            EP.Show();
            this.Close();
        }
Exemplo n.º 2
0
        private void buttonReturn_Click(object sender, EventArgs e)
        {
            employePanel EP = new employePanel();

            EP.Show();
            this.Close();
        }
Exemplo n.º 3
0
        private void listViewMedicines_SelectedIndexChanged(object sender, EventArgs e)
        {
            employePanel EP = new employePanel();

            EP.Show();

            EP.xmlName           = listViewMedicines.FocusedItem.SubItems[1].Text.ToString();
            EP.xmlCategory       = listViewMedicines.FocusedItem.SubItems[2].Text.ToString();
            EP.xmlMg             = double.Parse(listViewMedicines.FocusedItem.SubItems[3].Text.ToString());
            EP.xmlExperationDate = listViewMedicines.FocusedItem.SubItems[4].Text.ToString();
            EP.xmlAmount         = int.Parse(listViewMedicines.FocusedItem.SubItems[5].Text.ToString());
            EP.xmlCost           = double.Parse(listViewMedicines.FocusedItem.SubItems[6].Text.ToString());
            EP.xmlPrice          = double.Parse(listViewMedicines.FocusedItem.SubItems[7].Text.ToString());
            EP.xmlStatus         = listViewMedicines.FocusedItem.SubItems[8].Text.ToString();
            EP.xmlBarcodeNo      = ulong.Parse(listViewMedicines.FocusedItem.SubItems[9].Text.ToString());

            EP.labelMedicineName.Text = listViewMedicines.FocusedItem.SubItems[1].Text.ToString();
            EP.labelPrice.Text        = listViewMedicines.FocusedItem.SubItems[7].Text.ToString();
            EP.textBoxBarcodeNo.Text  = listViewMedicines.FocusedItem.SubItems[9].Text.ToString();
            EP.comboBoxAmount.Items.Clear();
            for (int i = 1; i <= int.Parse(listViewMedicines.FocusedItem.SubItems[5].Text.ToString()); i++)
            {
                EP.comboBoxAmount.Items.Add(i);
            }


            this.Close();
        }