if(elementisnotStringHistoryElementelementString){thrownewException($"'{HandleInsertElementFromHistory}()' in {nameof(ConsoleViewModel)} got wrong type of element. Got Type: {element.GetType()}");}
// null element received => insert empty
if(element==null)
{
this.SendableMessage=string.Empty;
return;
}
// otherwise check type
if(elementisnotStringHistoryElementelementString)
{
thrownewException($"'{HandleInsertElementFromHistory}()' in {nameof(ConsoleViewModel)} got wrong type of element. Got Type: {element.GetType()}");
}
// overwrite sendable message with history element
if(elementisnotMultiFormatStringmfs){thrownewException($"'{HandleInsertElementFromHistory}()' in {nameof(SendReceiveViewModel)} got wrong type of element. Got Type: {element.GetType()}");}
// null element received => insert empty
if(element==null)
{
this.SendableData=newMultiFormatString();
return;
}
// otherwise check type
if(elementisnotMultiFormatStringmfs)
{
thrownewException($"'{HandleInsertElementFromHistory}()' in {nameof(SendReceiveViewModel)} got wrong type of element. Got Type: {element.GetType()}");