Exemple #1
0
        public void txtNameOrganization_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            EditorButton btn     = e.Button;
            string       btnCapt = btn.Caption;

            this.PanelControl1.Controls[btnCapt].Text = null;
        }
 /// <summary>
 /// 点击按钮后
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OrgComboBox_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (!this.ReadOnly)
     {
         ShowPopup();
     }
 }
Exemple #3
0
        private void XR006ButtonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            RESAI04L ai04l = new RESAI04L();

            ai04l.SetKey = new string[] { KeyValue[0], GV_Main.GetFocusedRowCellValue("XB002").ToString() };
            ai04l.ShowDialog();
        }
 private void buttonEdit1_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (txtViPham.Text.Length > 0)
     {
         MessageBox.Show("Đã có vi phạm yêu cầu chấm dứt hợp đồng không thể tạo thêm?"
                         , "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         if (txtMaThueMB.EditValue == null)
         {
             MessageBox.Show("Bạn chưa chọn mã thuê không thể thêm vi phạm"
                             , "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
             txtMaThueMB.Focus();
             return;
         }
         FrmTaoXuLyViPham viPham = new FrmTaoXuLyViPham(maNV, txtMaThueMB.EditValue.ToString());
         viPham.ShowDialog();
         maVP = viPham.MaViPham();
         if (!string.IsNullOrEmpty(maVP))
         {
             string tenVP = vp.LayTTViPhamChamDutHD(txtMaThueMB.EditValue.ToString());
             if (!string.IsNullOrEmpty(tenVP))
             {
                 txtViPham.Text = tenVP;
             }
         }
     }
 }
Exemple #5
0
        //打开含有数据源的目录
        private void txtSourceFolder_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            folderBrowserDialog.ShowNewFolderButton = false;
            folderBrowserDialog.Description         = "请选择数据源所在目录...";

            if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
            {
                string strSelectedPath = folderBrowserDialog.SelectedPath;
                if (strSelectedPath.Length == 3)
                {
                    strSelectedPath = strSelectedPath.Substring(0, 2);
                }
                if (this.TestSourcePath(strSelectedPath))
                {
                    txtSourceFolder.Text = strSelectedPath;

                    this.wpSourceSelect.AllowNext = !string.IsNullOrEmpty(txtTaskPath.Text);
                    this.labDatasource.Text       = string.IsNullOrEmpty(txtSourceFolder.Text) ? "不能为空" : "";
                }
                else
                {
                    XtraMessageBox.Show("所选目录下没有数据源!");
                    txtSourceFolder.Text          = "";
                    this.wpSourceSelect.AllowNext = false;
                }
            }
        }
Exemple #6
0
        private void be_newposition_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            Frm_freeBit frm_free = new Frm_freeBit();
            BI01        bi01     = null;

            if (frm_free.ShowDialog() == DialogResult.OK)
            {
                s_new_bi001 = frm_free.swapdata["bi001"].ToString();
                if (s_new_bi001 == ac01.AC015)
                {
                    Tools.msg(MessageBoxIcon.Warning, "提示", "新墓穴位置与原来相同!");
                    return;
                }
                bi01 = session1.GetObjectByKey(typeof(BI01), s_new_bi001) as BI01;
                if (bi01 != null)
                {
                    if (bi01.PRICE != ac01.AC020)
                    {
                        if (XtraMessageBox.Show("新墓穴位置与原位置定价不同,是否继续?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
                        {
                            return;
                        }
                    }
                    be_newposition.Text    = MiscAction.GetTombPosition(bi01.BI001);
                    te_new_price.EditValue = bi01.PRICE;
                }
            }
            frm_free.Dispose();
        }
        private void bteSanPham_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmLookUp_SanPham frmLookUpSanPham = new frmLookUp_SanPham(false, String.Format("%{0}%", bteSanPham.Text));

            if (frmLookUpSanPham.ShowDialog() == DialogResult.OK)
            {
                bteSanPham.EditValue = String.Empty;
                bteSanPham.Tag       = frmLookUpSanPham.SelectedItem;
                bteSanPham.Text      = frmLookUpSanPham.SelectedItem.TenSanPham;
                DMCauHinhSanPhamInfo obj = DMCauHinhSanPhamDataProvider.Instance.GetNhaCCByIdSanPham(((DMSanPhamInfo)bteSanPham.Tag).IdSanPham);
                txtNhaCC.Text = obj.Hang;
                try
                {
                    string path = String.Format("http://logo.trananh.com.vn/{0}.jpg", txtNhaCC.Text);
                    System.Net.WebRequest  req      = System.Net.WebRequest.Create(path);
                    System.Net.WebResponse response = req.GetResponse();
                    System.IO.Stream       stream   = response.GetResponseStream();
                    if (path != null)
                    {
                        //Image im = new Bitmap(path, true);
                        Image im = Image.FromStream(stream);
                        pteLogo.Size  = new Size(192, 83);
                        pteLogo.Image = Crop(im, 192, 83, AnchorPosition.Center);
                    }
                }
                catch (Exception)
                {
                    clsUtils.MsgCanhBao("Sản phẩm chưa có Logo!");
                }
            }
        }
