public Tint ( Color color ) : |
||
color | Color |
/// The |
Результат |
private void ObviouslyTurnUpOnAuth_Load(object sender, EventArgs e) { // For better graphical effects and less flickering, introduce double buffering and better background image usage this.BackgroundImageLayout = ImageLayout.None; DoubleBufferManipulation.SetDoubleBuffered(panel1); this.BackgroundImage = Image.FromFile(Properties.Settings.Default.lock_path[Properties.Settings.Default.whoIsThisCrazyDoge]); accountName.Text = Properties.Settings.Default.username[Properties.Settings.Default.whoIsThisCrazyDoge]; enterButton.BackColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); accountImg.BackgroundImage = Image.FromFile(Properties.Settings.Default.userimgacc_path[Properties.Settings.Default.whoIsThisCrazyDoge]); // Huge shoutout to the makers of the ImageProcessor library for this one. ImageFactory imgf = new ImageFactory(); Properties.Resources._20pertrans_lighterGray.Save("C:\\ProjectSnowshoes\\loginbacktemp.png"); imgf.Load("C:\\ProjectSnowshoes\\loginbacktemp.png"); imgf.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); panel1.BackgroundImage = imgf.Image; }
private void CustomSearchImplementationOne_Load(object sender, EventArgs e) { this.Left = slidingBarWidthTakenIn; this.Height = Screen.PrimaryScreen.WorkingArea.Height; this.Top = 0; this.Width = Screen.PrimaryScreen.WorkingArea.Width - slidingBarWidthTakenIn; ImageFactory imgfBack = new ImageFactory(); imgfBack.Load(@"C:\ProjectSnowshoes\System\Media\blackBackSearch.png"); imgfBack.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); this.BackgroundImage = imgfBack.Image; }
private void colorizationsOfScience(Color theColorWow) { accountName.ForeColor = theColorWow; accInfo_text.ForeColor = theColorWow; space_text.ForeColor = theColorWow; otherAcc_text.ForeColor = theColorWow; accInf_1.ForeColor = theColorWow; ImageFactory guessWhosBack = new ImageFactory(); guessWhosBack.Load(@"C:\ProjectSnowshoes\System\Media\ResourcesMore\PersonOfScience.png"); guessWhosBack.Tint(theColorWow); accInfo_img.BackgroundImage = guessWhosBack.Image; guessWhosBack.Load(@"C:\ProjectSnowshoes\System\Media\ResourcesMore\Solar.png"); guessWhosBack.Tint(theColorWow); space_img.BackgroundImage = guessWhosBack.Image; guessWhosBack.Load(@"C:\ProjectSnowshoes\System\Media\ResourcesMore\MorePeople.png"); guessWhosBack.Tint(theColorWow); otherAcc_img.BackgroundImage = guessWhosBack.Image; }
private void otherAccItems_MouseLeave(object sender, EventArgs e) { otherAcc.BackColor = Color.Transparent; ImageFactory guessWhosBackA = new ImageFactory(); guessWhosBackA.Load(@"C:\ProjectSnowshoes\System\Media\ResourcesMore\MorePeople.png"); guessWhosBackA.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); otherAcc_img.BackgroundImage = guessWhosBackA.Image; otherAcc_text.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); }
private void CaptureLayer() { SetFlashFill(captureIndex); flashStoryboard.Begin(this); switch (captureIndex) { case 0: capture1Storyboard.Begin(this); break; case 1: capture2Storyboard.Begin(this); break; case 2: capture3Storyboard.Begin(this); break; default: break; } RenderTargetBitmap renderBitmap = new RenderTargetBitmap((int)CompositeImage.ActualWidth, (int)CompositeImage.ActualHeight, 96.0, 96.0, PixelFormats.Pbgra32); DrawingVisual dv = new DrawingVisual(); using (DrawingContext dc = dv.RenderOpen()) { VisualBrush brush = new VisualBrush(CompositeImage); dc.DrawRectangle(brush, null, new Rect(new System.Windows.Point(), new System.Windows.Size(CompositeImage.ActualWidth, CompositeImage.ActualHeight))); } renderBitmap.Render(dv); byte[] encoded; using (MemoryStream stream = new MemoryStream()) { var encoder = new PngBitmapEncoder(); encoder.Frames.Add(BitmapFrame.Create(renderBitmap)); encoder.Save(stream); encoded = stream.ToArray(); } BitmapImage processed = new BitmapImage(); double opacity = 1; using (MemoryStream stream = new MemoryStream()) { using (ImageProcessor.ImageFactory imageFactory = new ImageProcessor.ImageFactory(false)) { imageFactory.Load(encoded); imageFactory.Filter(ImageProcessor.Imaging.Filters.Photo.MatrixFilters.BlackWhite); switch (captureIndex) { case 0: break; case 1: imageFactory.Tint(System.Drawing.Color.Magenta); opacity = .4; break; case 2: imageFactory.Tint(System.Drawing.Color.Cyan); opacity = .3; break; case 3: imageFactory.Tint(System.Drawing.Color.Yellow); opacity = .2; break; default: break; } imageFactory.Save(stream); } processed.BeginInit(); processed.CacheOption = BitmapCacheOption.OnLoad; processed.StreamSource = stream; processed.EndInit(); } System.Windows.Controls.Image image = new System.Windows.Controls.Image() { Source = processed, Stretch = Stretch.None, Opacity = opacity }; CompositeLayers.Children.Add(image); }
private void SlidingMenuBar_Load(object sender, EventArgs e) { userName.Text = Properties.Settings.Default.nickname[Properties.Settings.Default.whoIsThisCrazyDoge]; userEmail.Text = Properties.Settings.Default.emailList[Properties.Settings.Default.whoIsThisCrazyDoge]; apps.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); documents.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); pictures.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); search.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); ImageFactory moveThatTint = new ImageFactory(); moveThatTint.Load(Properties.Settings.Default.userimgacc_path[Properties.Settings.Default.whoIsThisCrazyDoge]); moveThatTint.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); infoPanel.BackgroundImage = moveThatTint.Image; moveThatTint.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\XIco.png"); moveThatTint.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); turnOffImage.BackgroundImage = moveThatTint.Image; turnOffLabel.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); turnOffImage.BackgroundImageLayout = ImageLayout.Zoom; turnOffImage.Top = 5; turnOffLabel.Top = 5; turnOffImage.Height = 40; turnOffLabel.Height = 40; turnOffPanel.Top = 0; turnOffPanel.Height = 50; turnOffLabel.TextAlign = ContentAlignment.MiddleLeft; turnOffImage.Width = 40; turnOffLabel.Width = 100; turnOffImage.Left = this.Width - (this.Width / 2) - 70; turnOffLabel.Left = turnOffImage.Left + 45; turnOffLabel.Font = new System.Drawing.Font("Roboto Light", 14); /*ImageFactory anotherTint = new ImageFactory(); anotherTint.Load(Properties.Settings.Default.lock_path[Properties.Settings.Default.whoIsThisCrazyDoge]); anotherTint.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); notifPanel.BackgroundImage = anotherTint.Image;*/ notifPanel.BackColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); this.Left = 0; const int AW_SLIDE = 0X40000; const int AW_HOR_POSITIVE = 0X1; this.Top = 0; this.Height = Screen.PrimaryScreen.WorkingArea.Height; infoPanel.Height = 144; notifPanel.Left = 0; notifPanel.Top = 50; notifPanel.Height = 186; notifPanel.Width = this.Width; thatBridgeTho.Left = 10; thatBridgeTho.Height = notifPanel.Height; thatBridgeTho.Width = 90; notifTitle.Left = 106; notifTitle.Width = notifPanel.Width - 106; notifTitle.Height = 30; notifTitle.TextAlign = ContentAlignment.MiddleLeft; notifTitle.Font = new System.Drawing.Font("Roboto", 18); notifSubtitle.Left = 106; notifSubtitle.Width = notifPanel.Width - 106; notifTitle.Height = 60; notifTitle.Font = new System.Drawing.Font("Roboto Light", 12); notifTitle.TextAlign = ContentAlignment.TopLeft; int remainingSpace = this.Height - 380; search.Height = pictures.Height = documents.Height = apps.Height = remainingSpace / 4; search.Top = notifPanel.Bottom; pictures.Top = search.Bottom; documents.Top = pictures.Bottom; apps.Top = documents.Bottom; double oneOfThemMischeviousHeights = 0.2 * search.Height; // Looks like we obviously like pictures more than anything here. int hmmmmThatWasThePlanWellIMeanSureQuestionMark = (int)oneOfThemMischeviousHeights; search.Font = new System.Drawing.Font("Pacifico", hmmmmThatWasThePlanWellIMeanSureQuestionMark); pictures.Font = new System.Drawing.Font("Pacifico", hmmmmThatWasThePlanWellIMeanSureQuestionMark); documents.Font = new System.Drawing.Font("Pacifico", hmmmmThatWasThePlanWellIMeanSureQuestionMark); apps.Font = new System.Drawing.Font("Pacifico", hmmmmThatWasThePlanWellIMeanSureQuestionMark); // Omg these people better be getting credit they have saved you so much ImageFactory yepAnotherOneHiFriendsHowAreYouImageFactory = new ImageFactory(); yepAnotherOneHiFriendsHowAreYouImageFactory.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\AppsIco.png"); yepAnotherOneHiFriendsHowAreYouImageFactory.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); apps.Image = yepAnotherOneHiFriendsHowAreYouImageFactory.Image; search.Image = yepAnotherOneHiFriendsHowAreYouImageFactory.Image; documents.Image = yepAnotherOneHiFriendsHowAreYouImageFactory.Image; pictures.Image = yepAnotherOneHiFriendsHowAreYouImageFactory.Image; // User32 and StackOverflow persons, you da real MVPs. AnimateWindow(this.Handle, 100, AW_SLIDE | AW_HOR_POSITIVE); }
private void barItem_MouseLeave(object sender, EventArgs e) { if (sender.Equals(search)) { search.BackColor = Color.Transparent; search.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); ImageFactory yepAnotherOneHiFriendsHowAreYouImageFactory = new ImageFactory(); yepAnotherOneHiFriendsHowAreYouImageFactory.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\AppsIco.png"); yepAnotherOneHiFriendsHowAreYouImageFactory.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); search.Image = yepAnotherOneHiFriendsHowAreYouImageFactory.Image; } if (sender.Equals(pictures)) { pictures.BackColor = Color.Transparent; pictures.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); ImageFactory yepAnotherOneHiFriendsHowAreYouImageFactory = new ImageFactory(); yepAnotherOneHiFriendsHowAreYouImageFactory.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\AppsIco.png"); yepAnotherOneHiFriendsHowAreYouImageFactory.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); pictures.Image = yepAnotherOneHiFriendsHowAreYouImageFactory.Image; } if (sender.Equals(documents)) { documents.BackColor = Color.Transparent; documents.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); ImageFactory yepAnotherOneHiFriendsHowAreYouImageFactory = new ImageFactory(); yepAnotherOneHiFriendsHowAreYouImageFactory.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\AppsIco.png"); yepAnotherOneHiFriendsHowAreYouImageFactory.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); documents.Image = yepAnotherOneHiFriendsHowAreYouImageFactory.Image; } if (sender.Equals(apps)) { apps.BackColor = Color.Transparent; apps.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); ImageFactory yepAnotherOneHiFriendsHowAreYouImageFactory = new ImageFactory(); yepAnotherOneHiFriendsHowAreYouImageFactory.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\AppsIco.png"); yepAnotherOneHiFriendsHowAreYouImageFactory.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); apps.Image = yepAnotherOneHiFriendsHowAreYouImageFactory.Image; } }
private void turnOffElement_MouseLeave(object sender, EventArgs e) { turnOffPanel.BackColor = Color.Transparent; ImageFactory moreTintingAreYouSerious = new ImageFactory(); moreTintingAreYouSerious.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\XIco.png"); moreTintingAreYouSerious.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); turnOffImage.BackgroundImage = moreTintingAreYouSerious.Image; turnOffLabel.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); }
private void ohThatThingYeahDoThatThanksFriend() { if (weKnowWhatThisIs.Text == Properties.Settings.Default.woahThereHello[Properties.Settings.Default.whoIsThisCrazyDoge]) { if (Properties.Settings.Default.loggedIn[Properties.Settings.Default.whoIsThisCrazyDoge] == "false") { Space spaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaace = new Space(); spaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaace.Show(); spaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaace.BringToFront(); Properties.Settings.Default.loggedIn[Properties.Settings.Default.whoIsThisCrazyDoge] = "true"; this.Close(); } else { this.Close(); } } else { weKnowWhatThisIs.Text = ""; ImageFactory imgg = new ImageFactory(); Properties.Resources._20pertrans_lighterGray.Save("C:\\ProjectSnowshoes\\loginbacktempa.png"); imgg.Load("C:\\ProjectSnowshoes\\loginbacktempa.png"); imgg.Tint(Color.DarkRed); panel1.BackgroundImage = imgg.Image; pwdWarning.Visible = true; } }
private void MinervaIntegrated_Load(object sender, EventArgs e) { lookAtMinervaSoSassy.Image.Save(@"C:\ProjectSnowshoes\MinervaOrigin.png"); ImageFactory yetAnotherImgPro = new ImageFactory(); yetAnotherImgPro.Load(@"C:\ProjectSnowshoes\MinervaOrigin.png"); yetAnotherImgPro.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); lookAtMinervaSoSassy.Image = yetAnotherImgPro.Image; minervaResponse.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); minervaResponse.Font = new System.Drawing.Font(Properties.Settings.Default.fontsOfScience[Properties.Settings.Default.whoIsThisCrazyDoge], 16, FontStyle.Regular); query.Height = query.Height + 10; enterQuery.Height = query.Height; query.Top = this.Height - query.Height; enterQuery.Top = this.Height - enterQuery.Height; this.Top = 0; this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width; this.Height = Screen.PrimaryScreen.WorkingArea.Height; if (System.DateTime.Now.Hour < 4) { minervaResponse.Text = "Good...morning! \n \nYou're up so late, you awoke me from sleep. Up late doing more Snowshoes development, I see?"; } else if (System.DateTime.Now.Hour > 4 && System.DateTime.Now.Hour < 10) { minervaResponse.Text = "Top of the morning to you, " + Properties.Settings.Default.nickname[Properties.Settings.Default.whoIsThisCrazyDoge] + "!"; } else if (System.DateTime.Now.Hour > 10 && System.DateTime.Now.Hour < 14) { minervaResponse.Text = "Good day, " + Properties.Settings.Default.nickname[Properties.Settings.Default.whoIsThisCrazyDoge] + "!"; } else if (System.DateTime.Now.Hour > 14 && System.DateTime.Now.Hour < 17) { minervaResponse.Text = "Good afternoon, " + Properties.Settings.Default.nickname[Properties.Settings.Default.whoIsThisCrazyDoge] + "!"; } else if (System.DateTime.Now.Hour > 17) { minervaResponse.Text = "Good evening, " + Properties.Settings.Default.nickname[Properties.Settings.Default.whoIsThisCrazyDoge] + "!"; } const int AW_SLIDE = 0X40000; const int AW_HOR_POSITIVE = 0X2; // User32 and StackOverflow persons, you da real MVPs. AnimateWindow(this.Handle, 100, AW_SLIDE | AW_HOR_POSITIVE); }
private void SlidingMenuBarPostEG_Load(object sender, EventArgs e) { this.Left = 0; this.Width = 145; this.Height = 615; this.Top = Screen.PrimaryScreen.WorkingArea.Height - 615; youYouSillyGooseDoge.BackgroundImage = Image.FromFile(Properties.Settings.Default.userimgacc_path[Properties.Settings.Default.whoIsThisCrazyDoge]); youYouSillyGooseDoge.Height = 145; youYouSillyGooseDoge.Width = 145; youYouSillyGooseDoge.Left = 0; settingsImage.Top = 155; turnOffImage.Top = 155; lockImage.Top = 155; /*appsPanel.Top = this.Height - 125; docPanel.Top = this.Height - 250; picPanel.Top = this.Height - 375; searchPanel.Top = this.Height - 500;*/ appsPanel.Height = docPanel.Height = picPanel.Height = searchPanel.Height = 100; appsPanel.Top = 200; docPanel.Top = 305; picPanel.Top = 410; searchPanel.Top = 515; appsPanel.Width = docPanel.Width = picPanel.Width = searchPanel.Width = this.Width; appsText.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); docText.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); picText.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); searchText.ForeColor = Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge]); ImageFactory tintItGood = new ImageFactory(); tintItGood.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\XIco.png"); tintItGood.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); turnOffImage.Image = tintItGood.Image; tintItGood.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\AppsIco.png"); tintItGood.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); appsImg.Image = j = tintItGood.Image; tintItGood.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\DocsAgain.png"); tintItGood.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); docImg.Image = k = tintItGood.Image; tintItGood.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\Images.png"); tintItGood.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); picImg.Image = l = tintItGood.Image; tintItGood.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\Search.png"); tintItGood.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); searchImg.Image = m = tintItGood.Image; tintItGood.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\GearSmallAww.png"); tintItGood.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); settingsImage.Image = tintItGood.Image; tintItGood.Load(@"C:\ProjectSnowshoes\System\Media\SlidingMenuBar\Lock.png"); tintItGood.Tint(Color.FromName(Properties.Settings.Default.custColor[Properties.Settings.Default.whoIsThisCrazyDoge])); lockImage.Image = tintItGood.Image; this.Left = 0; const int AW_SLIDE = 0X40000; const int AW_VER_POSITIVE = 0x8; // User32 and StackOverflow persons, you da real MVPs. AnimateWindow(this.Handle, 200, AW_SLIDE | AW_VER_POSITIVE); }
private void themStylesTho(object sender, EventArgs e) { Properties.Resources._20pertrans_lighterGray.Save("C:\\ProjectSnowshoes\\mttemp.png"); if (sender == u0 || sender == up0) { ImageFactory imgf = new ImageFactory(); imgf.Load("C:\\ProjectSnowshoes\\mttemp.png"); this.BackgroundImage = Image.FromFile(Properties.Settings.Default.lock_path[0]); imgf.Tint(Color.FromName(Properties.Settings.Default.custColor[0])); //imgf.Save("C:\\ProjectSnowshoes\\mttemp0.png"); panel1.BackgroundImage = imgf.Image; u0.ForeColor = Color.White; u1.ForeColor = Color.Gray; u2.ForeColor = Color.Gray; u3.ForeColor = Color.Gray; u4.ForeColor = Color.Gray; } else if (sender == u1 || sender == up1) { ImageFactory imgg = new ImageFactory(); imgg.Load("C:\\ProjectSnowshoes\\mttemp.png"); this.BackgroundImage = Image.FromFile(Properties.Settings.Default.lock_path[1]); imgg.Tint(Color.FromName(Properties.Settings.Default.custColor[1])); //imgg.Save("C:\\ProjectSnowshoes\\mttemp1.png"); panel1.BackgroundImage = imgg.Image; u1.ForeColor = Color.White; u0.ForeColor = Color.Gray; u2.ForeColor = Color.Gray; u3.ForeColor = Color.Gray; u4.ForeColor = Color.Gray; } else if (sender == u2 || sender == up2) { ImageFactory imgi = new ImageFactory(); imgi.Load("C:\\ProjectSnowshoes\\mttemp.png"); this.BackgroundImage = Image.FromFile(Properties.Settings.Default.lock_path[2]); imgi.Tint(Color.FromName(Properties.Settings.Default.custColor[2])); //imgi.Save("C:\\ProjectSnowshoes\\mttemp2.png"); panel1.BackgroundImage = imgi.Image; u2.ForeColor = Color.White; u1.ForeColor = Color.Gray; u0.ForeColor = Color.Gray; u3.ForeColor = Color.Gray; u4.ForeColor = Color.Gray; } else if (sender == u3 || sender == up3) { ImageFactory imgh = new ImageFactory(); imgh.Load("C:\\ProjectSnowshoes\\mttemp.png"); this.BackgroundImage = Image.FromFile(Properties.Settings.Default.lock_path[3]); imgh.Tint(Color.FromName(Properties.Settings.Default.custColor[3])); //imgh.Save("C:\\ProjectSnowshoes\\mttemp3.png"); panel1.BackgroundImage = imgh.Image; u3.ForeColor = Color.White; u1.ForeColor = Color.Gray; u2.ForeColor = Color.Gray; u0.ForeColor = Color.Gray; u4.ForeColor = Color.Gray; } else if (sender == u4 || sender == up4) { ImageFactory imgj = new ImageFactory(); imgj.Load("C:\\ProjectSnowshoes\\mttemp.png"); this.BackgroundImage = Image.FromFile(Properties.Settings.Default.lock_path[4]); imgj.Tint(Color.FromName(Properties.Settings.Default.custColor[4])); //imgj.Save("C:\\ProjectSnowshoes\\mttemp4.png"); panel1.BackgroundImage = imgj.Image; u4.ForeColor = Color.White; u1.ForeColor = Color.Gray; u2.ForeColor = Color.Gray; u3.ForeColor = Color.Gray; u0.ForeColor = Color.Gray; } }