aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/TriPresent.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-05-20 11:05:58 -0600
committerAShifter <[email protected]>2017-05-20 11:05:58 -0600
commite248514bcfc42fa2b042ef6a39ae31b06871705d (patch)
tree5fbfce5c335897013beeaab61cc1de816c6d1e2d /ShiftOS.WinForms/Applications/TriPresent.cs
parentc0614c4f218d9ad071e8af3a2cad46d254a33b53 (diff)
downloadshiftos_thereturn-e248514bcfc42fa2b042ef6a39ae31b06871705d.tar.gz
shiftos_thereturn-e248514bcfc42fa2b042ef6a39ae31b06871705d.tar.bz2
shiftos_thereturn-e248514bcfc42fa2b042ef6a39ae31b06871705d.zip
Make a basic version of TriPresent work.
This version has one function: Adding labels. You can add labels with certain text colors, etc. Adding more features very soon.
Diffstat (limited to 'ShiftOS.WinForms/Applications/TriPresent.cs')
-rw-r--r--ShiftOS.WinForms/Applications/TriPresent.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/TriPresent.cs b/ShiftOS.WinForms/Applications/TriPresent.cs
index e16d4bd..d002329 100644
--- a/ShiftOS.WinForms/Applications/TriPresent.cs
+++ b/ShiftOS.WinForms/Applications/TriPresent.cs
@@ -53,5 +53,27 @@ namespace ShiftOS.WinForms.Applications
{
}
+
+ private void placeAdd_Click(object sender, EventArgs e)
+ {
+ Label label = new Label();
+ label.Parent = designerPanel;
+ label.BackColor = Color.Transparent;
+ label.ForeColor = panel1.BackColor;
+ label.Text = labelContents.Text;
+ label.Location = new Point(Convert.ToInt32(xPosition.Value), Convert.ToInt32(yPosition.Value));
+ label.Text = labelContents.Text;
+ Random rnd = new Random();
+ label.Name = labelContents.Text + rnd.Next(0, 500);
+ }
+
+ private void panel1_Click(object sender, EventArgs e)
+ {
+ AppearanceManager.SetupDialog(new ColorPicker(panel1.BackColor, "Text Color", new Action<Color>((col) =>
+ {
+ panel1.ForeColor = col;
+ panel1.BackColor = col;
+ })));
+ }
}
}