Esempio n. 1
0
        public void AddNewTextString()
        {
            var form = new AddValueForm("Add new TextString", x => !TextData.IsTextStringExist(x));

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TextData.AddTextString(form.ResultValue);
                FillGrid();
            }
        }
Esempio n. 2
0
        public void AddNewLanguage()
        {
            var form = new AddValueForm("Add new Language", x => !TextData.IsLanguageExist(x));

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TextData.AddLanguage(form.ResultValue);
                FillGrid();
            }
        }
        public void AddNewValue()
        {
            var e    = Owner.Core.Configs.GetEditable();
            var form = new AddValueForm("Add new Custom Property", x => !e.IsValueExist(x));

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                e.AddValue(form.ResultValue);
                OnTabOpen();
            }
        }