Beispiel #1
0
        private void CheckSendFile(TextBox a, TextBox b)
        {
            if (String.IsNullOrEmpty(a.Text) || String.IsNullOrEmpty(b.Text))
            {
                MessageBox.Show("Invalid values entered. Check the input, please");
            }

            else if (userLogic.GetLoginForSend(b.Text) == 0)
            {
                MessageBox.Show("Wrong user login");
            }

            else if (fileLogic.GetTitleForDelete(id, a.Text) == 0)
            {
                MessageBox.Show("No such file exists. Check the input, please");
            }

            else
            {
                fileLogic.SendFile("SendFile", TitleBox.Text, UserBox.Text, id);
            }
        }