Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

73 lines (58 sloc) 2.173 kB
/* ====================================================================
Copyright (C) 2004-2008 fyiReporting Software, LLC
Copyright (C) 2011 Peter Gill <peter@majorsilence.com>
This file is part of the fyiReporting RDL project.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For additional information, email info@fyireporting.com or visit
the website www.fyiReporting.com.
*/
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Xml;
using System.Text;
using System.Reflection;
using fyiReporting.RDL;
namespace fyiReporting.RdlDesign
{
/// <summary>
/// DialogFilterOperator: puts up a dialog that lets a user pick a Filter Operator
/// </summary>
public partial class DialogFilterOperator
{
internal DialogFilterOperator(string op)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
if (op != null && op.Length > 0)
cbOperator.Text = op;
return;
}
public string Operator
{
get { return this.cbOperator.Text; }
}
private void DialogFilterOperator_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
foreach (string op in cbOperator.Items)
{
if (op == cbOperator.Text)
return;
}
MessageBox.Show(string.Format("Operator '{0}' must be in the operator list", cbOperator.Text), "Pick Filter Operator");
e.Cancel = true;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.