示例#1
0
        private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var frmEdit = new FrmEditDealer(0, true);

            frmEdit.Show(this);
        }
示例#2
0
        private void simpleButton4_Click(object sender, EventArgs e)
        {
            var row = treeDealersList.GetDataRecordByNode(treeDealersList.FocusedNode);
            if (row == null)
            {
                TreeListFocusedId = -1;
            }
            else
            {
                dynamic treeDealer = new { ID = 0, Dealer_ID = 0, dealerZovName = "" };
                treeDealer = row;
                var dId = treeDealer.ID;
                var dName = treeDealer.dealerZovName;
                var frmEdit = new FrmEditDealer(dId, false, dName);

                frmEdit.Show(this);
            }
        }