private void ShowDashboard() { //_dashboardPage ??= new PgDashboard(); _dashboardPage = new PgDashboard(); ShowPage(_dashboardPage); SetActiveMenu(btnDashboard); }
private void btnDashboard_Click(object sender, EventArgs e) { if (_dashboard == null) { _dashboard = new PgDashboard(); } ShowPage(_dashboard); }