示例#1
0
        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();
            }
        }
示例#2
0
        //SpeechSynthesizer s;
        public Help(bool enableBlurring)
        {
            try
            {
                if (enableBlurring)
                {
                    blurApplication = new Transparent();
                    blurApplication.Show();
                }

                InitializeComponent();
                this.ShowDialog();
            }
            catch (Exception ex)
            {
            }
            finally
            {
                if (blurApplication != null)
                    blurApplication.Close();

                //if (s != null)
                //    s.Dispose();
            }
        }
示例#3
0
        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();
            }
        }