Ejemplo n.º 1
0
    protected void BackupsGridView_Delete(object sender, Bitrix.UI.BXDeleteEventArgs e)
    {
        BXGridView grid = (BXGridView)sender;

        try
        {
            File.Delete((string)e.Keys["FullName"]);
        }
        catch (Exception ex) { }

        dataSource = GetFiles();
        grid.MarkAsChanged();
    }
Ejemplo n.º 2
0
    protected void AgentGridView_Delete(object sender, Bitrix.UI.BXDeleteEventArgs e)
    {
        BXGridView grid = (BXGridView)sender;

        try
        {
            BXSchedulerAgent.Delete(e.Keys["ID"]);

            grid.MarkAsChanged();
        }
        catch (Exception ex)
        {
        }
    }