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.Remote = _core.RemoteObject; //this.ucSaleSearch1.Resource = _resource; //this.ucCustSearch1.Remote = _core.RemoteObject; //this.ucCustSearch1.Resource = _resource; //this.ucRentTag1.Core = _core; //this.ucRentList1.Remote = _core.RemoteObject; //this.ucRentList1.Resource = _resource; this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public Core() { try { resource = new InfoPos.Resource(); moRemote = new ISM.CUser.Remote(); _xmlcachename = string.Format(@"{0}\Data\Settings.xml", lib.WorkingFolder); _xmlcache = ISM.Lib.Cache.XMLCacheOpen(_xmlcachename); mFontName = "Arial"; mFontSize = 8; moRemote.ApplicationName = "InfoPos"; moRemote.ApplicationTitle = "InfoPos system"; mApplicationPath = Application.StartupPath; mTerminalSkin = "0"; mWindowType = "0"; mTempPath = CacheGetStr("frmOption_TempPath", ""); mReportPathIn = CacheGetStr("frmOption_ReportPathIn", ""); mReportPathOut = CacheGetStr("frmOption_ReportPathOut", ""); mDynamicPathIn = CacheGetStr("frmOption_DynamicPathIn", ""); mDynamicPathOut = CacheGetStr("frmOption_DynamicPathOut", ""); mSlipPathIn = CacheGetStr("frmOption_SlipsPathIn", ""); mSlipPathOut = CacheGetStr("frmOption_SlipsPathOut", ""); mCustReportPathIn = CacheGetStr("frmOption_CustReportPathIn", ""); mTerminalSkin = CacheGetStr("frmOption_TerminalSkin", "0"); mWindowType = CacheGetStr("frmOption_WindowType", "0"); moRemote.Received += new ISM.CUser.Remote.DelegateReceived(moRemote_Received); } catch {} }
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 void Init(string buttonkey, TouchLinkItem item, Form parent, object param, ref bool cancel) { try { _touchkeyboard = new ISM.Touch.TouchKeyboard(); _core = (InfoPos.Core.Core)param; _resource = _core.Resource; 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 { _kb = new TouchKeyboard(); _core = (InfoPos.Core.Core)param; _resource = _core.Resource; ucSaleSearchToBill.Remote = _core.RemoteObject; ucSaleSearchToBill.Core = _core; ucSaleSearchToBill.Resource = _core.Resource; ucBill.remote = _core.RemoteObject; ucBill.kb = _kb; ucBill.core = _core; this.MdiParent = parent; this.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }