コード例 #1
0
 private void RefreshData(bool invalidateFirst)
 {
     if (_onSetDb != null)
     {
         _onSetDb(this, new EventArgs());
     }
     dashboardTabControl.SetDashboardLayout(DashboardLayouts.GetDashboardLayout(DashboardGroupName), invalidateFirst);
 }
コード例 #2
0
        private void butSaveChanges_Click(object sender, EventArgs e)
        {
            List <DashboardLayout> layouts;

            dashboardTabControl.GetDashboardLayout(out layouts);
            DashboardLayouts.SetDashboardLayout(layouts, DashboardGroupName);
            //Save occurred. Let the tab control know that there are no changes remaining before refreshing data below.
            //Omitting this step would cause the tab control to prompt user to save changes before continuing.
            dashboardTabControl.HasUnsavedChanges = false;
            RefreshData(false);
            MessageBox.Show("Graphic Report group saved: " + DashboardGroupName + ".");
        }