Exemple #8
0
 private void UiListaDeCliente_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Tag != null && e.Button.Tag == "REFRESH")
     {
         ((GridLookUpEdit)sender).ClosePopup();
     }
 }
        private void repositoryItemButtonEdit2_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                int     rowhandle = gridView1.FocusedRowHandle;
                DataRow dr        = gridView1.GetDataRow(rowhandle);
                PointDefineGetByPointRequest PointDefineRequest = new PointDefineGetByPointRequest();
                PointDefineRequest.Point = dr["Point"].ToString();
                Jc_DefInfo def = pointDefineService.GetPointDefineCacheByPoint(PointDefineRequest).Data;
                def.Z2  = def.DeviceInfoItem.UpAarmValue;
                def.Z3  = def.DeviceInfoItem.UpDdValue;
                def.Z4  = def.DeviceInfoItem.UpHfValue;
                def.Z6  = def.DeviceInfoItem.DownAarmValue;
                def.Z7  = def.DeviceInfoItem.DownDdValue;
                def.Z8  = def.DeviceInfoItem.DownHfValue;
                def.Bz8 = def.DeviceInfoItem.SeniorGradeAlarmValue1 + "," + def.DeviceInfoItem.SeniorGradeAlarmValue2
                          + "," + def.DeviceInfoItem.SeniorGradeAlarmValue3 + "," + def.DeviceInfoItem.SeniorGradeAlarmValue4;
                def.Bz9 = def.DeviceInfoItem.SeniorGradeTimeValue1 + "," + def.DeviceInfoItem.SeniorGradeTimeValue2
                          + "," + def.DeviceInfoItem.SeniorGradeTimeValue3 + "," + def.DeviceInfoItem.SeniorGradeTimeValue4;
                PointDefineUpdateRequest PointDefineUpdateRequest = new PointDefineUpdateRequest();
                PointDefineUpdateRequest.PointDefineInfo = def;
                pointDefineService.UpdatePointDefine(PointDefineUpdateRequest); //修改测点的基础属性

                _ConfigService.SaveInspection();                                //保存巡检
            }
            catch (Exception ex)
            {
                Basic.Framework.Logging.LogHelper.Error(ex);
            }
        }
        void nonTransitionRepositoryItem_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            GridEditorButton gridButton = null;

            foreach (var b in nonTransitionRepositoryItem.Buttons)
            {
                gridButton = b as GridEditorButton;
                if (gridButton != null)
                {
                    if (gridButton.Tag == e.Button.Tag)
                    {
                        break;
                    }
                    else
                    {
                        gridButton = null;
                    }
                }
            }

            if (gridButton != null)
            {
                switch (gridButton.Tag as string)
                {
                case "plus":
                    PlusHandler(gridButton);
                    break;
                }
            }
        }
Exemple #11
0
 private void Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Kind == ButtonPredefines.Clear && !this.ReadOnly)
     {
         base.EditValue = null;
     }
 }
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                int     rowhandle = gridView1.FocusedRowHandle;
                DataRow dr        = gridView1.GetDataRow(rowhandle);
                PointDefineGetByPointRequest PointDefineRequest = new PointDefineGetByPointRequest();
                PointDefineRequest.Point = dr["Point"].ToString().Substring(0, 3) + "0000";
                Jc_DefInfo def = pointDefineService.GetPointDefineCacheByPoint(PointDefineRequest).Data;
                Dictionary <string, Dictionary <string, object> > PointItemsList = new Dictionary <string, Dictionary <string, object> >();
                Dictionary <string, object> PointItems = new Dictionary <string, object>();
                PointItems.Add("DefIsInit", true);
                PointItemsList.Add(def.PointID, PointItems);

                //调用服务端批量更新缓存业务来更新,修改为更新定义保存之后的是否发初始化标记,并保存巡检调用驱动预处理发初始化  20170720
                DefineCacheBatchUpdatePropertiesRequest PointDefineUpdateRequest = new DefineCacheBatchUpdatePropertiesRequest();
                PointDefineUpdateRequest.PointItems = PointItemsList;
                pointDefineService.BatchUpdatePointDefineInfo(PointDefineUpdateRequest);

                _ConfigService.SaveInspection();//保存巡检
            }
            catch (Exception ex)
            {
                Basic.Framework.Logging.LogHelper.Error(ex);
            }
        }
