예제 #1
0
        public GroupSource Clone()
        {
            GroupSource gs = new GroupSource();

            gs.Enable       = Enable;
            gs.MajorBinding = MajorBinding;
            gs.MajorSort    = MajorSort;
            gs.MinorBinding = MinorBinding;
            gs.MinorSort    = MinorSort;
            gs.ValueBinding = ValueBinding;
            gs.ValueFx      = ValueFx;
            return(gs);
        }
예제 #2
0
 private void InitGroupSource()
 {
     groupSource = ChartParent.GroupSource.Clone();
     cboMajorBindingInit();
     cboMinorBindingInit();
     cboValueBindingInit();
     chkEnableGroup.Checked = groupSource.Enable;
     if (groupSource.MajorBinding != null)
     {
         cboMajorBinding.SelectedValue = groupSource.MajorBinding;
     }
     if (groupSource.MinorBinding != null)
     {
         cboMinorBinding.SelectedValue = groupSource.MinorBinding;
     }
     cboValueBinding.SelectedItem = groupSource.ValueBinding;
     cboValueFx.SelectedItem      = groupSource.ValueFx;
     cboMajorSort.SelectedValue   = groupSource.MajorSort;
     cboMinorSort.SelectedValue   = groupSource.MinorSort;
 }