private void userTracking_Load(object sender, EventArgs e) { _instance1 = this; AddExpense addex = new AddExpense(); addex.Dock = DockStyle.Fill; tPanel.Controls.Add(addex); }
private void trackTile_Click(object sender, EventArgs e) { if (!Home.Instance.MetroContainer.Controls.ContainsKey("userTracking")) { userTracking utr = new userTracking(); utr.Dock = DockStyle.Fill; Home.Instance.MetroContainer.Controls.Add(utr); } Home.Instance.MetroContainer.Controls["userTracking"].BringToFront(); Home.Instance.MetroBack.Visible = true; }