public InstructionsPopup(string titleIn, string[] instructions) { try { blurApplication = new Transparent(); blurApplication.Show(); InitializeComponent(); title.Text = "Detailed Instructions - " + titleIn; if (instructions[0].Length > 0) Ins1.Text = "1) " + instructions[0]; if (instructions[1].Length > 0) Ins2.Text = "2) " + instructions[1]; if (instructions[2].Length > 0) Ins3.Text = "3) " + instructions[2]; this.ShowDialog(); } finally { if (blurApplication != null) blurApplication.Close(); } }
public bool ShowAlertScreen(bool importantReminder) { try { blurApplication = new Transparent(); blurApplication.Show(); InitializeComponent(); if (importantReminder) { txt_Message.Text = "There is something you must do right now."; btn_ImportantTask.Visibility = Visibility.Visible; dock_RegularTask.Visibility = Visibility.Hidden; } else { txt_Message.Text = "There is something you need to do."; btn_ImportantTask.Visibility = Visibility.Hidden; dock_RegularTask.Visibility = Visibility.Visible; } this.ShowDialog(); return showRegularTask; } finally { if (blurApplication != null) blurApplication.Close(); } }