Example #1
0
        private void btn_add_Colour_Click(object sender, EventArgs e)
        {
            FormAddColour colour = new FormAddColour("add", 0);

            colour.RefreshDgv += new FormAddColour.DoEvent(Load_DataColour);
            colour.ShowDialog(this);
        }
Example #2
0
 private void EditWarna_Click(object sender, EventArgs e)
 {
     if (id != 0)
     {
         FormAddColour colour = new FormAddColour("edit", id);
         colour.RefreshDgv += new FormAddColour.DoEvent(Load_DataColour);
         colour.ShowDialog(this);
     }
     else
     {
         MessageBox.Show("Silahkan Pilih Data Terlebih Dahulu", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }