Exemplo n.º 1
0
        private void addButton_Click(object sender, EventArgs e)
        {
            if (newSourceTextBox.Text.Length > 0)
            {
                try
                {
                    client.AddSource(newSourceTextBox.Text);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

                newSourceTextBox.Text = "";
                DisplaySources();
            }
        }