public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel) { try { _core = (InfoPos.Core.Core)param; _resource = _core.Resource; this.ucSaleSearch1.Core = _core; this.ucSaleSearch1.Remote = _core.RemoteObject; this.ucSaleSearch1.Resource = _resource; ucBill1.remote = _core.RemoteObject; ucBill1.core = _core; this.ucPayment1.Core = _core; this.ucPayment1.Remote = _core.RemoteObject; this.ucPayment1.Resource = _resource; this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public FormCustomerType(InfoPos.Core.Core core) { InitializeComponent(); _core = core; this.Resource = _core.Resource; Init(); this.FieldLinkSetSaveState(); }
public FormPAInvType(Core.Core core) { _core = core; InitializeComponent(); Init(); InitCombo(); this.Resource = _core.Resource; this.FieldLinkSetSaveState(); }
public frmClaimSet(InfoPos.Core.Core core) { InitializeComponent(); _core = core; if (_core.Resource != null) { btnSave.Image = _core.Resource.GetImage("object_save"); } }
public frmSalesInv(InfoPos.Core.Core core, string salesno) { InitializeComponent(); this.FormClosing += frmSalesInv_FormClosing; this.galleryCust.Gallery.ItemCheckedChanged += Gallery_ItemCheckedChanged; _core = core; if (_core != null) { _resource = _core.Resource; } _salesno = salesno; _layoutfilename = string.Format(@"{0}\Data\Layout_{1}.xml", Static.WorkingFolder, this.GetType().Name); #region Gallary Formatting galleryCust.Dock = DockStyle.Fill; galleryCust.Gallery.AllowFilter = false; galleryCust.Gallery.AllowHoverImages = true; galleryCust.Gallery.AllowMarqueeSelection = true; galleryCust.Gallery.AutoFitColumns = false; galleryCust.Gallery.CheckDrawMode = DevExpress.XtraBars.Ribbon.Gallery.CheckDrawMode.ImageAndText; galleryCust.Gallery.ColumnCount = 4; galleryCust.Gallery.DrawImageBackground = false; galleryCust.Gallery.ItemCheckMode = DevExpress.XtraBars.Ribbon.Gallery.ItemCheckMode.SingleRadio; galleryCust.Gallery.ItemImageLayout = DevExpress.Utils.Drawing.ImageLayoutMode.MiddleRight; galleryCust.Gallery.ItemImageLocation = DevExpress.Utils.Locations.Left; galleryCust.Gallery.ShowGroupCaption = true; galleryCust.Gallery.ShowItemText = true; galleryCust.Gallery.ShowScrollBar = DevExpress.XtraBars.Ribbon.Gallery.ShowScrollBar.Auto; //galleryCust.LookAndFeel.UseDefaultLookAndFeel = false; #endregion #region Grid1 formatting gridControl1.Dock = DockStyle.Fill; gridView1.GroupFormat = "{1}"; //gridView1.Columns[5].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; //gridView1.Columns[5].DisplayFormat.FormatString = "#,##0.00"; gridView1.OptionsBehavior.FocusLeaveOnTab = true; gridView1.OptionsBehavior.Editable = false; gridView1.OptionsBehavior.ReadOnly = true; gridView1.OptionsView.ShowGroupPanel = false; gridView1.OptionsView.ShowIndicator = false; gridView1.OptionsCustomization.AllowColumnMoving = false; gridView1.OptionsCustomization.AllowRowSizing = false; gridView1.OptionsCustomization.AllowSort = false; gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.RowSelect; gridView1.OptionsSelection.UseIndicatorForSelection = false; gridView1.RowHeight = 28; #endregion }
public frmCallTxn(InfoPos.Core.Core core, DataTable DT) { InitializeComponent(); _core = core; _DT = DT; InfoPos.Resource asd = new InfoPos.Resource(); simpleButton1.Image = asd.GetImage("button_ok"); //simpleButton1.Image = _core.Resource.GetImage("button_ok"); simpleButton2.Image = _core.Resource.GetImage("navigate_cancel"); }
public UserProp(Core.Core core, int UserNo) { InitializeComponent(); _core = core; _userno = UserNo; InitEvents(); InitToggles(); picData.Text = "Зураг харах"; RefreshPass(); }
public frmBillShow(InfoPos.Core.Core core) { InitializeComponent(); _core = core; //_salesno = salesno; gridView1.FocusedRowChanged += gridView1_FocusedRowChanged; gridView1.RowCellClick += gridView1_RowCellClick; InitGrid(); }
public FormCustContactType(InfoPos.Core.Core core) { InitializeComponent(); _core = core; Init(); this.FieldLinkSetSaveState(); if (_core.Resource != null) { this.Resource = _core.Resource; } }
public frmExtendService(InfoPos.Core.Core core, string prodname) { InitializeComponent(); this.ucNumpad1.EventClickExtraButton += ucNumpad1_EventClickExtraButton; _core = core; lblProdName.Text = prodname; ucNumpad1.ExtraShow2 = true; ucNumpad1.ExtraShow3 = true; ucNumpad1.ExtraText2 = "OK"; ucNumpad1.ExtraText3 = "Гарах"; }
public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel) { try { _core = (InfoPos.Core.Core)param; _resource = _core.Resource; _kb = new TouchKeyboard(); _kb.Enable = _core.IsTouch; this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel) { try { _core = (InfoPos.Core.Core)param; _resource = _core.Resource; _kb = new TouchKeyboard(); if (_core.IsTouch == true) { _kb.Enable = true; } else { _kb.Enable = false; } //this.ucPledgeSearch1.Core = _core; //this.ucPledgeSearch1.Remote = _core.RemoteObject; //this.ucPledgeSearch1.Resource = _resource; //this.ucPledgeSearch1.TouchKeyboard = _kb; //this.ucPledgeList1.Core = _core; //this.ucPledgeList1.Remote = _core.RemoteObject; //this.ucPledgeList1.Resource = _resource; //this.ucPledgeList1.TouchKeyboard = _kb; //this.ucRentList1.Core = _core; //this.ucRentList1.Remote = _core.RemoteObject; //this.ucRentList1.Resource = _resource; //this.ucRentList1.TouchKeyboard = _kb; //this.ucCustSearch1.Core = _core; //this.ucCustSearch1.Remote = _core.RemoteObject; //this.ucCustSearch1.Resource = _core.Resource; //this.ucCustSearch1.TouchKeyboard = _kb; this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel) { try { _core = (InfoPos.Core.Core)param; if (_core != null) { _remote = _core.RemoteObject; _resource = _core.Resource; } this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public frmRentSearch(InfoPos.Core.Core core) { InitializeComponent(); this.Core = core; this.ResizeRedraw = true; this.FormClosing += frmSearch_FormClosing; gridView1.OptionsBehavior.ReadOnly = true; gridView1.OptionsBehavior.Editable = false; gridView1.OptionsCustomization.AllowGroup = false; gridView1.OptionsView.AnimationType = DevExpress.XtraGrid.Views.Base.GridAnimationType.NeverAnimate; gridView1.OptionsView.ColumnAutoWidth = false; //gridView1.OptionsView.ShowAutoFilterRow = false; gridView1.OptionsView.ShowGroupPanel = false; gridView1.OptionsView.ShowIndicator = false; gridView1.OptionsView.RowAutoHeight = true; gridView1.Appearance.Row.Font = new Font("Tahoma", 10.0F); _layoutfilename = string.Format(@"{0}\Data\Layout_{1}.xml", Static.WorkingFolder, this.GetType().Name); }
int status = 0; // 0-Shift bill, 1-Pos bill #endregion #region Control Events public frmPosClosureReport(InfoPos.Core.Core core) { InitializeComponent(); _core = core; }
public UserProp(Core.Core core) : this(core, 0) { }