Exemplo n.º 1
0
        private void tsmInputAdd_Click(object sender, EventArgs e)
        {
            var dlg = new FrmLaneInfo();

            dlg.Setup(null);
            dlg.ShowDialog(this);
        }
Exemplo n.º 2
0
        private void btnLaneInfoAdd_Click(object sender, EventArgs e)
        {
            var dlg = new FrmLaneInfo();

            InitDialog(dlg);

            var item = new LaneInfoVM();

            item.CHECKLIST_PK = _vm.CHECKLIST_PK;
            dlg.Setup(item);
            dlg.OnInsertQuery = FrmLaneInfo_OnInsertQuery;

            dlg.ShowDialog(this);
        }
Exemplo n.º 3
0
        private void gridLaneInfo_DoubleClick(object sender, EventArgs e)
        {
            if (gridLaneInfo.SelectedRows.Count != 1)
            {
                return;
            }

            var dlg = new FrmLaneInfo();

            InitDialog(dlg);

            var item = gridLaneInfo.SelectedRows[0].DataBoundItem as LaneInfoVM;

            dlg.Setup(item);
            dlg.OnUpdateQuery = FrmLaneInfo_OnUpdateQuery;
            dlg.OnDeleteQuery = FrmLaneInfo_OnDeleteQuery;

            dlg.ShowDialog(this);
        }