Пример #1
0
        void ItemEffect_MainForm()
        {
            var tempStrArry = RealValue.Text.Split('-');

            int[] tempIntArry = new int[6];
            for (int i = 0; i < 6; i++)
            {
                try
                {
                    tempIntArry[i] = int.Parse(tempStrArry[i]);
                }
                catch (FormatException)
                {
                    MessageBox.Show("FormatException\nExcelファイルを編集しないでください");
                }
            }
            var Item_MainForm = new Parameter_BD.ItemDB.Item();

            if (!Item_MainForm.ItemSet(ItemLabel.Text))
            {
                MessageBox.Show("ItemName NoMuch");
            }
            Item_MainForm.Effect(ref tempIntArry);
            RealValue.Text = tempIntArry[0].ToString();
            for (int i = 1; i < tempIntArry.Length; i++)
            {
                RealValue.Text += "-" + tempIntArry[i];
            }
        }
Пример #2
0
        public MainForm()
        {
            InitializeComponent();
            Names = new Tab1_autoConp.Names();
            Items = new Parameter_BD.ItemDB.Item();
            ch    = new Parameter_BD.Character();

            FormSelectInMainFormTab.DropDownStyle = ComboBoxStyle.DropDownList;
            InputForm.DropDownStyle = ComboBoxStyle.DropDownList;
        }