Beispiel #1
0
        private void probeCardCreating(object view, LayoutControl probeCard)
        {
            probeCard.ScaleDpi();

            foreach (var field in probeCard.Fields)
            {
                field.SearchOptions.Button.Icon = field.SearchOptions.Button.Icon?.HalfResizeDpi();

                for (int i = 0; i < field.CustomButtons.Count; i++)
                {
                    var button = field.CustomButtons[i];

                    int  delta  = DeckEditorButtons.GetCountDelta(i);
                    bool isDeck = DeckEditorButtons.IsDeck(i);

                    button.Icon = button.Icon?.HalfResizeDpi(preventMoire: isDeck && Math.Abs(delta) == 1);
                }
            }

            ((CardLayoutControlBase)probeCard).Ui = _formRoot.UiModel;
        }