/// <summary> /// Edit an existing scene /// </summary> /// <param name="name">LTX</param> /// <param name="number">BLK Nr.</param> /// <param name="param">Parameterauswahl</param> /// <param name="skSelect">Geräteauswahl</param> /// <param name="saveMode">Schreibmodus</param> public async Task <FehlerT> EditScene(string name, double number, PalEdit.Param param = PalEdit.Param.Default, PalEdit.SkSelect skSelect = PalEdit.SkSelect.Default, PalEdit.SMode saveMode = PalEdit.SMode.Default) { return(await EditPal( name, number, MlUtil.MlPalFlag.BLK, param, skSelect, saveMode, PalEdit.Cmd.Update ).ConfigureAwait(false)); }
/// <summary> /// Palettenbearbeitungskommando /// </summary> /// <param name="name">Palettenname</param> /// <param name="number">Palettennummer</param> /// <param name="type">Palettenkennung</param> /// <param name="param">Parameterauswahl fuer Create Paletten und BLK</param> /// <param name="select">Geraeteauswahl fuer Create BLK</param> /// <param name="smode">Schreibmodus fuer Create BLK</param> /// <param name="action">Das Bearbeitungskommando</param> public async Task <FehlerT> EditPal(string name, double number, MlUtil.MlPalFlag type, PalEdit.Param param = PalEdit.Param.Default, PalEdit.SkSelect select = PalEdit.SkSelect.Default, PalEdit.SMode smode = PalEdit.SMode.Default, PalEdit.Cmd action = PalEdit.Cmd.Create) { return(await QueryAsync(new PalEdit(action, new PalEdit.PalEditEntry(type, (short)(number * 10), 0, param, select, smode, name))).ConfigureAwait(false)); }