Example #1
0
        //private void UpdateAvailableViews()
        //{
        //    //SplashScreenItems ssi = new SplashScreenItems();

        //    //if (Common.UserMode.Basic)
        //    //{
        //    //    lc_Root.Background = Brushes.Transparent;

        //    //    cbe_SplashScreens.ItemsSource = ssi.Items.Where(um => um.UserMode.Basic); ;
        //    //}
        //    //else if (Common.UserMode.Advanced)
        //    //{
        //    //    //lc_Root.Background = new SolidColorBrush(Color.FromArgb(0x10, 0x00, 0xFF, 0xC7));
        //    //    lc_Root.Background = Brushes.Transparent;

        //    //    cbe_SplashScreens.ItemsSource = ssi.Items.Where(um => um.UserMode.Advanced);
        //    //}
        //    //else if (Common.UserMode.Administrator)
        //    //{
        //    //    lc_Root.Background = new SolidColorBrush(Color.FromArgb(0x7E, 0xFF, 0x01, 0x01));

        //    //    cbe_SplashScreens.ItemsSource = ssi.Items.Where(um => um.UserMode.Administrator);
        //    //}
        //    //else if (Common.UserMode.Beta)
        //    //{
        //    //    cbe_SplashScreens.ItemsSource = ssi.Items.Where(um => um.UserMode.Beta);
        //    //}
        //}

        #endregion

        private void OnTakeSnapshot_Click(object sender, ItemClickEventArgs e)
        {
            string snapShotType = (string)e.Item.Tag;

            switch (snapShotType)
            {
            case "Daily":
                SnapShot.TakeDaily();
                break;

            case "IntraDay":
                SnapShot.TakeIntraDay();
                break;

            case "Weekly":
                SnapShot.TakeWeekly();
                break;

            default:
                break;
            }

            MessageBox.Show(string.Format("Take{0}Snapshot", snapShotType));
        }