Exemple #1
0
        private void label5_Click(object sender, EventArgs e)
        {
            var a = CUInputWindow.Ask(this, "Config Editor", "Please, enter config display name", new NonEmptyValidator(), label5.Text);

            if (a != null)
            {
                label5.Text = a;
                Conf.Name   = a;
                CallUpdateEvent();
            }
        }
Exemple #2
0
        private void label3_Click(object sender, EventArgs e)
        {
            var a = CUInputWindow.Ask(this, "Config Editor", "Please, enter the description", new NonEmptyValidator(), label3.Text, true);

            if (a != null)
            {
                label3.Text      = a;
                Conf.Description = a.Replace(Environment.NewLine, "[br]");
                CallUpdateEvent();
            }
        }
Exemple #3
0
        private void label4_Click(object sender, EventArgs e)
        {
            var a = CUInputWindow.Ask(this, "Config Editor", "Please, enter config property name (var config int <name>)", new NonEmptyValidator(), label4.Text);

            if (a != null)
            {
                label4.Text       = a;
                Conf.PropertyName = a;
                CallUpdateEvent();
            }
        }
Exemple #4
0
        private void mButtonBorderless3_Click(object sender, EventArgs e)
        {
            var a = CUInputWindow.Ask(this, "Config Editor", "Please, enter a new value name", new NonEmptyValidator());

            if (a != null)
            {
                listBox1.Items.Add(a);
                RepopulateOptionsDict();
                CallUpdateEvent();
            }
        }
Exemple #5
0
        private void label3_Click(object sender, EventArgs e)
        {
            var a = CUInputWindow.Ask(this, "AR Editor", "Please, enter the replacement asset name", new ARValidator(), label3.Text);

            if (a != null)
            {
                if (label3.Text != a)
                {
                    label3.Text = a;
                    CallUpdateEvent();
                }
            }
        }
Exemple #6
0
        private void CUButtonBorderless1_Click(object sender, EventArgs e)
        {
            string source = CUInputWindow.Ask(this, "Asset Replacement: from", "Enter the asset name which you want to replace", new ARValidator());

            if (source != null)
            {
                if (Collect().Where(item => item.Key.ToLowerInvariant() == source.ToLowerInvariant()).Count() > 0)
                {
                    CUMessageBox.Show("ARList already contains item with key: " + source, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    return;
                }

                string target = CUInputWindow.Ask(this, "Asset Replacement: to", $"Replacement: {source}{Environment.NewLine}Enter the target asset name", new ARValidator());
                if (target != null)
                {
                    Append(source, target);
                    CallOnUpdateEvent();
                }
            }
        }