public void GoToPacienteShell(string id)
        {
            var data = new Dictionary <string, object>();

            data.Add(Infrastructure.Defaults.SwitchShellIdPaciente, id);
            data.Add(Infrastructure.Defaults.SwitchShellViewName, "Module1.View1");
            shellNavigationHelper.SwitchShell(ShellType.PacienteShell, data);
        }
Example #2
0
        void PacienteShell_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (Application.Current.MainWindow != null)
            {
                ShellNavigationHelper shellNavigationHelper = this.Container.GetExportedValue <ShellNavigationHelper>();
                shellNavigationHelper.SwitchShell(ShellType.ProfesionalShell);

                e.Cancel = true;
            }
        }