Ejemplo n.º 1
0
 public Trigger()
 {
     InitializeComponent();
     obj        = new models.Trigger();
     isEditMode = false;
     Load();
 }
Ejemplo n.º 2
0
        public Trigger(models.Trigger lnk)
        {
            InitializeComponent();
            obj        = lnk;
            isEditMode = true;
            Load();
            txtTableName.Text = obj.SourceTableName;
            txtTrigger.Text   = obj.TriggerID;
            var o1 = (from r in models.AppState.State.Channels where r == obj.Channel select r).FirstOrDefault();

            if (o1 != null)
            {
                cmbChannel.SelectedItem = o1;
            }
        }