Exemplo n.º 1
0
            static public void LoadXml_OtionsView(PivotGridControl pivotGrid, DataSet ds)
            {
                DataTable dt = ds.Tables[TableName];

                if (dt == null)
                {
                    return;
                }

                foreach (DataRow row in dt.Rows)
                {
                    string sPropertieName = row.GetString(PropertieName);
                    string sChecked       = row.GetString(Checked);

                    SetOptions.SetOptionValueByString(sPropertieName, pivotGrid.OptionsView, Convert.ToBoolean(sChecked));
                }
            }
 protected virtual void ApplyOptions(bool setOptions)
 {
     if (LockApply != 0)
     {
         return;
     }
     for (int i = 0; i < PrintFlags.Length; i++)
     {
         CheckEdit chb = CheckEditByIndex(i);
         if (chb != null)
         {
             SetOptions.SetOptionValueByString(PrintFlags[i], setOptions ? EditingView.OptionsPrint :
                                               CurrentView.OptionsPrint, chb.Checked);
         }
     }
     EditingView.FireChangedInternal();
 }