Пример #1
0
        private void ReadTree()
        {
            loading = true;
            Tree    = SAV.GetHoneyTree(entry);

            NUD_Time.Value  = Math.Min(NUD_Time.Maximum, Tree.Time);
            NUD_Shake.Value = Math.Min(NUD_Shake.Maximum, Tree.Shake);
            NUD_Group.Value = Math.Min(NUD_Group.Maximum, Tree.Group);
            NUD_Slot.Value  = Math.Min(NUD_Slot.Maximum, Tree.Slot);

            ChangeGroupSlot(null, EventArgs.Empty);
            loading = false;
        }
Пример #2
0
        private void readTree()
        {
            loading = true;
            Tree    = SAV.getHoneyTree(entry);

            NUD_Time.Value  = Math.Min(NUD_Time.Maximum, Tree.Time);
            NUD_Shake.Value = Math.Min(NUD_Shake.Maximum, Tree.Shake);
            NUD_Group.Value = Math.Min(NUD_Group.Maximum, Tree.Group);
            NUD_Slot.Value  = Math.Min(NUD_Slot.Maximum, Tree.Slot);

            changeGroupSlot(null, null);
            loading = false;
        }