Beispiel #1
0
 private void editBtn_Click(object sender, EventArgs e)
 {
     if (!StartPage.Admin)
     {
         MessageBox.Show("You don't have rights to Edit", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         Receivings receivings = new Receivings();
         receivings.dateTimePicker1.Text = listView1.SelectedItems[0].SubItems[0].Text;
         receivings.payer.Text           = listView1.SelectedItems[0].SubItems[3].Text;
         receivings.fileno.Text          = listView1.SelectedItems[0].SubItems[1].Text;
         receivings.slipno.Text          = listView1.SelectedItems[0].SubItems[9].Text;
         receivings.receive.Text         = listView1.SelectedItems[0].SubItems[7].Text;
         receivings.remarks.Text         = listView1.SelectedItems[0].SubItems[10].Text;
         receivings.isUpdate             = true;
         receivings.Show();
         this.Close();
     }
 }
Beispiel #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            Receivings pay = new Receivings();

            pay.Show();
        }