private void BtnGenerate_Click(object sender, RoutedEventArgs e) { if (checkIfAllFieldsFill()) { TxtQuery.Text = FunctionHandler.makeQueryAddFunction(getTableName(), TxtKeyName1.Text.ToString(), TxtEventTime1.Text.ToString(), TxtEventValue1.Text.ToString(), TxtFrom1.Text.ToString(), TxtWhere1.Text.ToString(), ChkNumber1.IsChecked.Value); } }