Example #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            AddResistanceBox add = new AddResistanceBox();

            add.DefaultParams();
            add.ShowDialog(this);
        }
Example #2
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            ResistanceBox ResistBox = R.FindResistanceBoxInListBox(listBox1);

            indexOfList = R.GetListOfResistanceBoxes.IndexOf(ResistBox);

            AddResistanceBox edit = new AddResistanceBox();

            edit.EditResistanceBox(ResistBox);
            edit.buttonAdd.Text = "Сохранить";
            edit.Text           = "Редактирование прибора";
            edit.ShowDialog(this);
        }