diff options
| author | AShifter <[email protected]> | 2017-05-20 13:14:59 -0600 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-05-20 13:33:13 -0600 |
| commit | 328f62b67c453419c47880bb9937526d7d2b2d59 (patch) | |
| tree | defcd50bc1e1bf929ccf283d6994461abb828c3e /ShiftOS.WinForms/Applications/TriPresent.cs | |
| parent | 64dbc45739f90f6a5e143aef9c3530566b2fc8ce (diff) | |
| download | shiftos_thereturn-328f62b67c453419c47880bb9937526d7d2b2d59.tar.gz shiftos_thereturn-328f62b67c453419c47880bb9937526d7d2b2d59.tar.bz2 shiftos_thereturn-328f62b67c453419c47880bb9937526d7d2b2d59.zip | |
Add more features to TriPresent
yoy!
Diffstat (limited to 'ShiftOS.WinForms/Applications/TriPresent.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/TriPresent.cs | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/ShiftOS.WinForms/Applications/TriPresent.cs b/ShiftOS.WinForms/Applications/TriPresent.cs index d002329..dee7fda 100644 --- a/ShiftOS.WinForms/Applications/TriPresent.cs +++ b/ShiftOS.WinForms/Applications/TriPresent.cs @@ -9,6 +9,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using ShiftOS.Engine; +using System.Threading; namespace ShiftOS.WinForms.Applications { @@ -26,17 +27,18 @@ namespace ShiftOS.WinForms.Applications private void addLabelToolStripMenuItem_Click(object sender, EventArgs e) { addItemLabel.Text = "Add Label"; - AddItem.Show(); + addLabel.Show(); } private void button2_Click(object sender, EventArgs e) { - AddItem.Hide(); + addLabel.Hide(); } public void OnLoad() { - + panel1.ForeColor = Color.Black; + panel1.BackColor = Color.Black; } public void OnSkinLoad() @@ -56,15 +58,7 @@ 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) @@ -75,5 +69,19 @@ namespace ShiftOS.WinForms.Applications panel1.BackColor = col; }))); } + + private void designerPanel_Click(object sender, EventArgs e) + { + if (addLabel.Visible == true) + { + Label label = new Label(); + label.Parent = designerPanel; + label.BackColor = Color.Transparent; + label.ForeColor = panel1.BackColor; + label.Text = labelContents.Text; + label.Location = new Point(Cursor.Position.X / 3, Cursor.Position.Y); + label.Text = labelContents.Text; + } + } } } |
