private void DialogServiceDialogStateChanged(object sender, Coddee.Services.Dialogs.IDialog e)
        {
            var dialog = e as DialogContainerViewModel;

            switch (e.State)
            {
            case DialogState.Active:
                Dialogs.RemoveIfExists(dialog);
                break;

            case DialogState.Minimized:
                if (!Dialogs.Contains(dialog))
                {
                    Dialogs.Add(dialog);
                }
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
        private void DialogClosed(object sender, Coddee.Services.Dialogs.IDialog e)
        {
            var dialog = e as DialogContainerViewModel;

            Dialogs.RemoveIfExists(dialog);
        }