# HG changeset patch # User sl # Date 1418756526 -3600 # Node ID 9bcab0dfa376ed4c1ff058cc5f12920cb8e4a029 # Parent 408ef0501cb7a906093cab2474a60aa18318d710 Adding error message for single field set attempt. diff -r 408ef0501cb7 -r 9bcab0dfa376 Client/MainForm.cs --- a/Client/MainForm.cs Tue Dec 16 18:05:55 2014 +0100 +++ b/Client/MainForm.cs Tue Dec 16 20:02:06 2014 +0100 @@ -134,7 +134,14 @@ //TextField top = new TextField(0, textBoxTop.Text, ContentAlignment.MiddleLeft); iTextFieldTop.Text = textBoxTop.Text; iTextFieldTop.Alignment = Alignment; - iClient.SetField(iTextFieldTop); + bool res = iClient.SetField(iTextFieldTop); + + if (!res) + { + MessageBox.Show("Create you fields first", "Field update error", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + + } private void buttonSetText_Click(object sender, EventArgs e)