Exemple #13
0
 private void IDExclusion_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     Maestro.frmItemBonificacion msItemBonificacion = new Maestro.frmItemBonificacion();
     proceso.consultar(
         @"SELECT        
     Bonificacion.PKID, Bonificacion.Mecanica, Bonificacion.TipoMecanica, Bonificacion.cdProductoRegalo,
     PROVEEDOR.RazonSocial AS Proveedor
     FROM
     Bonificacion INNER JOIN PROVEEDOR ON Bonificacion.IDProveedor = PROVEEDOR.Proveedor
     where activo = 1 and '" + Convert.ToDateTime(DateTime.Now).ToString("yyyyMMdd") + "' >= Desde and '" + Convert.ToDateTime(DateTime.Now).ToString("yyyyMMdd") + "' < Hasta", "Bonificacion");
     msItemBonificacion.gridControl1.DataSource = proceso.ds.Tables["Bonificacion"];
     msItemBonificacion.gridView1.OptionsView.ShowGroupPanel  = false;
     msItemBonificacion.gridView1.OptionsBehavior.ReadOnly    = true;
     msItemBonificacion.gridView1.OptionsBehavior.Editable    = false;
     msItemBonificacion.gridView1.OptionsView.ColumnAutoWidth = false;
     msItemBonificacion.gridView1.Columns[0].Visible          = false;
     msItemBonificacion.gridView1.BestFitColumns();
     msItemBonificacion.gridView1.Columns["Proveedor"].GroupIndex    = 0;
     msItemBonificacion.gridView1.Columns["TipoMecanica"].GroupIndex = 1;
     msItemBonificacion.gridView1.GroupRowHeight = 1;
     msItemBonificacion.gridView1.RowHeight      = 1;
     msItemBonificacion.gridView1.Appearance.Row.FontSizeDelta = 0;
     msItemBonificacion.pasar        += new Maestro.frmItemBonificacion.variables(camposproductoexclusion);
     msItemBonificacion.StartPosition = FormStartPosition.CenterScreen;
     msItemBonificacion.ShowDialog();
 }
Exemple #14
0
 private void HwgrLookUpCtrl_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Kind == ButtonPredefines.Delete)
     {
         HwgrLookUpCtrl.CurrentId = 0;
     }
 }
Exemple #15
0
        private void Edit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            var  edit      = (ButtonEdit)sender;
            Type AddonType = null;

            if (e.Button.Kind == ButtonPredefines.Ellipsis)
            {
                var editValue   = edit.EditValue;
                var editControl = new AddonSelectControl();

                editControl.AddonFilter = (addon) =>
                {
                    // 匹配插件类型
                    if (AddonType == null || addon.GetType().IsDerivedFrom(AddonType))
                    {
                        return(true);
                    }
                    return(false);
                };

                editControl.EditValue = editValue;
                if (WinFormPublic.ShowDialog(editControl) == DialogReturn.OK)
                {
                    edit.EditValue = editControl.EditValue;
                }
            }
        }
Exemple #16
0
 private void bteTrungTam_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (UtilFunctions.bteTrungTam_ButtonClick(sender, e, bteTrungTam, nguoiDung.IdNhanVien))
     {
         ResetTrungTam();
     }
 }
Exemple #17
0
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                if (gridView1.IsDataRow(gridView1.FocusedRowHandle))
                {
                    DataAccess.ItemCategory currentRow = (DataAccess.ItemCategory)gridView1.GetFocusedRow();

                    //Delete Current Object
                    if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Delete)
                    {
                        if (MessageBox.Show("Are you sure ?", "Delete  " + currentRow.Category, MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
                        {
                            db.ItemCategories.Remove(currentRow);
                            if (db.SaveChanges() > 0)
                            {
                                gridView1.DeleteRow(gridView1.FocusedRowHandle);
                                MainScreen parent = (MainScreen)this.Parent.Parent.Parent.Parent;
                                parent.ShowMessageInStatusBar("Item Deleted", 9000);
                            }
                        }
                    }
                    else
                    //Update
                    if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Ellipsis)
                    {
                    }
                }
            }
            catch (Exception ex)
            {
                ModuleClass.ShowExceptionMessage(this, ex, "خطأ", null);
            }
        }
