Example #1
0
    protected void lbDelete_Click(object sender, EventArgs e)
    {
        LinkButton linkButton = new LinkButton();

        linkButton = (LinkButton)sender;
        bool result = MedicationTimeManager.DeleteMedicationTime(Convert.ToInt32(linkButton.CommandArgument));

        showMedicationTimeGrid();
    }
Example #2
0
    protected void lbDelete_Click(object sender, EventArgs e)
    {
        ImageButton linkButton = new ImageButton();

        linkButton = (ImageButton)sender;
        int id;

        id = Convert.ToInt32(linkButton.CommandArgument);

        MedicationTimeManager.DeleteMedicationTime(id);
        loadGrid();
    }