Exemple #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();
    }
Exemple #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)
        {
        }
    }