Ejemplo n.º 1
0
        public int CompareTo(Object o)
        {
            DecisionVariable dv = o as DecisionVariable;

            if (dv == null)
            {
                throw new ArgumentException("Not valid object");
            }

            if (_name.CompareTo(dv._name) != 0)
            {
                return(_name.CompareTo(dv._name));
            }
            if (_description.CompareTo(dv._description) != 0)
            {
                return(_description.CompareTo(dv._description));
            }


            return(0);
        }
 public DecisionVariableDialog(DecisionVariable dv)
 {
     InitializeComponent();
     edtName.Text        = dv.Name;
     edtDescription.Text = dv.Desciption;
 }