Beispiel #1
0
        private void SetMicBackground(bool flag = true)
        {
            WebAccess WObj = new WebAccess();

            if (flag)
            {
                WObj.mic       = WebAccessPath.MicPath;
                MicBtn.ToolTip = "MicOff";
            }
            else
            {
                WObj.mic       = WebAccessPath.MicOffPath;
                MicBtn.ToolTip = "MicOn";
            }

            WObj.google    = WebAccessPath.GooglePath;
            WObj.youtube   = WebAccessPath.YoutubePath;
            WObj.gmail     = WebAccessPath.GmailPath;
            WObj.drive     = WebAccessPath.DrivePath;
            WObj.github    = WebAccessPath.GithubPath;
            WObj.facebook  = WebAccessPath.FacebookPath;
            WObj.flash     = WebAccessPath.FlashPath;
            WObj.instagram = WebAccessPath.InstaPath;

            cmd_btns_grid.DataContext = WObj;
        }
Beispiel #2
0
        void setBackgrounds()
        {
            // ImageBehavior.SetAnimatedSource(gideon_background, (ImageSource)new ImageSourceConverter().ConvertFromString(getBackground()));
            //    remainder_grid.Background = new ImageBrush(new BitmapImage(new Uri(robj.getBackground())));
            dateButtonUp.Background  = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/up_arrow.png")));
            monthButtonUp.Background = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/up_arrow.png")));
            yearButtonUp.Background  = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/up_arrow.png")));

            hourButtonUp.Background     = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/up_arrow.png")));
            minuteButtonUp.Background   = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/up_arrow.png")));
            secondButtonUp.Background   = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/up_arrow.png")));
            meridateButtonUp.Background = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/up_arrow.png")));

            dateButtonDown.Background  = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/down_arrow.png")));
            monthButtonDown.Background = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/down_arrow.png")));
            yearButtonDown.Background  = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/down_arrow.png")));

            hourButtonDown.Background     = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/down_arrow.png")));
            minuteButtonDown.Background   = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/down_arrow.png")));
            secondButtonDown.Background   = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/down_arrow.png")));
            meridateButtonDown.Background = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + "/images/down_arrow.png")));


            //Next.Content = new Image { Source = new BitmapImage(new Uri(MediaPath.Next)) };
            //Previous.Content = new Image { Source = new BitmapImage(new Uri(MediaPath.Prev)) };
            //PlayOrPause.Content = new Image { Source = new BitmapImage(new Uri(MediaPath.Play)) };
            WebAccess WObj = new WebAccess();

            WObj.google    = WebAccessPath.GooglePath;
            WObj.youtube   = WebAccessPath.YoutubePath;
            WObj.gmail     = WebAccessPath.GmailPath;
            WObj.drive     = WebAccessPath.DrivePath;
            WObj.github    = WebAccessPath.GithubPath;
            WObj.facebook  = WebAccessPath.FacebookPath;
            WObj.mic       = WebAccessPath.MicPath;
            WObj.flash     = WebAccessPath.FlashPath;
            WObj.instagram = WebAccessPath.InstaPath;

            cmd_btns_grid.DataContext = WObj;
        }