public void open_Report(object sender, RoutedEventArgs e) { cntrl.applicationIcon appName = (sender as cntrl.applicationIcon); string name = "Cognitivo.Reporting.Views." + appName.Uid; try { ApplicationWindow appWindow = new ApplicationWindow(); appWindow.appName = name; appWindow.Title = entity.Brillo.Localize.StringText(appName.Uid); appWindow.Icon = appName.imgSource; appWindow.Show(); } catch { } e.Handled = true; }
public void open_App(object sender, RoutedEventArgs e) { cntrl.applicationIcon appName = (sender as cntrl.applicationIcon); string name = appName.Tag.ToString(); if (Properties.Settings.Default.open_Window) { ApplicationWindow appWindow = new ApplicationWindow(); appWindow.appName = name; appWindow.Title = entity.Brillo.Localize.StringText(appName.Uid); appWindow.Icon = appName.imgSource; appWindow.Show(); } else { dynamic taskAuth = Task.Factory.StartNew(() => open_PageThread(name)); } e.Handled = true; }