Esempio n. 1
0
        protected override void loadData()
        {
            base.loadData();
            UMD umd = (UMD)EditedModel;

            if (umd == null)
            {
                return;
            }
            currentTextTextBox.Text       = umd.CurrentText;
            staticTextTextBox.Text        = umd.StaticText;
            useStaticTextCheckBox.Checked = umd.UseStaticText;
            createTallySourceSettingTab();
            for (int i = 0; i < umd.Type.TallyCount; i++)
            {
                tallySourceDropDowns[i]?.SelectByValue(umd.GetTallySource(i));
            }
        }
Esempio n. 2
0
        protected override void loadData()
        {
            if (umd == null)
            {
                return;
            }

            idNumericField.Value          = (addingNew ? UmdDatabase.Instance.NextValidId() : umd.ID);
            nameTextBox.Text              = umd.Name;
            currentTextTextBox.Text       = umd.CurrentText;
            staticTextTextBox.Text        = umd.StaticText;
            useStaticTextCheckBox.Checked = umd.UseStaticText;

            createTallySourceSettingTab();
            for (int i = 0; i < umd.Type.TallyCount; i++)
            {
                tallySourceDropDowns[i]?.SelectByValue(umd.GetTallySource(i));
            }
        }