Esempio n. 1
0
        private void stuffManagerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var tmp = new FrmModSet(MSetins.ToArray(), lang());

            tmp.buttonSelect.Visible = false;
            tmp.ShowDialog();
        }
Esempio n. 2
0
        private void addCustomStuffToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmModSet modSet = new FrmModSet(MSetins, lang);

            if (modSet.ShowDialog() == DialogResult.OK)
            {
                if (TmpItem.Data.Find(x => x.Setin.Name == modSet.NowSelect.Name) != null)
                {
                    MessageBox.Show("It Have Same Stuff in this Items");
                    return;
                }
                ModSet ms = new ModSet()
                {
                    Setin      = modSet.NowSelect,
                    valuenomal = modSet.NowSelect.valuenomal,
                    Value      = modSet.NowSelect.valuenomal,
                };
                TmpItem.Data.Add(ms);
                UCSettingItem uC = new UCSettingItem(ms, ChangeText, DelectModSetin);
                flowLayoutPanelShow.Controls.Add(uC);
                flowLayoutPanelShow.ScrollControlIntoView(uC);
            }
        }