示例#1
0
        private void userTracking_Load(object sender, EventArgs e)
        {
            _instance1 = this;
            AddExpense addex = new AddExpense();

            addex.Dock = DockStyle.Fill;
            tPanel.Controls.Add(addex);
        }
示例#2
0
 private void addexpenseTile_Click(object sender, EventArgs e)
 {
     if (!userTracking.Instance.AddContainer.Controls.ContainsKey("AddExpense"))
     {
         //this.addexpenseTile.Theme = MetroFramework.MetroThemeStyle.Dark;
         this.addexpenseTile.Style = (MetroFramework.MetroColorStyle) 10;
         AddExpense aex = new AddExpense();
         aex.Dock = DockStyle.Fill;
         userTracking.Instance.AddContainer.Controls.Add(aex);
     }
     userTracking.Instance.AddContainer.Controls["AddExpense"].BringToFront();
     //userTracking.Instance.MetroBack.Visible = true;
 }