Ejemplo n.º 1
0
        void CutBalanceButtonClickHandel(object sender, EventArgs e)
        {
            i = myModel.IndexOut();
            Input input = new Input();

            _ = new PresentorInput(input, myModel);
            input.ShowDialog();
            myModel.list()[i].setBalance(WorkWithBalance.CutBalans(myModel.InputNumbOut(), myModel.list()[i].getBalance()));
            IOF.OutputXmlFile(myModel.list());
            input.Close();
        }
Ejemplo n.º 2
0
        void InputButtonClickHandel(object sender, EventArgs e)
        {
            int addnumb;

            addnumb = Convert.ToInt32(input.TextInput.Text);
            if (addnumb < 1)
            {
                MessageBox.Show("Incorret input.\nPlease unput more than 0.", "Erorr");
                _ = new PresentorInput(input, myModel);
            }
            myModel.InputNumbIn(addnumb);
            input.Hide();
        }