aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/ShiftOS/Apps/ShifterStuff/SelectColor.cs
diff options
context:
space:
mode:
authorFloppyDiskDrive <[email protected]>2017-09-26 19:09:21 -0500
committerFloppyDiskDrive <[email protected]>2017-09-26 19:09:21 -0500
commit9c24aebd302435b9993dd495cea5898cd5872867 (patch)
tree998d4da8cf30c5a26c1f2bff77aa918222655c56 /ShiftOS.Main/ShiftOS/Apps/ShifterStuff/SelectColor.cs
parentdc7533184a88271bfd2a3aae299532ec7632144d (diff)
downloadshiftos-rewind-9c24aebd302435b9993dd495cea5898cd5872867.tar.gz
shiftos-rewind-9c24aebd302435b9993dd495cea5898cd5872867.tar.bz2
shiftos-rewind-9c24aebd302435b9993dd495cea5898cd5872867.zip
Began work on a crappy Skinning Engine; Shifter is removed until completed.
Diffstat (limited to 'ShiftOS.Main/ShiftOS/Apps/ShifterStuff/SelectColor.cs')
-rw-r--r--ShiftOS.Main/ShiftOS/Apps/ShifterStuff/SelectColor.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/ShiftOS.Main/ShiftOS/Apps/ShifterStuff/SelectColor.cs b/ShiftOS.Main/ShiftOS/Apps/ShifterStuff/SelectColor.cs
deleted file mode 100644
index 9062947..0000000
--- a/ShiftOS.Main/ShiftOS/Apps/ShifterStuff/SelectColor.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using ShiftOS.Engine.WindowManager;
-
-namespace ShiftOS.Main.ShiftOS.Apps
-{
- public partial class SelectColor : UserControl
- {
- ShiftWM shiftWM = new ShiftWM();
- Color finalColor;
- int colorType1;
- int colorType2;
- int colorType3;
- public SelectColor()
- {
- InitializeComponent();
-
- }
-
- private void btnSetColor_Click(object sender, EventArgs e)
- {
- try
- {
- colorType1 = Convert.ToInt32(textBox1.Text);
- colorType2 = Convert.ToInt32(textBox2.Text);
- colorType3 = Convert.ToInt32(textBox3.Text);
- }
- catch(Exception ex)
- {
- shiftWM.StartInfoboxSession("Error!", "Failed to parse integer. Error:\n" + ex, InfoboxTemplate.buttonType.OK);
- }
-
- if (colorType1 > 255 || colorType2 > 255 || colorType3 > 255)
- {
- shiftWM.StartInfoboxSession("Error!", "A value cannot be greater than 255!", InfoboxTemplate.buttonType.OK);
- }
- else
- {
- try
- {
- ShiftWindow sw = new ShiftWindow();
- finalColor = Color.FromArgb(colorType1, colorType2, colorType3);
- this.BackColor = finalColor;
- shiftWM.StartInfoboxSession("Success!", "Changed color to:\n" + colorType1.ToString() + ", " + colorType2.ToString() + ", " + colorType3.ToString() + ".", InfoboxTemplate.buttonType.OK);
- }
- catch (Exception ex)
- {
- shiftWM.StartInfoboxSession("Error!", "An error occured while setting the color.", InfoboxTemplate.buttonType.OK);
- }
- }
- }
- }
-}