Exemple #18
0
        private void userName_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            int cursorX = userName.Width - 20;         //left edge of button
            int cursorY = userName.Height;             //below button

            contextMenu.Show(userName, new System.Drawing.Point(cursorX, cursorY));
        }
        private void buttonEditAgregar_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            ButtonEdit ed = gridViewOrdenVentaConsulta.ActiveEditor as ButtonEdit;

            if (ed == null)
            {
                return;
            }
            if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Plus)
            {
                Guid OrdenVentaId = new Guid(gridViewOrdenVentaConsulta
                                             .GetRowCellValue(gridViewOrdenVentaConsulta.FocusedRowHandle, "Id")
                                             .ToString());

                var Pendiente = gridViewOrdenVentaConsulta
                                .GetRowCellValue(gridViewOrdenVentaConsulta.FocusedRowHandle, "Pendiente")
                                .ToString();

                if (Pendiente.Equals(DevConstantes.SI))
                {
                    var ordenventa = new Form_AdministracionActualizarOrdenVenta(OrdenVentaId, null, true);
                    ordenventa.ShowDialog(this);
                }
                else
                {
                    MessageBox.Show("Esta orden de venta está cerrada. No se pueden modificar sus datos.",
                                    "Atención", MessageBoxButtons.OK);
                }
            }
        }
Exemple #20
0
 private void XO004ButtonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (GetGridStatu() != BaseForm.GridStatu.gsBrowse)
     {
         string mType = GV_Body.GetFocusedRowCellValue("XO004").ToString();
         f2.SetMI      = new string[] { "POSXH", "001" };
         f2.SetMIParam = new string[] { mType };
         f2.SetMuity   = true;
         Dictionary <int, List <string> > muity = null;
         if (f2.GetMI)
         {
             muity = f2.GetMuity;
             bool IsExist = false;
             bool IsFirst = true;
             foreach (KeyValuePair <int, List <string> > s in muity)
             {
                 for (int i = 0; i < GV_Body.RowCount; i++)
                 {
                     if ((GV_Body.GetRowCellValue(i, "XO005") == null))
                     {
                         IsExist = false;
                         break;
                     }
                     if (GV_Body.GetRowCellValue(i, "XO005").ToString() == s.Value[0])
                     {
                         if (GV_Body.GetRowCellValue(i, "XO004").ToString() == mType)
                         {
                             IsExist = true;
                             break;
                         }
                     }
                 }
                 if (IsExist)
                 {
                     IsExist = false;
                     continue;
                 }
                 else
                 {
                     if (IsFirst)
                     {
                         IsFirst = false;
                     }
                     else
                     {
                         GV_Body.AddNewRow();
                     }
                     GV_Body.SetFocusedRowCellValue("XO001", XN001.Text);
                     GV_Body.SetFocusedRowCellValue("XO002", XN002.EditValue);
                     GV_Body.SetFocusedRowCellValue("XO003", XN003.Text);
                     GV_Body.SetFocusedRowCellValue("XO004", mType);
                     GV_Body.SetFocusedRowCellValue("XO005", s.Value[0]);
                     GV_Body.SetFocusedRowCellValue("XO005C", s.Value[1]);
                     GV_Body.UpdateCurrentRow();
                 }
             }
         }
     }
 }
        private void buttonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (e.Button.Kind == ButtonPredefines.Ellipsis)
            {
                var col1 = "Code Rubrique (Net)";
                var col2 = "Code Rubrique (N-1)";
                //var col1 = "Code Rubrique (Net)";
                var col3 = "Net";
                //var col1 = "Libelle";
                // var col4 = "Brut";
                // var col5 = "Prov / Amort";
                var col4 = "Net N-1";


                if (excelDataSource1.EditDataSource())
                {
                    buttonEdit1.EditValue = excelDataSource1.FileName;
                    excelDataSource1.Fill();
                    var xml = this.excelDataSource1.SaveToXml();
                    xml.Save(this._fileName);

                    //
                    this.CodeRubNetcomboBoxEdit.Properties.Items.Clear();
                    this.CodeRubNetcomboBoxEdit.Properties.Items.AddRange(excelDataSource1.Schema
                                                                          .Where(x => x.Type == typeof(string) && x.Selected).Select(x => x.Name).ToList());
                    this.CodeRubNetcomboBoxEdit.EditValue = excelDataSource1.Schema
                                                            .Where(x => x.Type == typeof(string) && x.Selected).Select(x => x.Name)
                                                            .FirstOrDefault(x => x.Trim() == col1);

                    //

                    //
                    this.CodeRubN_1comboBoxEdit.Properties.Items.Clear();
                    this.CodeRubN_1comboBoxEdit.Properties.Items.AddRange(excelDataSource1.Schema
                                                                          .Where(x => x.Type == typeof(string) && x.Selected).Select(x => x.Name).ToList());
                    this.CodeRubN_1comboBoxEdit.EditValue = excelDataSource1.Schema
                                                            .Where(x => x.Type == typeof(string) && x.Selected).Select(x => x.Name)
                                                            .FirstOrDefault(x => x.Trim() == col2);


                    this.ValNetcomboBoxEdit.Properties.Items.Clear();
                    this.ValNetcomboBoxEdit.Properties.Items.AddRange(excelDataSource1.Schema
                                                                      .Where(x => Core.Helpers.Helper.IsNumericType(x.Type) && x.Selected).Select(x => x.Name)
                                                                      .ToList());
                    this.ValNetcomboBoxEdit.EditValue = excelDataSource1.Schema
                                                        .Where(x => Core.Helpers.Helper.IsNumericType(x.Type) && x.Selected).Select(x => x.Name)
                                                        .FirstOrDefault(x => x.Trim() == col3);

                    //
                    this.ValN_1comboBoxEdit.Properties.Items.Clear();
                    this.ValN_1comboBoxEdit.Properties.Items.AddRange(excelDataSource1.Schema
                                                                      .Where(x => Core.Helpers.Helper.IsNumericType(x.Type) && x.Selected).Select(x => x.Name)
                                                                      .ToList());
                    this.ValN_1comboBoxEdit.EditValue = excelDataSource1.Schema
                                                        .Where(x => Core.Helpers.Helper.IsNumericType(x.Type) && x.Selected).Select(x => x.Name)
                                                        .FirstOrDefault(x => x.Trim() == col4);
                }
            }
        }
