private void filterButton_Click(object sender, EventArgs e)
        {
            try
            {
                bool andor = andRadio.Checked;

                Par par = new Par();
                IList <Parameter> pas = new List <Parameter>();

                foreach (var item in checksParam.CheckedItems)
                {
                    par = item as Par;
                    pas.Add(par.ID);
                }
                if (projectBtn.Checked)
                {
                    projs = true;
                }
                else
                {
                    projs = false;
                }
                RunFilter rf = new RunFilter();
                rf.Execute(ids, pas, datas, andor, projs);
                Close();
            }
            catch (Exception exception)
            {
                TaskDialog.Show("Error", exception.Message);
                throw;
            }
        }
Beispiel #2
0
        public bool Equals(Par other)
        {
            if (Object.ReferenceEquals(other, null))
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Name.Equals(other.Name));
        }