-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm2.cs
More file actions
47 lines (43 loc) · 1.58 KB
/
Copy pathForm2.cs
File metadata and controls
47 lines (43 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DYT_CS
{
public partial class Form2 : Form
{
private string taskName;
private string taskTime;
private string taskPriority;
private string taskDesc;
public Form2(string taskName, string taskTime, string taskPriority, string taskDesc)
{
InitializeComponent();
this.taskName = taskName;
this.taskTime = taskTime;
this.taskPriority = taskPriority;
this.taskDesc = taskDesc;
this.Text = $"DoYourTask - {taskName}";
}
private void Form2_Load(object sender, EventArgs e)
{
guna2HtmlLabel2.Text = $"<span style='color: #2a654c; font-weight: bold;'>Task name:</span> {taskName}<br/>" +
$"<span style='color: #2a654c; font-weight: bold;'>Task description:</span> {taskDesc}<br/>" +
$"<span style='color: #2a654c; font-weight: bold;'>Due date:</span> {taskTime}<br/>" +
$"<span style='color: #2a654c; font-weight: bold;'>Task priority:</span> {taskPriority}";
}
private void guna2Button12_Click(object sender, EventArgs e)
{
this.Close();
}
private void guna2Button13_Click(object sender, EventArgs e)
{
WindowState = FormWindowState.Minimized;
}
}
}