Exemple #22
0
 private void InsertInegrante_buttonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.IsLeft)
     {
         DialogResult = DialogResult.OK;
     }
     Close();
 }
Exemple #23
0
        void edit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            var item = griditem.GetRow(griditem.FocusedRowHandle) as dynamic;
            var form = new FrmUpdateDiemLop(Username, item.MSSV, item.Nam, item.hocky);

            form.FormClosed += new FormClosedEventHandler(form_FormClosed);
            form.ShowDialog();
        }
 private void bteKhoXuat_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     UtilFunctions.bteKhoXuat_ButtonClick(sender, e, bteKhoXuat, -1,
                                          nguoiDung.QuanTri == 1 || nguoiDung.SupperUser == 1
                                              ? -1
                                              : nguoiDung.IdNhanVien);
     LoadData();
 }
Exemple #25
0
 private void comboBoxEdit1_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Kind == ButtonPredefines.Close)
     {
         this.comboBoxEdit1.EditValue = "";
         this.labelControl1.Focus();
     }
 }
Exemple #26
0
 private void IDCanje_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     Maestro.frmProducto msproducto = new Maestro.frmProducto();
     msproducto.gridView1.BestFitColumns();
     msproducto.pasar        += new Maestro.frmProducto.variables(camposproductocanje);
     msproducto.StartPosition = FormStartPosition.CenterScreen;
     msproducto.ShowDialog();
 }
        private void buttonEditActions_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            var form = new CustomerBuyingConfirmation();

            form.Customer = this.Customer;
            form.Product  = this.gridViewProducts.GetRow(this.gridViewProducts.FocusedRowHandle) as ProductViewDto;
            form.ShowDialog();
        }
Exemple #28
0
 private void Commands_buttonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.IsLeft) //Ok button
     {
         //TODO hacer la salva de los artistas
     }
     Dispose();
 }
Exemple #29
0
 protected void colorPickEdit1_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Kind == ButtonPredefines.Close)
     {
         var edit = (ColorPickEdit)sender;
         edit.Color = Color.Empty;
     }
 }
Exemple #30
0
        // очистить поле
        public void txtMethodName_ButtonClick(dynamic sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            EditorButton btn = e.Button;

            if (btn.Index == 0)
            {
                sender.Text = "";
            }
        }