/*
     * Delete
     */

    private void OnDeleteRecordSuccess(string data)
    {
        string[] values   = SA.Common.Data.Converter.ParseArray(data);
        int      dbId     = System.Convert.ToInt32(values[0]);
        int      recordId = System.Convert.ToInt32(values[1]);

        CK_Database db = CK_Database.GetDatabaseByInternalId(dbId);

        CK_RecordDeleteResult result = new CK_RecordDeleteResult(recordId);

        db.FireDeleteRecordResult(result);
    }
    private void OnDeleteRecordFailed(string data)
    {
        string[] DataArray = data.Split(new string[] { SA.Common.Data.Converter.DATA_SPLITTER2 }, StringSplitOptions.None);


        int         dbId = System.Convert.ToInt32(DataArray[0]);
        CK_Database db   = CK_Database.GetDatabaseByInternalId(dbId);


        string errorData             = DataArray[1];
        CK_RecordDeleteResult result = new CK_RecordDeleteResult(errorData);

        db.FireDeleteRecordResult(result);
    }