protected override RepositoryItemPopupBase CreateRepositoryItem() { item = base.CreateRepositoryItem() as RepositoryItemPopupContainerEdit; if (DateFilterControl.Controls.Count > 0) { DateCalendar1 = CreateCalendar(DateCalendar1, DateCalendar.SelectionStart, DateCalendar.Top, DateCalendar.Left); DateCalendar1.Visible = false; DateCalendar2 = CreateCalendar(DateCalendar2, DateCalendar.SelectionStart, DateCalendar1.Top, DateCalendar.Left + DateCalendar1.Width); DateCalendar2.Visible = false; Greater = GetCheckEditByName(Localizer.Active.GetLocalizedString(StringId.FilterClauseGreater)); Less = GetCheckEditByName(Localizer.Active.GetLocalizedString(StringId.FilterClauseLess)); Between = GetCheckEditByName(Localizer.Active.GetLocalizedString(StringId.FilterClauseBetween)); Greater.CheckedChanged += CheckedChanged; Less.CheckedChanged += CheckedChanged; Between.CheckedChanged += CheckedChanged; foreach (Control ctrl in DateFilterControl.Controls) { if (ctrl is CheckEdit) { if (NotOurControl(ctrl as CheckEdit)) { (ctrl as CheckEdit).CheckedChanged += OriginalDateFilterPopup_CheckedChanged; } } } } return(item); }
protected override RepositoryItemPopupBase CreateRepositoryItem() { item = base.CreateRepositoryItem() as RepositoryItemPopupContainerEdit; DateFilterControl = item.PopupControl.Controls.OfType <PopupOutlookDateFilterControl>().First(); customCheck = GetCheckEdit(); customCheck.Visible = false; if (View.treeListSource != null && DateFilterControl.Controls.Count > 0) { CreateTreeList(); DateFilterControl.Controls.Add(treelist); foreach (Control ctrl in DateFilterControl.Controls) { CheckEdit ce = (ctrl as CheckEdit); if (ce != null) { if (ce.Text != View.customName) { ce.CheckedChanged += OriginalDateFilterPopup_CheckedChanged; } } else { DateControlEx dateControlEx = (ctrl as DateControlEx); if (dateControlEx != null) { dateControlEx.Click += dateControlEx_Click; } } } item.PopupFormMinSize = new Size(440, 280 + treelist.Height); } return(item); }
bool isError = false; //bien ghi nhan co loi khi cham cong private void frmChamcong_Load(object sender, EventArgs e) { riPopup = new RepositoryItemPopupContainerEdit(); panelCong.Visible = false; //table Loai Cong dtLoaiCong = _dbData.GetDataTable("select * from LoaiCong where NgungSuDung='0' order by LoaiCongLam "); dvLoaiCong = new DataView(dtLoaiCong); //kỳ kế toán if (Config.GetValue("KyKeToan") != null) { spinThang.Value = Convert.ToInt16(Config.GetValue("KyKeToan").ToString()); } //Chấm công từ ngày đến ngày if (spinThang.Value.ToString() != "") { dtpFrom.DateTime = new DateTime(year, Convert.ToInt16(spinThang.Value), 01); int numDayofMonth = DateTime.DaysInMonth(year, Convert.ToInt16(spinThang.Value)); dtpTo.DateTime = new DateTime(year, Convert.ToInt16(spinThang.Value), numDayofMonth); } //Công trình //bindCongTrinh(); //Phòng ban bindPhongban(); //Danh muc loai cong bindDMLoaiCong(); groupStyle.EditValue = 0; gridLoaiCong.Visible = false; dtChamCong = new DataTable(); }
public override void Dispose() { if (DateCalendar1 != null) { DateCalendar1.EditDateModified -= DateCalendar_SelectionChanged; } if (DateCalendar2 != null) { DateCalendar2.EditDateModified -= DateCalendar_SelectionChanged; } foreach (Control ctrl in DateFilterControl.Controls) { if (ctrl is CheckEdit) { if (NotOurControl(ctrl as CheckEdit)) { (ctrl as CheckEdit).CheckedChanged -= OriginalDateFilterPopup_CheckedChanged; } } } try { this.View.ActiveFilterString = GetFilterCriteriaByControlState().ToString(); } catch { } DateCalendar1.Dispose(); DateCalendar2.Dispose(); base.Dispose(); if (dateCalendar != null) { dateCalendar.Dispose(); dateCalendar = null; } if (Greater != null) { Greater.Dispose(); Greater = null; } if (Less != null) { Less.Dispose(); Less = null; } if (Between != null) { Between.Dispose(); Between = null; } if (dateFilterControl != null) { dateFilterControl.Dispose(); dateFilterControl = null; } if (item != null) { item.Dispose(); item = null; } }
public static void InitEdit(this RepositoryItemPopupContainerEdit edit, string layoutEntityName, string filterEntityName, bool isMarkCheck) { edit.QueryResultValue += (sender, e) => { RepositoryItemPopupContainerEdit editValue = sender as RepositoryItemPopupContainerEdit; if (editValue == null) { return; } PopupContainerControlExtention popupSample = editValue.Properties.PopupControl as PopupContainerControlExtention; if (popupSample == null) { return; } var selectedList = editValue.GetSelection(); if (selectedList.Count > 0) { e.Value = selectedList[0]; } }; edit.EditValueChanged += (sender, e) => { RepositoryItemPopupContainerEdit editValue = sender as RepositoryItemPopupContainerEdit; if (editValue == null) { return; } PopupContainerControlExtention popupSample = editValue.Properties.PopupControl as PopupContainerControlExtention; if (popupSample == null) { return; } popupSample.LoadUserData(); }; edit.QueryDisplayText += (sender, e) => { RepositoryItemPopupContainerEdit editValue = sender as RepositoryItemPopupContainerEdit; if (editValue == null) { return; } PopupContainerControlExtention popupSample = editValue.Properties.PopupControl as PopupContainerControlExtention; if (popupSample == null) { return; } e.DisplayText = GetPopupEditText(popupSample); }; PopupContainerControlExtention sample = new PopupContainerControlExtention(layoutEntityName, filterEntityName, isMarkCheck); sample.Tag = edit; edit.Properties.PopupControl = sample; sample.BindData(null); }
private void initializeButton(RepositoryItemPopupContainerEdit button, PopupContainerControl control, Action <CloseUpEventArgs> closeUpHandler) { button.Buttons[0].Kind = ButtonPredefines.Combo; button.PopupControl = control; button.CloseOnOuterMouseClick = false; button.QueryDisplayText += (o, e) => OnEvent(queryDisplayText, e); button.CloseUp += (o, e) => OnEvent(closeUpHandler, e); button.CloseUpKey = new KeyShortcut(Keys.Enter); button.AllowDropDownWhenReadOnly = DefaultBoolean.False; }
private void SetDateFilterControl(RepositoryItemPopupContainerEdit item) { foreach (Control ctrl in item.PopupControl.Controls) { if (ctrl is PopupOutlookDateFilterControl) { dateFilterControl = ctrl as PopupOutlookDateFilterControl; break; } } }
public ExtendPopupGridEdit() : base() { IsInitPopView = false; InitializeComponent(); RepositoryItemPopupContainerEdit _popContainer = (this.fProperties as RepositoryItemPopupContainerEdit); _popContainer.PopupControl = this.popCrSend; _popContainer.CloseOnLostFocus = true; _popContainer.ShowPopupCloseButton = false; }
public static void InitEdit(this RepositoryItemPopupContainerEdit edit, List <GridColumn> columns, object dataSource, string displayName, bool isMarkCheck) { edit.QueryResultValue += edit_QueryResultValue; edit.EditValueChanged += edit_EditValueChanged; edit.QueryDisplayText += edit_QueryDisplayText; PopupContainerControlExtention sample = new PopupContainerControlExtention(columns, dataSource, displayName, isMarkCheck); sample.Tag = edit; edit.Properties.PopupControl = sample; sample.BindData(dataSource); }
private void InitProject(string groupName, RibbonPageGroup ribbonGroup) { BarEditItem projectItem = new BarEditItem(); projectItem.Width = 100; projectItem.Caption = GetLocalizedCaption("ProjectName"); projectItem.CaptionAlignment = DevExpress.Utils.HorzAlignment.Near; projectData = new RepositoryItemPopupContainerEdit(); projectData.InitEdit("Project", "", true); projectItem.Edit = projectData; ribbonGroup.ItemLinks.Add(projectItem, true); }
private void InitTechnicianPerson(string groupName, RibbonPageGroup ribbonGroup) { BarEditItem technicianItem = new BarEditItem(); technicianItem.Width = 100; technicianItem.Caption = GetLocalizedCaption("TechnologyPerson"); technicianItem.CaptionAlignment = DevExpress.Utils.HorzAlignment.Near; technicianData = new RepositoryItemPopupContainerEdit(); technicianData.InitEdit("User", "Department", true); technicianItem.Edit = technicianData; ribbonGroup.ItemLinks.Add(technicianItem); }
private void InitSalePerson(string groupName, RibbonPageGroup ribbonGroup) { BarEditItem saleItem = new BarEditItem(); saleItem.Width = 100; saleItem.Caption = GetLocalizedCaption("OwnerPerson"); saleItem.CaptionAlignment = DevExpress.Utils.HorzAlignment.Near; saleData = new RepositoryItemPopupContainerEdit(); saleData.InitEdit("User", "Department", true); saleItem.Edit = saleData; ribbonGroup.ItemLinks.Add(saleItem, true); }
/// <summary> /// 创建GridView的列编辑为PopupContainerEdit /// </summary> /// <param name="gridColumn">GridColumn列对象</param> /// <returns></returns> public static RepositoryItemPopupContainerEdit CreatePopupContainerEdit(this GridColumn gridColumn) { RepositoryItemPopupContainerEdit repositoryItem = new RepositoryItemPopupContainerEdit { AutoHeight = false }; gridColumn.View.GridControl.RepositoryItems.Add(repositoryItem); gridColumn.ColumnEdit = repositoryItem; repositoryItem.CloseUpKey = new KeyShortcut(Keys.Space); return(repositoryItem); }
public static void InitEdit(this RepositoryItemPopupContainerEdit edit, string layoutEntityName, string filterEntityName, bool isMarkCheck, CriteriaOperator filter) { edit.QueryResultValue += edit_QueryResultValue; edit.EditValueChanged += edit_EditValueChanged; edit.QueryDisplayText += edit_QueryDisplayText; PopupContainerControlExtention sample = new PopupContainerControlExtention(layoutEntityName, filterEntityName, isMarkCheck, filter); sample.Tag = edit; edit.Properties.PopupControl = sample; sample.BindData(null); }
private void InitManagerPerson(string groupName, RibbonPageGroup ribbonGroup) { BarEditItem managerItem = new BarEditItem(); managerItem.Width = 100; managerItem.Caption = GetLocalizedCaption("ProjectManager"); managerItem.CaptionAlignment = DevExpress.Utils.HorzAlignment.Near; managerData = new RepositoryItemPopupContainerEdit(); managerData.InitEdit("User", "Department", true); managerItem.Edit = managerData; ribbonGroup.ItemLinks.Add(managerItem); }
public static RepositoryItemPopupContainerEdit CreateTreePopupContainerEdit(this TreeListColumn treeColumn) { RepositoryItemPopupContainerEdit repositoryItem = new RepositoryItemPopupContainerEdit { AutoHeight = false }; treeColumn.TreeList.RepositoryItems.Add(repositoryItem); treeColumn.ColumnEdit = repositoryItem; repositoryItem.CloseUpKey = new KeyShortcut(Keys.Space); return(repositoryItem); }
private RepositoryItemPopupContainerEdit CreateItem() { RepositoryItemPopupContainerEdit item = new RepositoryItemPopupContainerEdit(); item.PopupControl = CreatePopupControl(); item.ShowPopupCloseButton = item.ShowPopupShadow = false; item.PopupSizeable = false; item.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; item.QueryPopUp += OnPopup; item.CloseUp += OnCloseUp; view.GridControl.RepositoryItems.Add(item); return(item); }
public void AddPopupColumn(string sColumnNameCreate, string sText) { RepositoryItemPopupContainerEdit temp = new RepositoryItemPopupContainerEdit(); grdClave.RepositoryItems.Add(temp); tabla.Columns.Add(sColumnNameCreate); gridView1.Columns.Add(); grdClave.MainView.BeginDataUpdate(); gridView1.PopulateColumns(); grdClave.MainView.EndDataUpdate(); temp.NullText = sText; (grdClave.MainView as GridView).Columns.ColumnByFieldName(sColumnNameCreate).ColumnEdit = temp; gridView1.BestFitColumns(); temp.Click += new EventHandler(temp_Click); }
public PopupContainerEditPopupListBoxHelper(RepositoryItemPopupContainerEdit popupContainerEdit) { RepositoryItem = popupContainerEdit; RepositoryItem.Popup += RepositoryItem_Popup; PopuControl = CreatePopuControl(); ListBox = CreateListBoxControl(); ListBox.SelectionMode = System.Windows.Forms.SelectionMode.One; ListBox.Dock = System.Windows.Forms.DockStyle.Fill; ListBox.Click += ListBox_Click; PopuControl.Controls.Add(ListBox); RepositoryItem.TextEditStyle = TextEditStyles.Standard; RepositoryItem.PopupControl = PopuControl; SubscribeEditor(); }
public void AddPopupColumn(string sColumnNameCreate,string sText) { if (tabla.Columns["Materia"] != null) { return; }//tabla.Columns.Remove("Materia"); } RepositoryItemPopupContainerEdit temp = new RepositoryItemPopupContainerEdit(); grdMaestroMateria.RepositoryItems.Add(temp); tabla.Columns.Add(sColumnNameCreate); gridView1.Columns.Add(); grdMaestroMateria.MainView.BeginDataUpdate(); gridView1.PopulateColumns(); grdMaestroMateria.MainView.EndDataUpdate(); temp.NullText = sText; (grdMaestroMateria.MainView as GridView).Columns.ColumnByFieldName(sColumnNameCreate).ColumnEdit = temp; gridView1.BestFitColumns(); temp.Click += new EventHandler(temp_Click); }
/// <summary> /// 带参构造函数,用于直接使用 /// </summary> /// <param name="barBtnSelect"></param> /// <param name="dTable"></param> public ProductSelect(bool barBtnSelect, DataTable dTable, RepositoryItemPopupContainerEdit repositoryItemPopupContainerEditSelect) { InitializeComponent(); this.dTable = dTable; if (barBtnSelect == true) { this.barBtnSelect.Visibility = DevExpress.XtraBars.BarItemVisibility.Always; } AddTableColumns(); this.repositoryItemPopupContainerEditSelect = repositoryItemPopupContainerEditSelect; gridCtrlStockItem.DataSource = this.table; AddColumns(); gridViewSelected.BestFitColumns(); gridViewStockItem.BestFitColumns(); }
/// <summary> /// 初始化列表里的多选 /// </summary> /// <param name="p_popContainerEdit"></param> /// <param name="p_view"></param> /// <param name="p_DisplayMemberFieldName"></param> /// <param name="p_EditValueFielName"></param> /// <param name="p_CallBackHandler"></param> void InitCLS(RepositoryItemPopupContainerEdit p_popContainerEdit, GridView p_view, string p_DisplayMemberFieldName, string p_EditValueFielName, BindCheckListPopCallBack p_CallBackHandler) { InitializeComponent(); _RepositoryItemPopupContainerEdit = p_popContainerEdit; _view = p_view; _DisplayMemberFieldName = p_DisplayMemberFieldName; _EditValueFielName = p_EditValueFielName; _view.FocusedRowChanged += _view_FocusedRowChanged; //2011-11-29新增 _RepositoryItemPopupContainerEdit.Leave += new EventHandler(_RepositoryItemPopupContainerEditLeave); ChkPopList.ItemCheck += new DevExpress.XtraEditors.Controls.ItemCheckEventHandler(ChkPopGridList_ItemCheck); p_CallBackHandler(ChkPopList);//绑定数据源 _RepositoryItemPopupContainerEdit.PopupControl = PopContainer; PopContainer.Height = 200; }
public PopupContainerEditHelper(RepositoryItemPopupContainerEdit popupContainerEdit) { RepositoryItem = popupContainerEdit; PopuControl = CreatePopuControl(); CheckedListBox = CreateCheckedListBoxControl(); CheckedListBox.Dock = System.Windows.Forms.DockStyle.Fill; //CheckedListBox.CheckOnClick = true; PopuControl.Controls.Add(CheckedListBox); RepositoryItem.TextEditStyle = TextEditStyles.Standard; RepositoryItem.PopupControl = PopuControl; SubscribeEditor(); }
static void edit_EditValueChanged(object sender, EventArgs e) { RepositoryItemPopupContainerEdit editValue = sender as RepositoryItemPopupContainerEdit; if (editValue == null) { return; } PopupContainerControlExtention popupSample = editValue.Properties.PopupControl as PopupContainerControlExtention; if (popupSample == null) { return; } popupSample.LoadUserData(); }
static void edit_QueryDisplayText(object sender, QueryDisplayTextEventArgs e) { RepositoryItemPopupContainerEdit editValue = sender as RepositoryItemPopupContainerEdit; if (editValue == null) { return; } PopupContainerControlExtention popupSample = editValue.Properties.PopupControl as PopupContainerControlExtention; if (popupSample == null) { return; } e.DisplayText = GetPopupEditText(popupSample); }
public Form1() { InitializeComponent(); InitData(); gridControl1.DataSource = dv; DevExpress.XtraGrid.FilterEditor.ViewFilterColumnCollection columnCollection = new DevExpress.XtraGrid.FilterEditor.ViewFilterColumnCollection(gridView1); RepositoryItemPopupContainerEdit ri = new RepositoryItemPopupContainerEdit(); ri.PopupControl = popupContainerControl1; ri.CloseOnOuterMouseClick = false; ri.QueryResultValue += new DevExpress.XtraEditors.Controls.QueryResultValueEventHandler(ri_QueryResultValue); ri.QueryPopUp += new CancelEventHandler(ri_QueryPopUp); columnCollection["Date"].SetColumnEditor(ri); columnCollection["ID"].SetColumnEditor(new RepositoryItemCalcEdit()); filterControl1.SetFilterColumnsCollection(columnCollection); }
public static ArrayList GetSelectionObjects(this RepositoryItemPopupContainerEdit edit) { PopupContainerControlExtention sample = edit.Properties.PopupControl as PopupContainerControlExtention; ArrayList result = new ArrayList(); if (sample == null) { return(result); } if (sample.Selection.Count <= 0) { return(result); } for (int rIndex = 0; rIndex < sample.Selection.Count; rIndex++) { result.Add(sample.Selection[rIndex]); } return(result); }
public BasePanelPopupHelper(RepositoryItemPopupContainerEdit popupEdit, GridColumn col, BasePanelRepositoryPopup.GetBusinessObjectHandler getObjectHandler) { Init(); m_Column = col; m_GetObjectHandler = getObjectHandler; m_repositoryPopupEdit = popupEdit; popupEdit.PropertiesChanged += Popup_Property_Changed; popupEdit.CloseOnOuterMouseClick = false; popupEdit.PopupSizeable = false; //Properties.CloseOnLostFocus = False popupEdit.TextEditStyle = TextEditStyles.DisableTextEditor; popupEdit.ReadOnly = true; popupEdit.ShowPopupCloseButton = false; popupEdit.AutoHeight = false; popupEdit.QueryPopUp += OnQueryPopUp; popupEdit.QueryCloseUp += OnQueryCloseUp; popupEdit.CloseUp += OnCloseUp; popupEdit.QueryDisplayText += OnQueryDisplayText; }
protected override RepositoryItemPopupBase CreateRepositoryItem() { item = base.CreateRepositoryItem() as RepositoryItemPopupContainerEdit; if (DateFilterControl.Controls.Count > 0) { customCheck = GetCheckEdit(); customCheck.CheckedChanged += CheckedChanged; foreach (Control ctrl in DateFilterControl.Controls) { CheckEdit ce = (ctrl as CheckEdit); if (ce != null) { if (ce.Text != customName) { ce.CheckedChanged += OriginalDateFilterPopup_CheckedChanged; } } } } return(item); }
static void edit_QueryResultValue(object sender, QueryResultValueEventArgs e) { RepositoryItemPopupContainerEdit editValue = sender as RepositoryItemPopupContainerEdit; if (editValue == null) { return; } PopupContainerControlExtention popupSample = editValue.Properties.PopupControl as PopupContainerControlExtention; if (popupSample == null) { return; } var selectedList = editValue.GetSelection(); if (selectedList.Count > 0) { e.Value = selectedList[0]; } }
public static List <Guid> GetSelection(this RepositoryItemPopupContainerEdit edit) { PopupContainerControlExtention sample = edit.Properties.PopupControl as PopupContainerControlExtention; List <Guid> result = new List <Guid>(); if (sample == null) { return(result); } if (sample.Selection.Count <= 0) { return(result); } for (int rIndex = 0; rIndex < sample.Selection.Count; rIndex++) { var selectItem = sample.Selection[rIndex]; var selectValue = selectItem.GetType().GetProperty(sample.LayOutEntityKey).GetValue(selectItem, null); result.Add((Guid)selectValue); } return(result); }
private void Form1_Load(object sender, EventArgs e) { RepositoryItemPopupContainerEdit rePopupContainer = propertyGridControl1.RepositoryItems.Add("PopupContainerEdit") as RepositoryItemPopupContainerEdit; rePopupContainer.PopupControl = popupContainerControl1; rePopupContainer.QueryPopUp += new CancelEventHandler(rePopupContainer_QueryPopUp); rePopupContainer.QueryResultValue += new DevExpress.XtraEditors.Controls.QueryResultValueEventHandler(rePopupContainer_QueryResultValue); propertyGridControl1.DefaultEditors.Add(typeof(DataTable), rePopupContainer); rePopupContainer.CustomDisplayText += new DevExpress.XtraEditors.Controls.CustomDisplayTextEventHandler(rePopupContainer_CustomDisplayText); MyObject newObject = new MyObject(); propertyGridControl1.SelectedObject = newObject; gridControl1.DataSource = new BindingList <MyObject>() { newObject }; gridControl1.ForceInitialize(); gridView1.Columns["MySpreadSheet"].ColumnEdit = rePopupContainer; }
public Form1() { InitializeComponent(); InitGrid(); RepositoryItemPopupContainerEdit ri = new RepositoryItemPopupContainerEdit(); ri.QueryResultValue += ri_QueryResultValue; ri.EditValueChanged += ri_EditValueChanged; ri.Popup += ri_Popup; ri.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; PopupContainerControl popupControl = new PopupContainerControl(); popupControl.Controls.Add(popupGridControl1); popupControl.Size = new System.Drawing.Size(500, 300); ri.PopupControl = popupControl; gridControl2.RepositoryItems.Add(ri); gridView1.Columns["Name"].ColumnEdit = ri; popupContainerEdit1.Properties.PopupControl = popupContainerControl1; popupContainerEdit1.Properties.QueryResultValue += Properties_QueryResultValue; popupContainerEdit1.Properties.EditValueChanged += Properties_EditValueChanged; popupContainerEdit1.Properties.Popup += Properties_Popup; }
/// <summary> /// /// </summary> /// <param name="gv"></param> /// <param name="dr"></param> /// <param name="tableName"></param> /// <param name="index"></param> /// <param name="isuseredit"></param> /// <param name="formID"></param> /// <returns></returns> public static GridColumn GridCreateColumn(Form frm, GridView gv, DataRow drConfig, string tableName, int index, bool allowEdit, int formID, object lpkBindSource, SunriseLookUp.SunriseLookUpEvent slookHandler) { GridColumn gc = new GridColumn(); string sControlType = drConfig["sControlType"].ToString(); string sFieldName = drConfig["sFieldName"].ToString(); string sLookupNo = drConfig["sLookupNo"].ToString(); string sColumnType = drConfig["sColumnType"].ToString(); #region 设置ColumnEdit switch (sControlType) { case "lkp": #region LookUp查询 if (!string.IsNullOrEmpty(sLookupNo) && lpkBindSource != null) { SunriseLookUp lkp = new SunriseLookUp(); lkp.Name = string.Format("collkp{0}{1}", tableName, sFieldName); lkp.DataBindings.Add("EditValue", lpkBindSource, sFieldName); Base.InitLookup(lkp, sLookupNo); string sLookupAutoSetControl = drConfig["sLookupAutoSetControl"].ToString(); if (!string.IsNullOrEmpty(sLookupAutoSetControl)) { string[] sItem = Public.GetSplitString(sLookupAutoSetControl, ","); foreach (var s in sItem) { string[] ss = Public.GetSplitString(s, "="); lkp.AutoSetValue(ss[0], ss[1]); } } RepositoryItemButtonEdit btnRepositoryItem = new RepositoryItemButtonEdit(); btnRepositoryItem.ButtonClick += lkp.LookUpSelfClick; btnRepositoryItem.TextEditStyle = TextEditStyles.DisableTextEditor; //加这句是让了焦点更新,Grid中才会显示新的数据值,其实在后台是已经存在了的,只是在Grid中没有显示出来 //此处设置为查询完成后自动跳转到Grid中的下一列中 if (slookHandler != null) lkp.LookUpAfterPost += slookHandler; //if (slookHandler != null) lkp.LookUpAfterPost += new SunriseLookUp.SunriseLookUpEvent(lkp_LookUpAfterPost); gc.ColumnEdit = btnRepositoryItem; gv.GridControl.RepositoryItems.Add(btnRepositoryItem); } break; #endregion case "cbx": #region 下拉框 if (!string.IsNullOrEmpty(sLookupNo)) { RepositoryItemImageComboBox cbxRepositoryItem = new RepositoryItemImageComboBox(); Base.InitRepositoryItemComboBox(cbxRepositoryItem, sLookupNo, (string)drConfig["sFieldType"]); gc.ColumnEdit = cbxRepositoryItem; gv.GridControl.RepositoryItems.Add(cbxRepositoryItem); } break; #endregion case "btxt": #region 带按钮的文本框 RepositoryItemMemoExEdit btxtRepositoryItem = new RepositoryItemMemoExEdit(); gc.ColumnEdit = btxtRepositoryItem; gv.GridControl.RepositoryItems.Add(btxtRepositoryItem); break; #endregion //modify by han #region //多行文本框 case "mtxt": RepositoryItemMemoExEdit mtxtRepositoryItem = new RepositoryItemMemoExEdit(); mtxtRepositoryItem.Name = "colmtxt" + tableName + drConfig["sFieldName"].ToString(); gc.ColumnEdit = mtxtRepositoryItem; gv.GridControl.RepositoryItems.Add(mtxtRepositoryItem); break; case "dett": RepositoryItemDateEdit dettRespositoryItem = new RepositoryItemDateEdit(); dettRespositoryItem.Name = "coldett" + tableName + drConfig["sFieldName"].ToString(); dettRespositoryItem.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; dettRespositoryItem.DisplayFormat.FormatString = "g"; dettRespositoryItem.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; dettRespositoryItem.EditFormat.FormatString = "g"; dettRespositoryItem.EditMask = "g"; gc.ColumnEdit = dettRespositoryItem; gv.GridControl.RepositoryItems.Add(dettRespositoryItem); break; //MLookUp查询 case "mlkp": { if (!string.IsNullOrEmpty(drConfig["sLookupNo"].ToString())) { SunriseMLookUp mlkp = new SunriseMLookUp(); mlkp.Name = "colmlkp" + tableName + drConfig["sFieldName"].ToString(); mlkp.DataBindings.Add("EditValue", lpkBindSource, drConfig["sFieldName"].ToString()); mlkp.IsUsedInGrid = true; Base.InitMLookup(mlkp, drConfig["sLookupNo"].ToString()); if (!string.IsNullOrEmpty(drConfig["sLookupAutoSetControl"].ToString())) { string[] sItem = Public.GetSplitString(drConfig["sLookupAutoSetControl"].ToString(), ","); foreach (var s in sItem) { string[] ss = Public.GetSplitString(s, "="); mlkp.AutoSetValue(ss[0], ss[1]); } } RepositoryItemPopupContainerEdit btnRepositoryItem = new RepositoryItemPopupContainerEdit(); btnRepositoryItem.Name = "gridmlkp" + tableName + drConfig["sFieldName"].ToString(); //原本默认的显示Popup的按钮隐藏掉 btnRepositoryItem.Buttons[0].Visible = false; btnRepositoryItem.Buttons.Add(new EditorButton(ButtonPredefines.Ellipsis)); btnRepositoryItem.ButtonClick += mlkp.LookUpSelfClick; btnRepositoryItem.TextEditStyle = TextEditStyles.Standard; btnRepositoryItem.Popup += mlkp.mlkpDataNo_Popup; btnRepositoryItem.KeyDown += mlkp.mlkpDataNo_KeyDown; btnRepositoryItem.Closed += mlkp.mlkpDataNo_Closed; gv.GridControl.PreviewKeyDown += mlkp.mlkpDataNo_PreviewKeyDown; btnRepositoryItem.PopupControl = mlkp.mlkpPopup; btnRepositoryItem.EditValueChanged += mlkp.mlkpDataNo_TextChanged; //加这句是让了焦点更新,Grid中才会显示新的数据值,其实在后台是已经存在了的,只是在Grid中没有显示出来 //此处设置为查询完成后自动跳转到Grid中的下一列中 // mlkp.LookUpAfterPost += new SunriseLookUp.SunriseLookUpEvent(lkp_LookUpAfterPost); mlkp.LookUpAfterPost += slookHandler; gc.ColumnEdit = btnRepositoryItem; gv.GridControl.RepositoryItems.Add(btnRepositoryItem); frm.Controls.Add(mlkp); mlkp.Location = new Point(frm.Size.Height / 2, frm.Size.Width / 2); mlkp.SendToBack(); } break; } #endregion } #endregion gc.Caption = LangCenter.Instance.IsDefaultLanguage ? drConfig["sCaption"].ToString() : drConfig["sEngCaption"].ToString(); gc.FieldName = sFieldName; gc.Name = string.Format("col{0}{1}", tableName, sFieldName);//Grid 列命名为col+表名+列名 gc.Width = 120; if (sColumnType == "002" && !SC.CheckAuth(SecurityOperation.Price, formID)) return null;//检测是否有价格权限 if (sColumnType == "003" && !SC.CheckAuth(SecurityOperation.Num, formID)) return null;//检测是否有数量权限 gc.Visible = true; gc.VisibleIndex = index; #region 检测窗体字段设置中是否可编辑 //这里检测的时候是先以窗体设置中的权限优先,窗体上设置不可编辑,用户字段设置可编辑,以窗体上设置为准,不可编辑 bool bEdit = Convert.ToBoolean(drConfig["bEdit"]); //先通过数量和价格权限检测后再设置其用户字段权限 if (bEdit) bEdit = allowEdit; gc.OptionsColumn.AllowEdit = bEdit; #endregion #region Grid Footer显示 string sFooterType = (string)drConfig["sFooterType"]; gc.SummaryItem.FieldName = sFieldName; DevExpress.Data.SummaryItemType sitype = DevExpress.Data.SummaryItemType.None; if (sFooterType == "001") sitype = DevExpress.Data.SummaryItemType.None; //001 无 if (sFooterType == "002") sitype = DevExpress.Data.SummaryItemType.Sum;//002 求和 if (sFooterType == "003") sitype = DevExpress.Data.SummaryItemType.Count;//003 计数 if (sFooterType == "004") sitype = DevExpress.Data.SummaryItemType.Average;//004 平均值 if (sFooterType == "005") sitype = DevExpress.Data.SummaryItemType.Max;//005 最大值 if (sFooterType == "006") sitype = DevExpress.Data.SummaryItemType.Min;//006 最小值 gc.SummaryItem.SummaryType = sitype; if (sitype != DevExpress.Data.SummaryItemType.None) gv.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, sFieldName, gc); #endregion //modify by han //设置非空字段颜色 if (Convert.ToBoolean(drConfig["bSaveData"]) && Convert.ToBoolean(drConfig["bNotNull"])) { gc.AppearanceHeader.ForeColor = Color.FromName(Base.GetSystemParamter("001")); gc.AppearanceHeader.Options.UseForeColor = true; } return gc; }
private void InitializeComponent() { this.gpgLogGrid = new GPGChatGrid(); this.gvLogView = new GridView(); this.colTime = new GridColumn(); this.repositoryItemTimeEdit1 = new RepositoryItemTimeEdit(); this.colType = new GridColumn(); this.colDescription = new GridColumn(); this.colData = new GridColumn(); this.rimMemoEdit3 = new RepositoryItemMemoEdit(); this.rimPictureEdit3 = new RepositoryItemPictureEdit(); this.rimTextEdit = new RepositoryItemTextEdit(); this.riPopup = new RepositoryItemPopupContainerEdit(); this.pcPropertyView = new PopupContainerControl(); this.pgData = new PropertyGridControl(); this.repositoryItemMemoExEdit1 = new RepositoryItemMemoExEdit(); this.btnCancel = new GPGButton(); this.gpgLogGrid.BeginInit(); this.gvLogView.BeginInit(); this.repositoryItemTimeEdit1.BeginInit(); this.rimMemoEdit3.BeginInit(); this.rimPictureEdit3.BeginInit(); this.rimTextEdit.BeginInit(); this.riPopup.BeginInit(); this.pcPropertyView.BeginInit(); this.pcPropertyView.SuspendLayout(); this.pgData.BeginInit(); this.repositoryItemMemoExEdit1.BeginInit(); base.SuspendLayout(); base.ttDefault.DefaultController.AutoPopDelay = 0x3e8; this.gpgLogGrid.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.gpgLogGrid.CustomizeStyle = false; this.gpgLogGrid.EmbeddedNavigator.Name = ""; this.gpgLogGrid.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gpgLogGrid.IgnoreMouseWheel = false; this.gpgLogGrid.Location = new Point(13, 0x4c); this.gpgLogGrid.LookAndFeel.SkinName = "Money Twins"; this.gpgLogGrid.LookAndFeel.UseDefaultLookAndFeel = false; this.gpgLogGrid.MainView = this.gvLogView; this.gpgLogGrid.Name = "gpgLogGrid"; this.gpgLogGrid.RepositoryItems.AddRange(new RepositoryItem[] { this.rimPictureEdit3, this.rimTextEdit, this.rimMemoEdit3, this.riPopup, this.repositoryItemTimeEdit1, this.repositoryItemMemoExEdit1 }); this.gpgLogGrid.ShowOnlyPredefinedDetails = true; this.gpgLogGrid.Size = new Size(0x268, 0x138); this.gpgLogGrid.TabIndex = 0x1c; this.gpgLogGrid.ViewCollection.AddRange(new BaseView[] { this.gvLogView }); this.gvLogView.ActiveFilterString = ""; this.gvLogView.Appearance.ColumnFilterButton.BackColor = Color.Black; this.gvLogView.Appearance.ColumnFilterButton.BackColor2 = Color.FromArgb(20, 20, 20); this.gvLogView.Appearance.ColumnFilterButton.BorderColor = Color.Black; this.gvLogView.Appearance.ColumnFilterButton.ForeColor = Color.Gray; this.gvLogView.Appearance.ColumnFilterButton.Options.UseBackColor = true; this.gvLogView.Appearance.ColumnFilterButton.Options.UseBorderColor = true; this.gvLogView.Appearance.ColumnFilterButton.Options.UseForeColor = true; this.gvLogView.Appearance.ColumnFilterButtonActive.BackColor = Color.FromArgb(20, 20, 20); this.gvLogView.Appearance.ColumnFilterButtonActive.BackColor2 = Color.FromArgb(0x4e, 0x4e, 0x4e); this.gvLogView.Appearance.ColumnFilterButtonActive.BorderColor = Color.FromArgb(20, 20, 20); this.gvLogView.Appearance.ColumnFilterButtonActive.ForeColor = Color.Blue; this.gvLogView.Appearance.ColumnFilterButtonActive.Options.UseBackColor = true; this.gvLogView.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true; this.gvLogView.Appearance.ColumnFilterButtonActive.Options.UseForeColor = true; this.gvLogView.Appearance.Empty.BackColor = Color.Black; this.gvLogView.Appearance.Empty.Options.UseBackColor = true; this.gvLogView.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvLogView.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90); this.gvLogView.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvLogView.Appearance.FilterCloseButton.ForeColor = Color.Black; this.gvLogView.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvLogView.Appearance.FilterCloseButton.Options.UseBackColor = true; this.gvLogView.Appearance.FilterCloseButton.Options.UseBorderColor = true; this.gvLogView.Appearance.FilterCloseButton.Options.UseForeColor = true; this.gvLogView.Appearance.FilterPanel.BackColor = Color.Black; this.gvLogView.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200); this.gvLogView.Appearance.FilterPanel.ForeColor = Color.White; this.gvLogView.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvLogView.Appearance.FilterPanel.Options.UseBackColor = true; this.gvLogView.Appearance.FilterPanel.Options.UseForeColor = true; this.gvLogView.Appearance.FixedLine.BackColor = Color.FromArgb(0x3a, 0x3a, 0x3a); this.gvLogView.Appearance.FixedLine.Options.UseBackColor = true; this.gvLogView.Appearance.FocusedCell.BackColor = Color.Black; this.gvLogView.Appearance.FocusedCell.Font = new Font("Tahoma", 10f); this.gvLogView.Appearance.FocusedCell.ForeColor = Color.White; this.gvLogView.Appearance.FocusedCell.Options.UseBackColor = true; this.gvLogView.Appearance.FocusedCell.Options.UseFont = true; this.gvLogView.Appearance.FocusedCell.Options.UseForeColor = true; this.gvLogView.Appearance.FocusedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.gvLogView.Appearance.FocusedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190); this.gvLogView.Appearance.FocusedRow.Font = new Font("Arial", 9.75f); this.gvLogView.Appearance.FocusedRow.ForeColor = Color.White; this.gvLogView.Appearance.FocusedRow.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvLogView.Appearance.FocusedRow.Options.UseBackColor = true; this.gvLogView.Appearance.FocusedRow.Options.UseFont = true; this.gvLogView.Appearance.FocusedRow.Options.UseForeColor = true; this.gvLogView.Appearance.FooterPanel.BackColor = Color.Black; this.gvLogView.Appearance.FooterPanel.BorderColor = Color.Black; this.gvLogView.Appearance.FooterPanel.Font = new Font("Tahoma", 10f); this.gvLogView.Appearance.FooterPanel.ForeColor = Color.White; this.gvLogView.Appearance.FooterPanel.Options.UseBackColor = true; this.gvLogView.Appearance.FooterPanel.Options.UseBorderColor = true; this.gvLogView.Appearance.FooterPanel.Options.UseFont = true; this.gvLogView.Appearance.FooterPanel.Options.UseForeColor = true; this.gvLogView.Appearance.GroupButton.BackColor = Color.Black; this.gvLogView.Appearance.GroupButton.BorderColor = Color.Black; this.gvLogView.Appearance.GroupButton.ForeColor = Color.White; this.gvLogView.Appearance.GroupButton.Options.UseBackColor = true; this.gvLogView.Appearance.GroupButton.Options.UseBorderColor = true; this.gvLogView.Appearance.GroupButton.Options.UseForeColor = true; this.gvLogView.Appearance.GroupFooter.BackColor = Color.FromArgb(10, 10, 10); this.gvLogView.Appearance.GroupFooter.BorderColor = Color.FromArgb(10, 10, 10); this.gvLogView.Appearance.GroupFooter.ForeColor = Color.White; this.gvLogView.Appearance.GroupFooter.Options.UseBackColor = true; this.gvLogView.Appearance.GroupFooter.Options.UseBorderColor = true; this.gvLogView.Appearance.GroupFooter.Options.UseForeColor = true; this.gvLogView.Appearance.GroupPanel.BackColor = Color.Black; this.gvLogView.Appearance.GroupPanel.BackColor2 = Color.Black; this.gvLogView.Appearance.GroupPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvLogView.Appearance.GroupPanel.ForeColor = Color.White; this.gvLogView.Appearance.GroupPanel.Options.UseBackColor = true; this.gvLogView.Appearance.GroupPanel.Options.UseFont = true; this.gvLogView.Appearance.GroupPanel.Options.UseForeColor = true; this.gvLogView.Appearance.GroupRow.BackColor = Color.Gray; this.gvLogView.Appearance.GroupRow.Font = new Font("Tahoma", 10f); this.gvLogView.Appearance.GroupRow.ForeColor = Color.White; this.gvLogView.Appearance.GroupRow.Options.UseBackColor = true; this.gvLogView.Appearance.GroupRow.Options.UseFont = true; this.gvLogView.Appearance.GroupRow.Options.UseForeColor = true; this.gvLogView.Appearance.HeaderPanel.BackColor = Color.Black; this.gvLogView.Appearance.HeaderPanel.BorderColor = Color.Black; this.gvLogView.Appearance.HeaderPanel.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0); this.gvLogView.Appearance.HeaderPanel.ForeColor = Color.Black; this.gvLogView.Appearance.HeaderPanel.Options.UseBackColor = true; this.gvLogView.Appearance.HeaderPanel.Options.UseBorderColor = true; this.gvLogView.Appearance.HeaderPanel.Options.UseFont = true; this.gvLogView.Appearance.HeaderPanel.Options.UseForeColor = true; this.gvLogView.Appearance.HideSelectionRow.BackColor = Color.Gray; this.gvLogView.Appearance.HideSelectionRow.Font = new Font("Tahoma", 10f); this.gvLogView.Appearance.HideSelectionRow.ForeColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvLogView.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvLogView.Appearance.HideSelectionRow.Options.UseFont = true; this.gvLogView.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvLogView.Appearance.HorzLine.BackColor = Color.FromArgb(0x52, 0x83, 190); this.gvLogView.Appearance.HorzLine.Options.UseBackColor = true; this.gvLogView.Appearance.Preview.BackColor = Color.White; this.gvLogView.Appearance.Preview.Font = new Font("Tahoma", 10f); this.gvLogView.Appearance.Preview.ForeColor = Color.Purple; this.gvLogView.Appearance.Preview.Options.UseBackColor = true; this.gvLogView.Appearance.Preview.Options.UseFont = true; this.gvLogView.Appearance.Preview.Options.UseForeColor = true; this.gvLogView.Appearance.Row.BackColor = Color.Black; this.gvLogView.Appearance.Row.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0xb2); this.gvLogView.Appearance.Row.ForeColor = Color.White; this.gvLogView.Appearance.Row.Options.UseBackColor = true; this.gvLogView.Appearance.Row.Options.UseFont = true; this.gvLogView.Appearance.Row.Options.UseForeColor = true; this.gvLogView.Appearance.RowSeparator.BackColor = Color.White; this.gvLogView.Appearance.RowSeparator.BackColor2 = Color.White; this.gvLogView.Appearance.RowSeparator.Options.UseBackColor = true; this.gvLogView.Appearance.SelectedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.gvLogView.Appearance.SelectedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190); this.gvLogView.Appearance.SelectedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvLogView.Appearance.SelectedRow.ForeColor = Color.White; this.gvLogView.Appearance.SelectedRow.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvLogView.Appearance.SelectedRow.Options.UseBackColor = true; this.gvLogView.Appearance.SelectedRow.Options.UseFont = true; this.gvLogView.Appearance.SelectedRow.Options.UseForeColor = true; this.gvLogView.Appearance.TopNewRow.Font = new Font("Tahoma", 10f); this.gvLogView.Appearance.TopNewRow.ForeColor = Color.White; this.gvLogView.Appearance.TopNewRow.Options.UseFont = true; this.gvLogView.Appearance.TopNewRow.Options.UseForeColor = true; this.gvLogView.Appearance.VertLine.BackColor = Color.FromArgb(0x52, 0x83, 190); this.gvLogView.Appearance.VertLine.Options.UseBackColor = true; this.gvLogView.BorderStyle = BorderStyles.NoBorder; this.gvLogView.Columns.AddRange(new GridColumn[] { this.colTime, this.colType, this.colDescription, this.colData }); this.gvLogView.GridControl = this.gpgLogGrid; this.gvLogView.Name = "gvLogView"; this.gvLogView.OptionsBehavior.AutoPopulateColumns = false; this.gvLogView.OptionsDetail.AllowZoomDetail = false; this.gvLogView.OptionsDetail.EnableMasterViewMode = false; this.gvLogView.OptionsDetail.ShowDetailTabs = false; this.gvLogView.OptionsDetail.SmartDetailExpand = false; this.gvLogView.OptionsSelection.EnableAppearanceFocusedCell = false; this.gvLogView.OptionsSelection.MultiSelect = true; this.gvLogView.OptionsView.RowAutoHeight = true; this.colTime.Caption = "Time"; this.colTime.ColumnEdit = this.repositoryItemTimeEdit1; this.colTime.FieldName = "DateTime"; this.colTime.Name = "colTime"; this.colTime.OptionsColumn.AllowEdit = false; this.colTime.Visible = true; this.colTime.VisibleIndex = 0; this.repositoryItemTimeEdit1.AutoHeight = false; this.repositoryItemTimeEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton() }); this.repositoryItemTimeEdit1.Name = "repositoryItemTimeEdit1"; this.colType.Caption = "Type"; this.colType.FieldName = "LogType"; this.colType.Name = "colType"; this.colType.OptionsColumn.AllowEdit = false; this.colType.Visible = true; this.colType.VisibleIndex = 1; this.colDescription.Caption = "Description"; this.colDescription.FieldName = "Description"; this.colDescription.Name = "colDescription"; this.colDescription.OptionsColumn.AllowEdit = false; this.colDescription.Visible = true; this.colDescription.VisibleIndex = 2; this.colData.Caption = "Data"; this.colData.ColumnEdit = this.rimMemoEdit3; this.colData.FieldName = "Data"; this.colData.Name = "colData"; this.colData.Visible = true; this.colData.VisibleIndex = 3; this.rimMemoEdit3.MaxLength = 500; this.rimMemoEdit3.Name = "rimMemoEdit3"; this.rimPictureEdit3.Name = "rimPictureEdit3"; this.rimPictureEdit3.PictureAlignment = ContentAlignment.TopCenter; this.rimTextEdit.AutoHeight = false; this.rimTextEdit.Name = "rimTextEdit"; this.riPopup.AutoHeight = false; this.riPopup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.riPopup.Name = "riPopup"; this.riPopup.PopupControl = this.pcPropertyView; this.riPopup.Popup += new EventHandler(this.riPopup_Popup); this.pcPropertyView.Controls.Add(this.pgData); this.pcPropertyView.Location = new Point(13, 0xda); this.pcPropertyView.Name = "pcPropertyView"; this.pcPropertyView.Size = new Size(0xdf, 180); this.pcPropertyView.TabIndex = 0x1f; this.pcPropertyView.Text = "popupContainerControl1"; this.pgData.Dock = DockStyle.Fill; this.pgData.Location = new Point(0, 0); this.pgData.Name = "pgData"; this.pgData.Size = new Size(0xdf, 180); this.pgData.TabIndex = 0; this.repositoryItemMemoExEdit1.AutoHeight = false; this.repositoryItemMemoExEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemMemoExEdit1.Name = "repositoryItemMemoExEdit1"; this.btnCancel.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.btnCancel.Appearance.ForeColor = Color.Black; this.btnCancel.Appearance.Options.UseForeColor = true; this.btnCancel.Location = new Point(0x20d, 0x18a); this.btnCancel.LookAndFeel.SkinName = "London Liquid Sky"; this.btnCancel.LookAndFeel.UseDefaultLookAndFeel = false; this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new Size(0x68, 0x17); this.btnCancel.TabIndex = 30; this.btnCancel.Text = "<LOC>Cancel"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new EventHandler(this.btnCancel_Click); base.AutoScaleMode = AutoScaleMode.None; base.ClientSize = new Size(640, 480); base.Controls.Add(this.pcPropertyView); base.Controls.Add(this.btnCancel); base.Controls.Add(this.gpgLogGrid); this.Font = new Font("Verdana", 8f); base.Location = new Point(0, 0); base.Name = "DlgLogWatcher"; this.Text = "Log Watcher"; base.Controls.SetChildIndex(this.gpgLogGrid, 0); base.Controls.SetChildIndex(this.btnCancel, 0); base.Controls.SetChildIndex(this.pcPropertyView, 0); this.gpgLogGrid.EndInit(); this.gvLogView.EndInit(); this.repositoryItemTimeEdit1.EndInit(); this.rimMemoEdit3.EndInit(); this.rimPictureEdit3.EndInit(); this.rimTextEdit.EndInit(); this.riPopup.EndInit(); this.pcPropertyView.EndInit(); this.pcPropertyView.ResumeLayout(false); this.pgData.EndInit(); this.repositoryItemMemoExEdit1.EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
private void createXLSearch() { RepositoryItemPopupContainerEdit repositoryItemPopupContainerEdit1 = new RepositoryItemPopupContainerEdit(); xlselector = new UCPopupSelectorBase(); xlselector.RowSelected += new EventHandler(xlselector_RowSelected); repositoryItemPopupContainerEdit1.PopupControl = new PopupContainerControl(); repositoryItemPopupContainerEdit1.PopupControl.Size = xlselector.Size; repositoryItemPopupContainerEdit1.PopupControl.Controls.Add(xlselector); repositoryItemPopupContainerEdit1.NullText = "请选择线路"; btXlList.Edit = repositoryItemPopupContainerEdit1; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CommonParentForm)); this.rbnMain = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.appMenu = new DevExpress.XtraBars.Ribbon.ApplicationMenu(this.components); this.bbiSettings = new DevExpress.XtraBars.BarButtonItem(); this.bbiExitUser = new DevExpress.XtraBars.BarButtonItem(); this.siVersion = new DevExpress.XtraBars.BarStaticItem(); this.alignButtonGroup = new DevExpress.XtraBars.BarButtonGroup(); this.bbiAdd = new DevExpress.XtraBars.BarButtonItem(); this.bbiRemove = new DevExpress.XtraBars.BarButtonItem(); this.bbiRefresh = new DevExpress.XtraBars.BarButtonItem(); this.bbiExel = new DevExpress.XtraBars.BarButtonItem(); this.bbiAdmin = new DevExpress.XtraBars.BarButtonItem(); this.bbiSave = new DevExpress.XtraBars.BarButtonItem(); this.bbiRoleEdit = new DevExpress.XtraBars.BarButtonItem(); this.brDockMenuItem = new DevExpress.XtraBars.BarDockingMenuItem(); this.brEdItControlsStates = new DevExpress.XtraBars.BarEditItem(); this.ripceControlsStates = new DevExpress.XtraEditors.Repository.RepositoryItemPopupContainerEdit(); this.rpMain = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpgMain = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.rpDictionaries = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpgCommonDictionaries = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.rpReports = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpSettings = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpAdmin = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpgAdmin = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.riceStates = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit(); this.rsbMain = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); this.defaultLookAndFeel = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components); this.dxErrorProvider = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(this.components); this.documentMng = new DevExpress.XtraBars.Docking2010.DocumentManager(this.components); this.MDIViewNative = new DevExpress.XtraBars.Docking2010.Views.NativeMdi.NativeMdiView(this.components); this.MDIViewTabbed = new DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView(this.components); this.bbiChangeUser = new DevExpress.XtraBars.BarButtonItem(); ((System.ComponentModel.ISupportInitialize)(this.rbnMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.appMenu)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ripceControlsStates)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.riceStates)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.documentMng)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MDIViewNative)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.MDIViewTabbed)).BeginInit(); this.SuspendLayout(); // // rbnMain // this.rbnMain.ApplicationButtonDropDownControl = this.appMenu; this.rbnMain.ApplicationButtonText = "Меню"; this.rbnMain.AutoSizeItems = true; this.rbnMain.Categories.AddRange(new DevExpress.XtraBars.BarManagerCategory[] { new DevExpress.XtraBars.BarManagerCategory("Dictionaries", new System.Guid("bfb17616-73d9-42e6-8028-a10ce19e5160"))}); this.rbnMain.ExpandCollapseItem.Id = 0; this.rbnMain.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.rbnMain.ExpandCollapseItem, this.siVersion, this.alignButtonGroup, this.bbiAdd, this.bbiRemove, this.bbiRefresh, this.bbiExel, this.bbiAdmin, this.bbiSave, this.bbiRoleEdit, this.brDockMenuItem, this.bbiSettings, this.brEdItControlsStates, this.bbiExitUser, this.bbiChangeUser}); this.rbnMain.Location = new System.Drawing.Point(0, 0); this.rbnMain.MaxItemId = 162; this.rbnMain.Name = "rbnMain"; this.rbnMain.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.rpMain, this.rpDictionaries, this.rpReports, this.rpSettings, this.rpAdmin}); this.rbnMain.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.ripceControlsStates, this.riceStates}); this.rbnMain.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2013; this.rbnMain.ShowToolbarCustomizeItem = false; this.rbnMain.Size = new System.Drawing.Size(1210, 173); this.rbnMain.StatusBar = this.rsbMain; this.rbnMain.Toolbar.ItemLinks.Add(this.bbiAdd); this.rbnMain.Toolbar.ItemLinks.Add(this.bbiRemove); this.rbnMain.Toolbar.ItemLinks.Add(this.bbiRefresh); this.rbnMain.Toolbar.ItemLinks.Add(this.bbiSave); this.rbnMain.Toolbar.ItemLinks.Add(this.bbiExel); this.rbnMain.Toolbar.ItemLinks.Add(this.brDockMenuItem); this.rbnMain.Toolbar.ShowCustomizeItem = false; this.rbnMain.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Below; this.rbnMain.ShowCustomizationMenu += new DevExpress.XtraBars.Ribbon.RibbonCustomizationMenuEventHandler(this.RibbonShowCustomizationMenu); this.rbnMain.Merge += new DevExpress.XtraBars.Ribbon.RibbonMergeEventHandler(this.MainMerge); // // appMenu // this.appMenu.ItemLinks.Add(this.bbiSettings, true); this.appMenu.ItemLinks.Add(this.bbiChangeUser); this.appMenu.ItemLinks.Add(this.bbiExitUser); this.appMenu.Name = "appMenu"; this.appMenu.Ribbon = this.rbnMain; // // bbiSettings // this.bbiSettings.Caption = "Настройки"; this.bbiSettings.Description = "Настройки программы"; this.bbiSettings.Hint = "Настройки программы"; this.bbiSettings.Id = 76; this.bbiSettings.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiSettings.LargeGlyph"))); this.bbiSettings.Name = "bbiSettings"; // // bbiExitUser // this.bbiExitUser.Caption = "Выход"; this.bbiExitUser.CategoryGuid = new System.Guid("6ffddb2b-9015-4d97-a4c1-91613e0ef537"); this.bbiExitUser.Id = 160; this.bbiExitUser.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiExitUser.LargeGlyph"))); this.bbiExitUser.Name = "bbiExitUser"; // // siVersion // this.siVersion.Caption = "Версия:"; this.siVersion.Id = 31; this.siVersion.Name = "siVersion"; this.siVersion.TextAlignment = System.Drawing.StringAlignment.Near; // // alignButtonGroup // this.alignButtonGroup.Caption = "Align Commands"; this.alignButtonGroup.Id = 52; this.alignButtonGroup.Name = "alignButtonGroup"; // // bbiAdd // this.bbiAdd.Caption = "Добавить данные"; this.bbiAdd.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiAdd.Glyph"))); this.bbiAdd.Hint = "Добавить новую запись в текущий элемент интерфейса"; this.bbiAdd.Id = 62; this.bbiAdd.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)); this.bbiAdd.Name = "bbiAdd"; this.bbiAdd.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.AddItemClick); // // bbiRemove // this.bbiRemove.Caption = "Удалить данные"; this.bbiRemove.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiRemove.Glyph"))); this.bbiRemove.Hint = "Удалить текущие данные"; this.bbiRemove.Id = 63; this.bbiRemove.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Delete)); this.bbiRemove.Name = "bbiRemove"; this.bbiRemove.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.RemoveItemClick); // // bbiRefresh // this.bbiRefresh.Caption = "Обновить данные"; this.bbiRefresh.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiRefresh.Glyph"))); this.bbiRefresh.Hint = "Обновить записи из базы данных"; this.bbiRefresh.Id = 65; this.bbiRefresh.ItemShortcut = new DevExpress.XtraBars.BarShortcut(System.Windows.Forms.Keys.F5); this.bbiRefresh.Name = "bbiRefresh"; this.bbiRefresh.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.RefreshItemClick); // // bbiExel // this.bbiExel.Caption = "Сохранить в Exel"; this.bbiExel.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiExel.Glyph"))); this.bbiExel.Hint = "Сохранить данные в виде Excel"; this.bbiExel.Id = 66; this.bbiExel.Name = "bbiExel"; this.bbiExel.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.ExelItemClick); // // bbiAdmin // this.bbiAdmin.Caption = "Настройка интерфейсов"; this.bbiAdmin.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiAdmin.Glyph"))); this.bbiAdmin.Hint = "Администрирование внешнего вида форм"; this.bbiAdmin.Id = 69; this.bbiAdmin.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiAdmin.LargeGlyph"))); this.bbiAdmin.Name = "bbiAdmin"; this.bbiAdmin.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.AdminItemClick); // // bbiSave // this.bbiSave.Caption = "Сохранить в базу"; this.bbiSave.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiSave.Glyph"))); this.bbiSave.Hint = "Сохранить изменения текущего элемента на сервер"; this.bbiSave.Id = 70; this.bbiSave.ItemShortcut = new DevExpress.XtraBars.BarShortcut((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)); this.bbiSave.Name = "bbiSave"; this.bbiSave.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.CommitItemClick); // // bbiRoleEdit // this.bbiRoleEdit.Caption = "Настройка ролей и сотрудников"; this.bbiRoleEdit.Glyph = ((System.Drawing.Image)(resources.GetObject("bbiRoleEdit.Glyph"))); this.bbiRoleEdit.Id = 71; this.bbiRoleEdit.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiRoleEdit.LargeGlyph"))); this.bbiRoleEdit.Name = "bbiRoleEdit"; this.bbiRoleEdit.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.RoleEditItemClick); // // brDockMenuItem // this.brDockMenuItem.Caption = "Расположение форм"; this.brDockMenuItem.Glyph = ((System.Drawing.Image)(resources.GetObject("brDockMenuItem.Glyph"))); this.brDockMenuItem.Hint = "Настройка расположения форм"; this.brDockMenuItem.Id = 78; this.brDockMenuItem.Name = "brDockMenuItem"; // // brEdItControlsStates // this.brEdItControlsStates.Edit = this.ripceControlsStates; this.brEdItControlsStates.Id = 89; this.brEdItControlsStates.Name = "brEdItControlsStates"; // // ripceControlsStates // this.ripceControlsStates.AutoHeight = false; this.ripceControlsStates.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.ripceControlsStates.Name = "ripceControlsStates"; // // rpMain // this.rpMain.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.rpgMain}); this.rpMain.Name = "rpMain"; this.rpMain.Text = "Главная"; // // rpgMain // this.rpgMain.Name = "rpgMain"; this.rpgMain.Text = "Главное"; // // rpDictionaries // this.rpDictionaries.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.rpgCommonDictionaries}); this.rpDictionaries.Name = "rpDictionaries"; this.rpDictionaries.Text = "Справочники"; // // rpgCommonDictionaries // this.rpgCommonDictionaries.Name = "rpgCommonDictionaries"; this.rpgCommonDictionaries.Text = "Общие"; // // rpReports // this.rpReports.Name = "rpReports"; this.rpReports.Text = "Отчёты"; // // rpSettings // this.rpSettings.Name = "rpSettings"; this.rpSettings.Text = "Настройки системы"; // // rpAdmin // this.rpAdmin.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.rpgAdmin}); this.rpAdmin.Name = "rpAdmin"; this.rpAdmin.Text = "Администрирование"; this.rpAdmin.Visible = false; // // rpgAdmin // this.rpgAdmin.ItemLinks.Add(this.bbiAdmin); this.rpgAdmin.ItemLinks.Add(this.bbiRoleEdit); this.rpgAdmin.Name = "rpgAdmin"; this.rpgAdmin.Text = "Администратор"; // // riceStates // this.riceStates.Name = "riceStates"; this.riceStates.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; // // rsbMain // this.rsbMain.ItemLinks.Add(this.siVersion); this.rsbMain.Location = new System.Drawing.Point(0, 669); this.rsbMain.Name = "rsbMain"; this.rsbMain.Ribbon = this.rbnMain; this.rsbMain.Size = new System.Drawing.Size(1210, 31); // // dxErrorProvider // this.dxErrorProvider.ContainerControl = this; // // documentMng // this.documentMng.MdiParent = this; this.documentMng.MenuManager = this.rbnMain; this.documentMng.ShowThumbnailsInTaskBar = DevExpress.Utils.DefaultBoolean.False; this.documentMng.View = this.MDIViewNative; this.documentMng.ViewCollection.AddRange(new DevExpress.XtraBars.Docking2010.Views.BaseView[] { this.MDIViewNative, this.MDIViewTabbed}); // // bbiChangeUser // this.bbiChangeUser.Caption = "Сменить пользователя"; this.bbiChangeUser.Id = 161; this.bbiChangeUser.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("bbiChangeUser.LargeGlyph"))); this.bbiChangeUser.Name = "bbiChangeUser"; // // CommonParentForm // this.AllowFormGlass = DevExpress.Utils.DefaultBoolean.False; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1210, 700); this.Controls.Add(this.rsbMain); this.Controls.Add(this.rbnMain); this.IsMdiContainer = true; this.Name = "CommonParentForm"; this.Ribbon = this.rbnMain; this.StatusBar = this.rsbMain; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Activated += new System.EventHandler(this.CommonParentFormActivated); this.Load += new System.EventHandler(this.CommonParentFormLoad); this.Shown += new System.EventHandler(this.CommonParentFormShown); ((System.ComponentModel.ISupportInitialize)(this.rbnMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.appMenu)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ripceControlsStates)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.riceStates)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.documentMng)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MDIViewNative)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.MDIViewTabbed)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup1 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup(); DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup2 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup(); DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup3 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.btnNewTerminal = new DevExpress.XtraBars.BarButtonItem(); this.btnNewTerminal2 = new DevExpress.XtraBars.BarButtonItem(); this.btnNewTerminal3 = new DevExpress.XtraBars.BarButtonItem(); this.btnStart = new DevExpress.XtraBars.BarButtonItem(); this.btnStop = new DevExpress.XtraBars.BarButtonItem(); this.btnClear = new DevExpress.XtraBars.BarButtonItem(); this.txtUsername = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.txtPassword = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemTextEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.btnLogin = new DevExpress.XtraBars.BarButtonItem(); this.btnChangePassword = new DevExpress.XtraBars.BarButtonItem(); this.btnLogout = new DevExpress.XtraBars.BarButtonItem(); this.lblSystemTime = new DevExpress.XtraBars.BarStaticItem(); this.lblTotalTransaction = new DevExpress.XtraBars.BarStaticItem(); this.lblTotalTerminal = new DevExpress.XtraBars.BarStaticItem(); this.barEditItem1 = new DevExpress.XtraBars.BarEditItem(); this.repositoryItemPopupContainerEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemPopupContainerEdit(); this.ribbonGalleryBarItem1 = new DevExpress.XtraBars.RibbonGalleryBarItem(); this.barButtonGroup1 = new DevExpress.XtraBars.BarButtonGroup(); this.barButtonGroup2 = new DevExpress.XtraBars.BarButtonGroup(); this.skinGalleryBarItem = new DevExpress.XtraBars.RibbonGalleryBarItem(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup3 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup5 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonStatusBar1 = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl(); this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); this.grdTransaction = new DevExpress.XtraGrid.GridControl(); this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); this.panelControl3 = new DevExpress.XtraEditors.PanelControl(); this.panelControl4 = new DevExpress.XtraEditors.PanelControl(); this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage(); this.btnStatement = new DevExpress.XtraEditors.SimpleButton(); this.btnBetList = new DevExpress.XtraEditors.SimpleButton(); this.cbeSignatureTemplate = new DevExpress.XtraEditors.ComboBoxEdit(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.webBrowser2 = new System.Windows.Forms.WebBrowser(); this.splitter1 = new System.Windows.Forms.Splitter(); this.webBrowser1 = new System.Windows.Forms.WebBrowser(); this.xtraTabPage5 = new DevExpress.XtraTab.XtraTabPage(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.textEdit4 = new DevExpress.XtraEditors.MemoEdit(); this.chkSCloud = new DevExpress.XtraEditors.CheckEdit(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.textEdit3 = new DevExpress.XtraEditors.TextEdit(); this.textEdit2 = new DevExpress.XtraEditors.TextEdit(); this.textEdit1 = new DevExpress.XtraEditors.TextEdit(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.chkRCloud = new DevExpress.XtraEditors.CheckEdit(); this.btnSignMeIn = new DevExpress.XtraEditors.SimpleButton(); this.txtServerIP = new DevExpress.XtraEditors.TextEdit(); this.txtServerUserName = new DevExpress.XtraEditors.TextEdit(); this.txtServerPassword = new DevExpress.XtraEditors.TextEdit(); this.pictureEdit1 = new DevExpress.XtraEditors.PictureEdit(); this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); this.xtraTabPage4 = new DevExpress.XtraTab.XtraTabPage(); this.ribbonPageGroup4 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPopupContainerEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); this.splitContainerControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); this.xtraTabControl1.SuspendLayout(); this.xtraTabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdTransaction)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit(); this.xtraTabPage3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cbeSignatureTemplate.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); this.xtraTabPage5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); this.panelControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.textEdit4.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chkSCloud.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit3.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chkRCloud.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtServerIP.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtServerUserName.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtServerPassword.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit(); this.xtraTabControl2.SuspendLayout(); this.SuspendLayout(); // // ribbonControl1 // this.ribbonControl1.ApplicationButtonText = null; // // // this.ribbonControl1.ExpandCollapseItem.Id = 0; this.ribbonControl1.ExpandCollapseItem.Name = ""; this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.ribbonControl1.ExpandCollapseItem, this.btnNewTerminal, this.btnNewTerminal2, this.btnNewTerminal3, this.btnStart, this.btnStop, this.btnClear, this.txtUsername, this.txtPassword, this.btnLogin, this.btnChangePassword, this.btnLogout, this.lblSystemTime, this.lblTotalTransaction, this.lblTotalTerminal, this.barEditItem1, this.ribbonGalleryBarItem1, this.barButtonGroup1, this.barButtonGroup2, this.skinGalleryBarItem}); this.ribbonControl1.Location = new System.Drawing.Point(0, 0); this.ribbonControl1.MaxItemId = 22; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage1}); this.ribbonControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemTextEdit1, this.repositoryItemTextEdit2, this.repositoryItemPopupContainerEdit1}); this.ribbonControl1.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2010; this.ribbonControl1.SelectedPage = this.ribbonPage1; this.ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; this.ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; this.ribbonControl1.ShowToolbarCustomizeItem = false; this.ribbonControl1.Size = new System.Drawing.Size(1056, 125); this.ribbonControl1.StatusBar = this.ribbonStatusBar1; this.ribbonControl1.Toolbar.ShowCustomizeItem = false; // // btnNewTerminal // this.btnNewTerminal.Caption = "ibet-3in1"; this.btnNewTerminal.Enabled = false; this.btnNewTerminal.Id = 1; this.btnNewTerminal.LargeGlyph = global::iBet.App.Properties.Resources.i4; this.btnNewTerminal.Name = "btnNewTerminal"; this.btnNewTerminal.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnNewTerminal_ItemClick); // // btnNewTerminal2 // this.btnNewTerminal2.Caption = "ibet-sbo"; this.btnNewTerminal2.Enabled = false; this.btnNewTerminal2.Id = 13; this.btnNewTerminal2.LargeGlyph = global::iBet.App.Properties.Resources.i9; this.btnNewTerminal2.Name = "btnNewTerminal2"; this.btnNewTerminal2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnNewTerminal2_ItemClick); // // btnNewTerminal3 // this.btnNewTerminal3.Caption = "Follow Sub"; this.btnNewTerminal3.Enabled = false; this.btnNewTerminal3.Id = 14; this.btnNewTerminal3.LargeGlyph = global::iBet.App.Properties.Resources.i10; this.btnNewTerminal3.Name = "btnNewTerminal3"; this.btnNewTerminal3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnNewTerminal3_ItemClick); // // btnStart // this.btnStart.Caption = "Start"; this.btnStart.Enabled = false; this.btnStart.Id = 2; this.btnStart.LargeGlyph = global::iBet.App.Properties.Resources.i5; this.btnStart.Name = "btnStart"; this.btnStart.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnStart_ItemClick); // // btnStop // this.btnStop.Caption = "Stop"; this.btnStop.Enabled = false; this.btnStop.Id = 3; this.btnStop.LargeGlyph = global::iBet.App.Properties.Resources.i6; this.btnStop.Name = "btnStop"; this.btnStop.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnStop_ItemClick); // // btnClear // this.btnClear.Caption = "Clear"; this.btnClear.Enabled = false; this.btnClear.Glyph = global::iBet.App.Properties.Resources.i7; this.btnClear.Id = 4; this.btnClear.LargeGlyph = global::iBet.App.Properties.Resources.i7; this.btnClear.Name = "btnClear"; this.btnClear.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnClear_ItemClick); // // txtUsername // this.txtUsername.Caption = "Username"; this.txtUsername.Edit = this.repositoryItemTextEdit1; this.txtUsername.Id = 5; this.txtUsername.Name = "txtUsername"; this.txtUsername.Width = 150; // // repositoryItemTextEdit1 // this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; // // txtPassword // this.txtPassword.Caption = "Password "; this.txtPassword.Edit = this.repositoryItemTextEdit2; this.txtPassword.Id = 6; this.txtPassword.Name = "txtPassword"; this.txtPassword.Width = 150; // // repositoryItemTextEdit2 // this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.repositoryItemTextEdit2.PasswordChar = '*'; // // btnLogin // this.btnLogin.Caption = "Login"; this.btnLogin.Id = 7; this.btnLogin.LargeGlyph = global::iBet.App.Properties.Resources.i1; this.btnLogin.Name = "btnLogin"; this.btnLogin.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnLogin_ItemClick); // // btnChangePassword // this.btnChangePassword.Caption = "Change Password"; this.btnChangePassword.Enabled = false; this.btnChangePassword.Id = 8; this.btnChangePassword.LargeGlyph = global::iBet.App.Properties.Resources.i3; this.btnChangePassword.Name = "btnChangePassword"; this.btnChangePassword.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnChangePassword_ItemClick); // // btnLogout // this.btnLogout.Caption = "Logout"; this.btnLogout.Enabled = false; this.btnLogout.Id = 9; this.btnLogout.LargeGlyph = global::iBet.App.Properties.Resources.i2; this.btnLogout.Name = "btnLogout"; this.btnLogout.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnLogout_ItemClick); // // lblSystemTime // this.lblSystemTime.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right; this.lblSystemTime.Id = 10; this.lblSystemTime.Name = "lblSystemTime"; this.lblSystemTime.TextAlignment = System.Drawing.StringAlignment.Near; // // lblTotalTransaction // this.lblTotalTransaction.Caption = "Total transaction(s): 0"; this.lblTotalTransaction.Id = 11; this.lblTotalTransaction.Name = "lblTotalTransaction"; this.lblTotalTransaction.TextAlignment = System.Drawing.StringAlignment.Near; // // lblTotalTerminal // this.lblTotalTerminal.Caption = "Total Terminal(s): 0"; this.lblTotalTerminal.Id = 12; this.lblTotalTerminal.Name = "lblTotalTerminal"; this.lblTotalTerminal.TextAlignment = System.Drawing.StringAlignment.Near; // // barEditItem1 // this.barEditItem1.Caption = "barEditItem1"; this.barEditItem1.Edit = this.repositoryItemPopupContainerEdit1; this.barEditItem1.Id = 15; this.barEditItem1.Name = "barEditItem1"; // // repositoryItemPopupContainerEdit1 // this.repositoryItemPopupContainerEdit1.AutoHeight = false; this.repositoryItemPopupContainerEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.repositoryItemPopupContainerEdit1.Name = "repositoryItemPopupContainerEdit1"; // // ribbonGalleryBarItem1 // this.ribbonGalleryBarItem1.Caption = "ribbonGalleryBarItem1"; this.ribbonGalleryBarItem1.Id = 17; this.ribbonGalleryBarItem1.Name = "ribbonGalleryBarItem1"; // // barButtonGroup1 // this.barButtonGroup1.Caption = "barButtonGroup1"; this.barButtonGroup1.Id = 18; this.barButtonGroup1.Name = "barButtonGroup1"; // // barButtonGroup2 // this.barButtonGroup2.Caption = "barButtonGroup2"; this.barButtonGroup2.Id = 19; this.barButtonGroup2.Name = "barButtonGroup2"; // // skinGalleryBarItem // this.skinGalleryBarItem.Caption = "skinGalleryBarItem"; // // skinGalleryBarItem // this.skinGalleryBarItem.Gallery.AllowHoverImages = true; this.skinGalleryBarItem.Gallery.FixedHoverImageSize = false; galleryItemGroup1.Caption = "Standard"; galleryItemGroup2.Caption = "Bonus"; galleryItemGroup2.Visible = false; galleryItemGroup3.Caption = "Office"; galleryItemGroup3.Visible = false; this.skinGalleryBarItem.Gallery.Groups.AddRange(new DevExpress.XtraBars.Ribbon.GalleryItemGroup[] { galleryItemGroup1, galleryItemGroup2, galleryItemGroup3}); this.skinGalleryBarItem.Gallery.ImageSize = new System.Drawing.Size(58, 43); this.skinGalleryBarItem.Gallery.ItemCheckMode = DevExpress.XtraBars.Ribbon.Gallery.ItemCheckMode.SingleRadio; this.skinGalleryBarItem.Id = 1; this.skinGalleryBarItem.Name = "skinGalleryBarItem"; // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup3, this.ribbonPageGroup1, this.ribbonPageGroup2, this.ribbonPageGroup5}); this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "Terminal"; // // ribbonPageGroup3 // this.ribbonPageGroup3.ItemLinks.Add(this.txtUsername); this.ribbonPageGroup3.ItemLinks.Add(this.txtPassword); this.ribbonPageGroup3.ItemLinks.Add(this.btnLogin); this.ribbonPageGroup3.ItemLinks.Add(this.btnChangePassword); this.ribbonPageGroup3.ItemLinks.Add(this.btnLogout); this.ribbonPageGroup3.Name = "ribbonPageGroup3"; this.ribbonPageGroup3.ShowCaptionButton = false; this.ribbonPageGroup3.Text = "Authentication"; // // ribbonPageGroup1 // this.ribbonPageGroup1.ItemLinks.Add(this.btnNewTerminal); this.ribbonPageGroup1.ItemLinks.Add(this.btnNewTerminal2); this.ribbonPageGroup1.ItemLinks.Add(this.btnNewTerminal3); this.ribbonPageGroup1.ItemLinks.Add(this.btnStart); this.ribbonPageGroup1.ItemLinks.Add(this.btnStop); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.ShowCaptionButton = false; this.ribbonPageGroup1.Text = "Terminal"; // // ribbonPageGroup2 // this.ribbonPageGroup2.ItemLinks.Add(this.btnClear); this.ribbonPageGroup2.Name = "ribbonPageGroup2"; this.ribbonPageGroup2.ShowCaptionButton = false; this.ribbonPageGroup2.Text = "Tracking"; // // ribbonPageGroup5 // this.ribbonPageGroup5.ItemLinks.Add(this.skinGalleryBarItem); this.ribbonPageGroup5.Name = "ribbonPageGroup5"; this.ribbonPageGroup5.Text = "Skins"; // // ribbonStatusBar1 // this.ribbonStatusBar1.ItemLinks.Add(this.lblSystemTime); this.ribbonStatusBar1.ItemLinks.Add(this.lblTotalTerminal); this.ribbonStatusBar1.ItemLinks.Add(this.lblTotalTransaction); this.ribbonStatusBar1.Location = new System.Drawing.Point(0, 617); this.ribbonStatusBar1.Name = "ribbonStatusBar1"; this.ribbonStatusBar1.Ribbon = this.ribbonControl1; this.ribbonStatusBar1.Size = new System.Drawing.Size(1056, 31); // // splitContainerControl1 // this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainerControl1.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.Panel2; this.splitContainerControl1.Horizontal = false; this.splitContainerControl1.Location = new System.Drawing.Point(0, 125); this.splitContainerControl1.Name = "splitContainerControl1"; this.splitContainerControl1.Panel1.Controls.Add(this.xtraTabControl1); this.splitContainerControl1.Panel1.Text = "Panel1"; this.splitContainerControl1.Panel2.Controls.Add(this.xtraTabControl2); this.splitContainerControl1.Panel2.Text = "Panel2"; this.splitContainerControl1.Size = new System.Drawing.Size(1056, 492); this.splitContainerControl1.SplitterPosition = 44; this.splitContainerControl1.TabIndex = 1; this.splitContainerControl1.Text = "splitContainerControl1"; // // xtraTabControl1 // this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.xtraTabControl1.Location = new System.Drawing.Point(0, 0); this.xtraTabControl1.Name = "xtraTabControl1"; this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; this.xtraTabControl1.Size = new System.Drawing.Size(1056, 443); this.xtraTabControl1.TabIndex = 0; this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.xtraTabPage1, this.xtraTabPage3, this.xtraTabPage5}); // // xtraTabPage1 // this.xtraTabPage1.Controls.Add(this.grdTransaction); this.xtraTabPage1.Controls.Add(this.panelControl3); this.xtraTabPage1.Controls.Add(this.panelControl4); this.xtraTabPage1.Name = "xtraTabPage1"; this.xtraTabPage1.Size = new System.Drawing.Size(1050, 417); this.xtraTabPage1.Text = "Transactions"; // // grdTransaction // this.grdTransaction.Dock = System.Windows.Forms.DockStyle.Fill; this.grdTransaction.EmbeddedNavigator.ShowToolTips = false; this.grdTransaction.Location = new System.Drawing.Point(0, 0); this.grdTransaction.MainView = this.gridView2; this.grdTransaction.Name = "grdTransaction"; this.grdTransaction.Size = new System.Drawing.Size(1050, 417); this.grdTransaction.TabIndex = 7; this.grdTransaction.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView2}); // // gridView2 // this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn1, this.gridColumn8, this.gridColumn2, this.gridColumn3, this.gridColumn6, this.gridColumn4, this.gridColumn5, this.gridColumn7, this.gridColumn10, this.gridColumn11, this.gridColumn12, this.gridColumn9, this.gridColumn14, this.gridColumn15, this.gridColumn13}); this.gridView2.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.gridView2.GridControl = this.grdTransaction; this.gridView2.Name = "gridView2"; this.gridView2.OptionsBehavior.Editable = false; this.gridView2.OptionsCustomization.AllowGroup = false; this.gridView2.OptionsMenu.EnableColumnMenu = false; this.gridView2.OptionsMenu.EnableFooterMenu = false; this.gridView2.OptionsMenu.EnableGroupPanelMenu = false; this.gridView2.OptionsView.HeaderFilterButtonShowMode = DevExpress.XtraEditors.Controls.FilterButtonShowMode.Button; this.gridView2.OptionsView.ShowAutoFilterRow = true; this.gridView2.OptionsView.ShowGroupPanel = false; this.gridView2.OptionsView.ShowPreview = true; this.gridView2.PreviewFieldName = "Note"; this.gridView2.ShowButtonMode = DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.ShowForFocusedRow; this.gridView2.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] { new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.gridColumn13, DevExpress.Data.ColumnSortOrder.Descending)}); // // gridColumn1 // this.gridColumn1.Caption = "ID"; this.gridColumn1.FieldName = "ID"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.OptionsColumn.AllowFocus = false; this.gridColumn1.OptionsColumn.AllowMove = false; this.gridColumn1.OptionsColumn.AllowSize = false; this.gridColumn1.OptionsColumn.FixedWidth = true; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 0; this.gridColumn1.Width = 30; // // gridColumn8 // this.gridColumn8.Caption = "Account Pair"; this.gridColumn8.FieldName = "AccountPair"; this.gridColumn8.Name = "gridColumn8"; this.gridColumn8.OptionsColumn.AllowFocus = false; this.gridColumn8.OptionsColumn.FixedWidth = true; this.gridColumn8.Visible = true; this.gridColumn8.VisibleIndex = 1; this.gridColumn8.Width = 120; // // gridColumn2 // this.gridColumn2.Caption = "Home Team"; this.gridColumn2.FieldName = "HomeTeamName"; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.OptionsColumn.AllowFocus = false; this.gridColumn2.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn2.Visible = true; this.gridColumn2.VisibleIndex = 2; this.gridColumn2.Width = 107; // // gridColumn3 // this.gridColumn3.Caption = "Away Team"; this.gridColumn3.FieldName = "AwayTeamName"; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.OptionsColumn.AllowFocus = false; this.gridColumn3.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 3; this.gridColumn3.Width = 119; // // gridColumn6 // this.gridColumn6.Caption = "Type"; this.gridColumn6.FieldName = "OddType"; this.gridColumn6.Name = "gridColumn6"; this.gridColumn6.OptionsColumn.AllowFocus = false; this.gridColumn6.OptionsColumn.FixedWidth = true; this.gridColumn6.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn6.Visible = true; this.gridColumn6.VisibleIndex = 4; this.gridColumn6.Width = 150; // // gridColumn4 // this.gridColumn4.Caption = "Odd"; this.gridColumn4.FieldName = "OddKindValue"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.OptionsColumn.AllowFocus = false; this.gridColumn4.OptionsColumn.FixedWidth = true; this.gridColumn4.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 5; this.gridColumn4.Width = 60; // // gridColumn5 // this.gridColumn5.Caption = "Value"; this.gridColumn5.FieldName = "OddValue"; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.OptionsColumn.AllowFocus = false; this.gridColumn5.OptionsColumn.FixedWidth = true; this.gridColumn5.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 6; this.gridColumn5.Width = 60; // // gridColumn7 // this.gridColumn7.Caption = "Stake"; this.gridColumn7.FieldName = "Stake"; this.gridColumn7.Name = "gridColumn7"; this.gridColumn7.OptionsColumn.AllowFocus = false; this.gridColumn7.OptionsColumn.FixedWidth = true; this.gridColumn7.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn7.Visible = true; this.gridColumn7.VisibleIndex = 7; this.gridColumn7.Width = 60; // // gridColumn10 // this.gridColumn10.Caption = "I"; this.gridColumn10.FieldName = "IBETTrade"; this.gridColumn10.Name = "gridColumn10"; this.gridColumn10.OptionsColumn.AllowFocus = false; this.gridColumn10.OptionsColumn.FixedWidth = true; this.gridColumn10.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn10.Visible = true; this.gridColumn10.VisibleIndex = 8; this.gridColumn10.Width = 30; // // gridColumn11 // this.gridColumn11.Caption = "3"; this.gridColumn11.FieldName = "THREEIN1Trade"; this.gridColumn11.Name = "gridColumn11"; this.gridColumn11.OptionsColumn.AllowFocus = false; this.gridColumn11.OptionsColumn.FixedWidth = true; this.gridColumn11.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn11.Visible = true; this.gridColumn11.VisibleIndex = 9; this.gridColumn11.Width = 30; // // gridColumn12 // this.gridColumn12.Caption = "3 Re"; this.gridColumn12.FieldName = "THREEIN1ReTrade"; this.gridColumn12.Name = "gridColumn12"; this.gridColumn12.OptionsColumn.AllowFocus = false; this.gridColumn12.OptionsColumn.FixedWidth = true; this.gridColumn12.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn12.Visible = true; this.gridColumn12.VisibleIndex = 11; this.gridColumn12.Width = 30; // // gridColumn9 // this.gridColumn9.Caption = "I Re"; this.gridColumn9.FieldName = "IBETReTrade"; this.gridColumn9.Name = "gridColumn9"; this.gridColumn9.OptionsColumn.AllowFocus = false; this.gridColumn9.OptionsColumn.FixedWidth = true; this.gridColumn9.Visible = true; this.gridColumn9.VisibleIndex = 12; this.gridColumn9.Width = 30; // // gridColumn14 // this.gridColumn14.Caption = "B"; this.gridColumn14.FieldName = "SBOBETTrade"; this.gridColumn14.Name = "gridColumn14"; this.gridColumn14.OptionsColumn.AllowFocus = false; this.gridColumn14.OptionsColumn.FixedWidth = true; this.gridColumn14.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn14.Visible = true; this.gridColumn14.VisibleIndex = 10; this.gridColumn14.Width = 30; // // gridColumn15 // this.gridColumn15.Caption = "B Re"; this.gridColumn15.FieldName = "SBOBETReTrade"; this.gridColumn15.Name = "gridColumn15"; this.gridColumn15.OptionsColumn.AllowFocus = false; this.gridColumn15.OptionsColumn.FixedWidth = true; this.gridColumn15.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn15.Visible = true; this.gridColumn15.VisibleIndex = 13; this.gridColumn15.Width = 30; // // gridColumn13 // this.gridColumn13.Caption = "DateTime"; this.gridColumn13.DisplayFormat.FormatString = "dd/MM/yyyy hh:mm:ss"; this.gridColumn13.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.gridColumn13.FieldName = "DateTime"; this.gridColumn13.Name = "gridColumn13"; this.gridColumn13.OptionsColumn.AllowFocus = false; this.gridColumn13.OptionsColumn.FixedWidth = true; this.gridColumn13.SortMode = DevExpress.XtraGrid.ColumnSortMode.Value; this.gridColumn13.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] { new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Count)}); this.gridColumn13.UnboundType = DevExpress.Data.UnboundColumnType.DateTime; this.gridColumn13.Visible = true; this.gridColumn13.VisibleIndex = 14; this.gridColumn13.Width = 150; // // panelControl3 // this.panelControl3.Location = new System.Drawing.Point(0, 0); this.panelControl3.Name = "panelControl3"; this.panelControl3.Size = new System.Drawing.Size(200, 100); this.panelControl3.TabIndex = 8; // // panelControl4 // this.panelControl4.Location = new System.Drawing.Point(0, 0); this.panelControl4.Name = "panelControl4"; this.panelControl4.Size = new System.Drawing.Size(200, 100); this.panelControl4.TabIndex = 9; // // xtraTabPage3 // this.xtraTabPage3.Controls.Add(this.btnStatement); this.xtraTabPage3.Controls.Add(this.btnBetList); this.xtraTabPage3.Controls.Add(this.cbeSignatureTemplate); this.xtraTabPage3.Controls.Add(this.panelControl1); this.xtraTabPage3.Name = "xtraTabPage3"; this.xtraTabPage3.Size = new System.Drawing.Size(1050, 417); this.xtraTabPage3.Text = "Bet List - Statement"; // // btnStatement // this.btnStatement.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnStatement.Location = new System.Drawing.Point(295, 391); this.btnStatement.Name = "btnStatement"; this.btnStatement.Size = new System.Drawing.Size(99, 23); this.btnStatement.TabIndex = 7; this.btnStatement.Text = "Statement"; this.btnStatement.Click += new System.EventHandler(this.btnStatement_Click); // // btnBetList // this.btnBetList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnBetList.Location = new System.Drawing.Point(198, 391); this.btnBetList.Name = "btnBetList"; this.btnBetList.Size = new System.Drawing.Size(91, 23); this.btnBetList.TabIndex = 6; this.btnBetList.Text = "Refresh"; this.btnBetList.Click += new System.EventHandler(this.btnRefresh_Click); // // cbeSignatureTemplate // this.cbeSignatureTemplate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbeSignatureTemplate.EditValue = "Select account pair"; this.cbeSignatureTemplate.Location = new System.Drawing.Point(3, 394); this.cbeSignatureTemplate.Name = "cbeSignatureTemplate"; this.cbeSignatureTemplate.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.False; this.cbeSignatureTemplate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.cbeSignatureTemplate.Properties.DropDownRows = 10; this.cbeSignatureTemplate.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cbeSignatureTemplate.Size = new System.Drawing.Size(189, 20); this.cbeSignatureTemplate.TabIndex = 5; // // panelControl1 // this.panelControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelControl1.Controls.Add(this.webBrowser2); this.panelControl1.Controls.Add(this.splitter1); this.panelControl1.Controls.Add(this.webBrowser1); this.panelControl1.Location = new System.Drawing.Point(2, 3); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(1044, 382); this.panelControl1.TabIndex = 3; // // webBrowser2 // this.webBrowser2.Dock = System.Windows.Forms.DockStyle.Fill; this.webBrowser2.Location = new System.Drawing.Point(364, 2); this.webBrowser2.MinimumSize = new System.Drawing.Size(20, 20); this.webBrowser2.Name = "webBrowser2"; this.webBrowser2.Size = new System.Drawing.Size(678, 378); this.webBrowser2.TabIndex = 2; this.webBrowser2.Url = new System.Uri("", System.UriKind.Relative); // // splitter1 // this.splitter1.Location = new System.Drawing.Point(361, 2); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(3, 378); this.splitter1.TabIndex = 1; this.splitter1.TabStop = false; // // webBrowser1 // this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Left; this.webBrowser1.Location = new System.Drawing.Point(2, 2); this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); this.webBrowser1.Name = "webBrowser1"; this.webBrowser1.Size = new System.Drawing.Size(359, 378); this.webBrowser1.TabIndex = 0; this.webBrowser1.Url = new System.Uri("", System.UriKind.Relative); // // xtraTabPage5 // this.xtraTabPage5.Controls.Add(this.panelControl2); this.xtraTabPage5.Name = "xtraTabPage5"; this.xtraTabPage5.Size = new System.Drawing.Size(1050, 417); this.xtraTabPage5.Text = "Settings"; // // panelControl2 // this.panelControl2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelControl2.Controls.Add(this.textEdit4); this.panelControl2.Controls.Add(this.chkSCloud); this.panelControl2.Controls.Add(this.simpleButton2); this.panelControl2.Controls.Add(this.textEdit3); this.panelControl2.Controls.Add(this.textEdit2); this.panelControl2.Controls.Add(this.textEdit1); this.panelControl2.Controls.Add(this.simpleButton1); this.panelControl2.Controls.Add(this.label4); this.panelControl2.Controls.Add(this.label3); this.panelControl2.Controls.Add(this.label2); this.panelControl2.Controls.Add(this.label1); this.panelControl2.Controls.Add(this.chkRCloud); this.panelControl2.Controls.Add(this.btnSignMeIn); this.panelControl2.Controls.Add(this.txtServerIP); this.panelControl2.Controls.Add(this.txtServerUserName); this.panelControl2.Controls.Add(this.txtServerPassword); this.panelControl2.Controls.Add(this.pictureEdit1); this.panelControl2.Location = new System.Drawing.Point(3, 3); this.panelControl2.Name = "panelControl2"; this.panelControl2.Size = new System.Drawing.Size(1044, 497); this.panelControl2.TabIndex = 0; // // textEdit4 // this.textEdit4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textEdit4.Location = new System.Drawing.Point(244, 5); this.textEdit4.Name = "textEdit4"; this.textEdit4.Size = new System.Drawing.Size(408, 406); this.textEdit4.TabIndex = 18; // // chkSCloud // this.chkSCloud.EditValue = true; this.chkSCloud.Location = new System.Drawing.Point(13, 27); this.chkSCloud.Name = "chkSCloud"; this.chkSCloud.Properties.Caption = "S cloud"; this.chkSCloud.Size = new System.Drawing.Size(86, 19); this.chkSCloud.TabIndex = 17; // // simpleButton2 // this.simpleButton2.Location = new System.Drawing.Point(130, 307); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(97, 23); this.simpleButton2.TabIndex = 16; this.simpleButton2.Text = "Set"; this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); // // textEdit3 // this.textEdit3.EditValue = "0"; this.textEdit3.Location = new System.Drawing.Point(94, 216); this.textEdit3.Name = "textEdit3"; this.textEdit3.Size = new System.Drawing.Size(142, 20); this.textEdit3.TabIndex = 15; // // textEdit2 // this.textEdit2.Location = new System.Drawing.Point(94, 268); this.textEdit2.Name = "textEdit2"; this.textEdit2.Size = new System.Drawing.Size(142, 20); this.textEdit2.TabIndex = 14; // // textEdit1 // this.textEdit1.Location = new System.Drawing.Point(94, 241); this.textEdit1.Name = "textEdit1"; this.textEdit1.Size = new System.Drawing.Size(142, 20); this.textEdit1.TabIndex = 13; // // simpleButton1 // this.simpleButton1.Location = new System.Drawing.Point(18, 307); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(97, 23); this.simpleButton1.TabIndex = 12; this.simpleButton1.Text = "Get"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(12, 176); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(0, 13); this.label4.TabIndex = 11; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(11, 140); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(53, 13); this.label3.TabIndex = 10; this.label3.Text = "Password"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(11, 113); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(55, 13); this.label2.TabIndex = 9; this.label2.Text = "Username"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(11, 86); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(81, 13); this.label1.TabIndex = 8; this.label1.Text = "Server Address"; // // chkRCloud // this.chkRCloud.EditValue = true; this.chkRCloud.Location = new System.Drawing.Point(12, 53); this.chkRCloud.Name = "chkRCloud"; this.chkRCloud.Properties.Caption = "R cloud"; this.chkRCloud.Size = new System.Drawing.Size(86, 19); this.chkRCloud.TabIndex = 7; this.chkRCloud.CheckedChanged += new System.EventHandler(this.chbCloud_CheckedChanged); // // btnSignMeIn // this.btnSignMeIn.Location = new System.Drawing.Point(154, 171); this.btnSignMeIn.Name = "btnSignMeIn"; this.btnSignMeIn.Size = new System.Drawing.Size(75, 23); this.btnSignMeIn.TabIndex = 3; this.btnSignMeIn.Text = "Sign me in"; this.btnSignMeIn.Click += new System.EventHandler(this.btnSignMeIn_Click); // // txtServerIP // this.txtServerIP.EditValue = "115.84.178.100"; this.txtServerIP.Location = new System.Drawing.Point(95, 83); this.txtServerIP.Name = "txtServerIP"; this.txtServerIP.Size = new System.Drawing.Size(142, 20); this.txtServerIP.TabIndex = 4; // // txtServerUserName // this.txtServerUserName.EditValue = "tuns"; this.txtServerUserName.Location = new System.Drawing.Point(95, 110); this.txtServerUserName.Name = "txtServerUserName"; this.txtServerUserName.Size = new System.Drawing.Size(142, 20); this.txtServerUserName.TabIndex = 5; // // txtServerPassword // this.txtServerPassword.EditValue = "anhkomuonradi"; this.txtServerPassword.Location = new System.Drawing.Point(95, 137); this.txtServerPassword.Name = "txtServerPassword"; this.txtServerPassword.Properties.UseSystemPasswordChar = true; this.txtServerPassword.Size = new System.Drawing.Size(142, 20); this.txtServerPassword.TabIndex = 6; // // pictureEdit1 // this.pictureEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.pictureEdit1.EditValue = ((object)(resources.GetObject("pictureEdit1.EditValue"))); this.pictureEdit1.Location = new System.Drawing.Point(658, 5); this.pictureEdit1.Name = "pictureEdit1"; this.pictureEdit1.Properties.AllowFocused = false; this.pictureEdit1.Properties.Appearance.BackColor = System.Drawing.Color.Transparent; this.pictureEdit1.Properties.Appearance.Options.UseBackColor = true; this.pictureEdit1.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.pictureEdit1.Properties.PictureAlignment = System.Drawing.ContentAlignment.TopLeft; this.pictureEdit1.Properties.ShowMenu = false; this.pictureEdit1.Size = new System.Drawing.Size(382, 448); this.pictureEdit1.TabIndex = 2; // // xtraTabControl2 // this.xtraTabControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.xtraTabControl2.Location = new System.Drawing.Point(0, 0); this.xtraTabControl2.Name = "xtraTabControl2"; this.xtraTabControl2.SelectedTabPage = this.xtraTabPage2; this.xtraTabControl2.Size = new System.Drawing.Size(1056, 44); this.xtraTabControl2.TabIndex = 1; this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.xtraTabPage2, this.xtraTabPage4}); // // xtraTabPage2 // this.xtraTabPage2.Name = "xtraTabPage2"; this.xtraTabPage2.Size = new System.Drawing.Size(1050, 18); this.xtraTabPage2.Text = "Waiting list"; // // xtraTabPage4 // this.xtraTabPage4.Name = "xtraTabPage4"; this.xtraTabPage4.Size = new System.Drawing.Size(1050, 18); this.xtraTabPage4.Text = "Clones monitor"; // // ribbonPageGroup4 // this.ribbonPageGroup4.ItemLinks.Add(this.btnClear); this.ribbonPageGroup4.Name = "ribbonPageGroup4"; this.ribbonPageGroup4.ShowCaptionButton = false; this.ribbonPageGroup4.Text = "Tracking"; // // MainForm // this.AutoHideRibbon = false; this.ClientSize = new System.Drawing.Size(1056, 648); this.Controls.Add(this.splitContainerControl1); this.Controls.Add(this.ribbonStatusBar1); this.Controls.Add(this.ribbonControl1); this.Icon = global::iBet.App.Properties.Resources.BetBrokerLogo; this.Name = "MainForm"; this.Ribbon = this.ribbonControl1; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StatusBar = this.ribbonStatusBar1; this.Text = "Bet Broker"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEdit2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemPopupContainerEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit(); this.splitContainerControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.xtraTabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.grdTransaction)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit(); this.xtraTabPage3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.cbeSignatureTemplate.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); this.xtraTabPage5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); this.panelControl2.ResumeLayout(false); this.panelControl2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.textEdit4.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chkSCloud.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit3.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chkRCloud.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtServerIP.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtServerUserName.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtServerPassword.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit(); this.xtraTabControl2.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(DlgSupcomMapOptions)); this.gpgMapSelectGrid = new GPGChatGrid(); this.cardView1 = new CardView(); this.colMapTitle = new GridColumn(); this.colStatus = new GridColumn(); this.riPriority = new RepositoryItemImageComboBox(); this.ilThumbs = new ImageList(this.components); this.colMap = new GridColumn(); this.riMap = new RepositoryItemPictureEdit(); this.rimPictureEdit3 = new RepositoryItemPictureEdit(); this.rimTextEdit = new RepositoryItemTextEdit(); this.rimMemoEdit3 = new RepositoryItemMemoEdit(); this.riPopup = new RepositoryItemPopupContainerEdit(); this.repositoryItemTimeEdit1 = new RepositoryItemTimeEdit(); this.repositoryItemTextEdit1 = new RepositoryItemTextEdit(); this.riPictureStatus = new RepositoryItemPictureEdit(); this.riButtonStatus = new RepositoryItemButtonEdit(); this.riTextPriority = new RepositoryItemTextEdit(); this.colTime = new GridColumn(); this.colType = new GridColumn(); this.colDescription = new GridColumn(); this.colData = new GridColumn(); this.rbAeon = new RadioButton(); this.rbCybran = new RadioButton(); this.rbUEF = new RadioButton(); this.rbRandom = new RadioButton(); this.lMapPrefs = new GPGLabel(); this.gpgLabel1 = new GPGLabel(); this.skinButtonCancel = new SkinButton(); this.skinButtonSearch = new SkinButton(); this.rbSeraphim = new RadioButton(); ((ISupportInitialize) base.pbBottom).BeginInit(); this.gpgMapSelectGrid.BeginInit(); this.cardView1.BeginInit(); this.riPriority.BeginInit(); this.riMap.BeginInit(); this.rimPictureEdit3.BeginInit(); this.rimTextEdit.BeginInit(); this.rimMemoEdit3.BeginInit(); this.riPopup.BeginInit(); this.repositoryItemTimeEdit1.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.riPictureStatus.BeginInit(); this.riButtonStatus.BeginInit(); this.riTextPriority.BeginInit(); base.SuspendLayout(); base.pbBottom.Size = new Size(0x3c5, 0x39); base.ttDefault.SetSuperTip(base.pbBottom, null); base.ttDefault.DefaultController.AutoPopDelay = 0x3e8; base.ttDefault.DefaultController.ToolTipLocation = ToolTipLocation.RightTop; this.gpgMapSelectGrid.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.gpgMapSelectGrid.CustomizeStyle = false; this.gpgMapSelectGrid.EmbeddedNavigator.Name = ""; this.gpgMapSelectGrid.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gpgMapSelectGrid.IgnoreMouseWheel = false; this.gpgMapSelectGrid.Location = new Point(12, 0x55); this.gpgMapSelectGrid.LookAndFeel.SkinName = "Money Twins"; this.gpgMapSelectGrid.LookAndFeel.Style = LookAndFeelStyle.Office2003; this.gpgMapSelectGrid.LookAndFeel.UseDefaultLookAndFeel = false; this.gpgMapSelectGrid.MainView = this.cardView1; this.gpgMapSelectGrid.Name = "gpgMapSelectGrid"; this.gpgMapSelectGrid.RepositoryItems.AddRange(new RepositoryItem[] { this.rimPictureEdit3, this.rimTextEdit, this.rimMemoEdit3, this.riPopup, this.repositoryItemTimeEdit1, this.riPriority, this.riMap, this.repositoryItemTextEdit1, this.riPictureStatus, this.riButtonStatus, this.riTextPriority }); this.gpgMapSelectGrid.ShowOnlyPredefinedDetails = true; this.gpgMapSelectGrid.Size = new Size(0x3e8, 0x12b); this.gpgMapSelectGrid.TabIndex = 0x1d; this.gpgMapSelectGrid.ViewCollection.AddRange(new BaseView[] { this.cardView1 }); this.cardView1.Appearance.Card.BackColor = Color.Black; this.cardView1.Appearance.Card.ForeColor = Color.White; this.cardView1.Appearance.Card.Options.UseBackColor = true; this.cardView1.Appearance.Card.Options.UseForeColor = true; this.cardView1.Appearance.EmptySpace.BackColor = Color.Black; this.cardView1.Appearance.EmptySpace.Options.UseBackColor = true; this.cardView1.Appearance.FieldCaption.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.cardView1.Appearance.FieldCaption.ForeColor = Color.FromArgb(0x8f, 0xbd, 0xd1); this.cardView1.Appearance.FieldCaption.Options.UseFont = true; this.cardView1.Appearance.FieldCaption.Options.UseForeColor = true; this.cardView1.Appearance.FieldValue.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.cardView1.Appearance.FieldValue.ForeColor = Color.White; this.cardView1.Appearance.FieldValue.Options.UseFont = true; this.cardView1.Appearance.FieldValue.Options.UseForeColor = true; this.cardView1.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200); this.cardView1.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90); this.cardView1.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200); this.cardView1.Appearance.FilterCloseButton.ForeColor = Color.Black; this.cardView1.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal; this.cardView1.Appearance.FilterCloseButton.Options.UseBackColor = true; this.cardView1.Appearance.FilterCloseButton.Options.UseBorderColor = true; this.cardView1.Appearance.FilterCloseButton.Options.UseForeColor = true; this.cardView1.Appearance.FilterPanel.BackColor = Color.Black; this.cardView1.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200); this.cardView1.Appearance.FilterPanel.ForeColor = Color.White; this.cardView1.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal; this.cardView1.Appearance.FilterPanel.Options.UseBackColor = true; this.cardView1.Appearance.FilterPanel.Options.UseForeColor = true; this.cardView1.Appearance.SeparatorLine.BackColor = Color.Black; this.cardView1.Appearance.SeparatorLine.Options.UseBackColor = true; this.cardView1.BorderStyle = BorderStyles.NoBorder; this.cardView1.Columns.AddRange(new GridColumn[] { this.colMapTitle, this.colStatus, this.colMap }); this.cardView1.DetailHeight = 400; this.cardView1.FocusedCardTopFieldIndex = 0; this.cardView1.GridControl = this.gpgMapSelectGrid; this.cardView1.Name = "cardView1"; this.cardView1.OptionsBehavior.AllowExpandCollapse = false; this.cardView1.OptionsBehavior.AutoPopulateColumns = false; this.cardView1.OptionsBehavior.FieldAutoHeight = true; this.cardView1.OptionsBehavior.Sizeable = false; this.cardView1.OptionsSelection.MultiSelect = true; this.cardView1.OptionsView.ShowCardCaption = false; this.cardView1.OptionsView.ShowFieldCaptions = false; this.cardView1.OptionsView.ShowQuickCustomizeButton = false; this.cardView1.VertScrollVisibility = ScrollVisibility.Auto; this.cardView1.CustomDrawCardField += new RowCellCustomDrawEventHandler(this.cardView1_CustomDrawCardField); this.cardView1.Click += new EventHandler(this.cardView1_Click); this.colMapTitle.AppearanceCell.BackColor = Color.FromArgb(0x1b, 0x2e, 0x4a); this.colMapTitle.AppearanceCell.BackColor2 = Color.FromArgb(12, 0x17, 0x29); this.colMapTitle.AppearanceCell.Font = new Font("Arial", 10f, FontStyle.Bold, GraphicsUnit.Point, 0); this.colMapTitle.AppearanceCell.ForeColor = Color.FromArgb(0x8f, 0xbd, 0xd1); this.colMapTitle.AppearanceCell.GradientMode = LinearGradientMode.ForwardDiagonal; this.colMapTitle.AppearanceCell.Options.UseBackColor = true; this.colMapTitle.AppearanceCell.Options.UseFont = true; this.colMapTitle.AppearanceCell.Options.UseForeColor = true; this.colMapTitle.AppearanceCell.Options.UseTextOptions = true; this.colMapTitle.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center; this.colMapTitle.AppearanceCell.TextOptions.Trimming = Trimming.None; this.colMapTitle.AppearanceCell.TextOptions.VAlignment = VertAlignment.Top; this.colMapTitle.AppearanceHeader.Font = new Font("Arial", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); this.colMapTitle.AppearanceHeader.Options.UseFont = true; this.colMapTitle.Caption = "Map Name"; this.colMapTitle.FieldName = "Description"; this.colMapTitle.Name = "colMapTitle"; this.colMapTitle.OptionsColumn.AllowEdit = false; this.colMapTitle.Visible = true; this.colMapTitle.VisibleIndex = 0; this.colStatus.AppearanceCell.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.colStatus.AppearanceCell.Options.UseFont = true; this.colStatus.AppearanceCell.Options.UseTextOptions = true; this.colStatus.AppearanceCell.TextOptions.Trimming = Trimming.None; this.colStatus.AppearanceCell.TextOptions.VAlignment = VertAlignment.Center; this.colStatus.Caption = "Priority"; this.colStatus.ColumnEdit = this.riPriority; this.colStatus.FieldName = "Priority"; this.colStatus.Name = "colStatus"; this.colStatus.OptionsColumn.AllowEdit = false; this.colStatus.OptionsColumn.AllowFocus = false; this.colStatus.OptionsColumn.ReadOnly = true; this.colStatus.ShowButtonMode = ShowButtonModeEnum.ShowOnlyInEditor; this.colStatus.Visible = true; this.colStatus.VisibleIndex = 1; this.riPriority.AllowNullInput = DefaultBoolean.True; this.riPriority.Appearance.BackColor = Color.Black; this.riPriority.Appearance.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.riPriority.Appearance.ForeColor = Color.White; this.riPriority.Appearance.Options.UseBackColor = true; this.riPriority.Appearance.Options.UseFont = true; this.riPriority.Appearance.Options.UseForeColor = true; this.riPriority.AppearanceDropDown.BackColor = Color.Black; this.riPriority.AppearanceDropDown.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.riPriority.AppearanceDropDown.ForeColor = Color.White; this.riPriority.AppearanceDropDown.Options.UseBackColor = true; this.riPriority.AppearanceDropDown.Options.UseFont = true; this.riPriority.AppearanceDropDown.Options.UseForeColor = true; this.riPriority.AutoHeight = false; this.riPriority.DropDownRows = 3; this.riPriority.HideSelection = false; this.riPriority.Items.AddRange(new ImageComboBoxItem[] { new ImageComboBoxItem("<LOC>Neutral", null, 0), new ImageComboBoxItem("<LOC>Thumbs Up", true, 1), new ImageComboBoxItem("<LOC>Thumbs Down", false, 2) }); this.riPriority.LargeImages = this.ilThumbs; this.riPriority.Name = "riPriority"; this.riPriority.Validating += new CancelEventHandler(this.riPriority_Validating); this.ilThumbs.ImageStream = (ImageListStreamer) manager.GetObject("ilThumbs.ImageStream"); this.ilThumbs.TransparentColor = Color.Transparent; this.ilThumbs.Images.SetKeyName(0, "neutral.png"); this.ilThumbs.Images.SetKeyName(1, "thumbsup.png"); this.ilThumbs.Images.SetKeyName(2, "thumbsdown.png"); this.colMap.Caption = "Image"; this.colMap.ColumnEdit = this.riMap; this.colMap.FieldName = "Thumbnail"; this.colMap.Name = "colMap"; this.colMap.OptionsColumn.AllowEdit = false; this.colMap.Visible = true; this.colMap.VisibleIndex = 2; this.riMap.CustomHeight = 200; this.riMap.Name = "riMap"; this.riMap.SizeMode = PictureSizeMode.Stretch; this.rimPictureEdit3.Name = "rimPictureEdit3"; this.rimPictureEdit3.PictureAlignment = ContentAlignment.TopCenter; this.rimTextEdit.AutoHeight = false; this.rimTextEdit.Name = "rimTextEdit"; this.rimMemoEdit3.MaxLength = 500; this.rimMemoEdit3.Name = "rimMemoEdit3"; this.riPopup.AutoHeight = false; this.riPopup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.riPopup.Name = "riPopup"; this.repositoryItemTimeEdit1.AutoHeight = false; this.repositoryItemTimeEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton() }); this.repositoryItemTimeEdit1.Name = "repositoryItemTimeEdit1"; this.repositoryItemTextEdit1.Appearance.Font = new Font("Arial", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); this.repositoryItemTextEdit1.Appearance.Options.UseFont = true; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.riPictureStatus.Name = "riPictureStatus"; this.riPictureStatus.PictureAlignment = ContentAlignment.MiddleLeft; this.riPictureStatus.ReadOnly = true; this.riPictureStatus.Click += new EventHandler(this.riTextPriority_Click); this.riButtonStatus.AllowFocused = false; this.riButtonStatus.AllowNullInput = DefaultBoolean.True; this.riButtonStatus.AutoHeight = false; this.riButtonStatus.Name = "riButtonStatus"; this.riButtonStatus.ReadOnly = true; this.riButtonStatus.TextEditStyle = TextEditStyles.DisableTextEditor; this.riButtonStatus.Click += new EventHandler(this.riTextPriority_Click); this.riButtonStatus.ButtonClick += new ButtonPressedEventHandler(this.riButtonStatus_ButtonClick); this.riTextPriority.AutoHeight = false; this.riTextPriority.Name = "riTextPriority"; this.riTextPriority.ReadOnly = true; this.riTextPriority.Click += new EventHandler(this.riTextPriority_Click); this.colTime.Caption = "Time"; this.colTime.ColumnEdit = this.repositoryItemTimeEdit1; this.colTime.FieldName = "DateTime"; this.colTime.Name = "colTime"; this.colTime.OptionsColumn.AllowEdit = false; this.colTime.Visible = true; this.colTime.VisibleIndex = 0; this.colType.Caption = "Type"; this.colType.FieldName = "LogType"; this.colType.Name = "colType"; this.colType.OptionsColumn.AllowEdit = false; this.colType.Visible = true; this.colType.VisibleIndex = 1; this.colDescription.Caption = "Description"; this.colDescription.FieldName = "Description"; this.colDescription.Name = "colDescription"; this.colDescription.OptionsColumn.AllowEdit = false; this.colDescription.Visible = true; this.colDescription.VisibleIndex = 2; this.colData.Caption = "Data"; this.colData.ColumnEdit = this.riPopup; this.colData.FieldName = "Data"; this.colData.Name = "colData"; this.colData.Visible = true; this.colData.VisibleIndex = 3; this.rbAeon.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.rbAeon.CheckAlign = ContentAlignment.BottomCenter; this.rbAeon.FlatStyle = FlatStyle.Flat; this.rbAeon.Image = Resources.aeon1; this.rbAeon.ImageAlign = ContentAlignment.TopCenter; this.rbAeon.Location = new Point(12, 0x1a7); this.rbAeon.Name = "rbAeon"; this.rbAeon.Size = new Size(0xc6, 0xf5); base.ttDefault.SetSuperTip(this.rbAeon, null); this.rbAeon.TabIndex = 0x25; this.rbAeon.Text = "Aeon"; this.rbAeon.TextAlign = ContentAlignment.BottomCenter; this.rbAeon.TextImageRelation = TextImageRelation.TextAboveImage; this.rbAeon.UseVisualStyleBackColor = true; this.rbAeon.Paint += new PaintEventHandler(this.rbRandom_Paint); this.rbAeon.CheckedChanged += new EventHandler(this.rbAeon_CheckedChanged); this.rbCybran.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.rbCybran.CheckAlign = ContentAlignment.BottomCenter; this.rbCybran.FlatStyle = FlatStyle.Flat; this.rbCybran.Image = Resources.cybran1; this.rbCybran.ImageAlign = ContentAlignment.TopCenter; this.rbCybran.Location = new Point(0xd0, 0x1a7); this.rbCybran.Name = "rbCybran"; this.rbCybran.Size = new Size(0xc6, 0xf5); base.ttDefault.SetSuperTip(this.rbCybran, null); this.rbCybran.TabIndex = 0x26; this.rbCybran.Text = "Cybran"; this.rbCybran.TextAlign = ContentAlignment.BottomCenter; this.rbCybran.TextImageRelation = TextImageRelation.TextAboveImage; this.rbCybran.UseVisualStyleBackColor = true; this.rbCybran.Paint += new PaintEventHandler(this.rbRandom_Paint); this.rbCybran.CheckedChanged += new EventHandler(this.rbAeon_CheckedChanged); this.rbUEF.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.rbUEF.CheckAlign = ContentAlignment.BottomCenter; this.rbUEF.FlatStyle = FlatStyle.Flat; this.rbUEF.Image = Resources.uef1; this.rbUEF.ImageAlign = ContentAlignment.TopCenter; this.rbUEF.Location = new Point(410, 0x1a7); this.rbUEF.Name = "rbUEF"; this.rbUEF.Size = new Size(0xc6, 0xf5); base.ttDefault.SetSuperTip(this.rbUEF, null); this.rbUEF.TabIndex = 0x27; this.rbUEF.Text = "UEF"; this.rbUEF.TextAlign = ContentAlignment.BottomCenter; this.rbUEF.TextImageRelation = TextImageRelation.TextAboveImage; this.rbUEF.UseVisualStyleBackColor = true; this.rbUEF.Paint += new PaintEventHandler(this.rbRandom_Paint); this.rbUEF.CheckedChanged += new EventHandler(this.rbAeon_CheckedChanged); this.rbRandom.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.rbRandom.BackColor = Color.Black; this.rbRandom.CheckAlign = ContentAlignment.BottomCenter; this.rbRandom.Checked = true; this.rbRandom.FlatStyle = FlatStyle.Flat; this.rbRandom.Image = Resources.random1; this.rbRandom.ImageAlign = ContentAlignment.TopCenter; this.rbRandom.Location = new Point(0x329, 0x1a7); this.rbRandom.Name = "rbRandom"; this.rbRandom.Size = new Size(0xc6, 0xf5); base.ttDefault.SetSuperTip(this.rbRandom, null); this.rbRandom.TabIndex = 40; this.rbRandom.TabStop = true; this.rbRandom.Text = "<LOC>Random"; this.rbRandom.TextAlign = ContentAlignment.BottomCenter; this.rbRandom.TextImageRelation = TextImageRelation.TextAboveImage; this.rbRandom.UseVisualStyleBackColor = false; this.rbRandom.Paint += new PaintEventHandler(this.rbRandom_Paint); this.rbRandom.CheckedChanged += new EventHandler(this.rbAeon_CheckedChanged); this.lMapPrefs.AutoGrowDirection = GrowDirections.None; this.lMapPrefs.AutoSize = true; this.lMapPrefs.AutoStyle = true; this.lMapPrefs.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.lMapPrefs.ForeColor = Color.White; this.lMapPrefs.IgnoreMouseWheel = false; this.lMapPrefs.IsStyled = false; this.lMapPrefs.Location = new Point(0x15, 0x3e); this.lMapPrefs.Name = "lMapPrefs"; this.lMapPrefs.Size = new Size(0x263, 0x10); base.ttDefault.SetSuperTip(this.lMapPrefs, null); this.lMapPrefs.TabIndex = 0x29; this.lMapPrefs.Text = "<LOC>Step 1: Select your map preferences -- you may have only one thumbs up and one thumbs down."; this.lMapPrefs.TextStyle = TextStyles.Default; this.gpgLabel1.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.gpgLabel1.AutoGrowDirection = GrowDirections.None; this.gpgLabel1.AutoSize = true; this.gpgLabel1.AutoStyle = true; this.gpgLabel1.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gpgLabel1.ForeColor = Color.White; this.gpgLabel1.IgnoreMouseWheel = false; this.gpgLabel1.IsStyled = false; this.gpgLabel1.Location = new Point(12, 0x189); this.gpgLabel1.Name = "gpgLabel1"; this.gpgLabel1.Size = new Size(0xcc, 0x10); base.ttDefault.SetSuperTip(this.gpgLabel1, null); this.gpgLabel1.TabIndex = 0x2a; this.gpgLabel1.Text = "<LOC>Step 2: Select your faction"; this.gpgLabel1.TextStyle = TextStyles.Default; this.skinButtonCancel.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.skinButtonCancel.AutoStyle = true; this.skinButtonCancel.BackColor = Color.Black; this.skinButtonCancel.ButtonState = 0; this.skinButtonCancel.DialogResult = DialogResult.OK; this.skinButtonCancel.DisabledForecolor = Color.Gray; this.skinButtonCancel.DrawColor = Color.White; this.skinButtonCancel.DrawEdges = true; this.skinButtonCancel.FocusColor = Color.Yellow; this.skinButtonCancel.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonCancel.ForeColor = Color.White; this.skinButtonCancel.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonCancel.IsStyled = true; this.skinButtonCancel.Location = new Point(870, 0x2a2); this.skinButtonCancel.Name = "skinButtonCancel"; this.skinButtonCancel.Size = new Size(0x61, 0x17); this.skinButtonCancel.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonCancel, null); this.skinButtonCancel.TabIndex = 0x2d; this.skinButtonCancel.TabStop = true; this.skinButtonCancel.Text = "<LOC>Cancel"; this.skinButtonCancel.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonCancel.TextPadding = new Padding(0); this.skinButtonCancel.Click += new EventHandler(this.skinButtonCancel_Click); this.skinButtonSearch.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this.skinButtonSearch.AutoStyle = true; this.skinButtonSearch.BackColor = Color.Black; this.skinButtonSearch.ButtonState = 0; this.skinButtonSearch.DialogResult = DialogResult.OK; this.skinButtonSearch.DisabledForecolor = Color.Gray; this.skinButtonSearch.DrawColor = Color.White; this.skinButtonSearch.DrawEdges = true; this.skinButtonSearch.FocusColor = Color.Yellow; this.skinButtonSearch.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonSearch.ForeColor = Color.White; this.skinButtonSearch.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonSearch.IsStyled = true; this.skinButtonSearch.Location = new Point(0x2ff, 0x2a2); this.skinButtonSearch.Name = "skinButtonSearch"; this.skinButtonSearch.Size = new Size(0x61, 0x17); this.skinButtonSearch.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonSearch, null); this.skinButtonSearch.TabIndex = 0x2e; this.skinButtonSearch.TabStop = true; this.skinButtonSearch.Text = "<LOC>Start Search"; this.skinButtonSearch.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonSearch.TextPadding = new Padding(0); this.skinButtonSearch.Click += new EventHandler(this.skinButton1_Click); this.rbSeraphim.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this.rbSeraphim.BackColor = Color.Black; this.rbSeraphim.CheckAlign = ContentAlignment.BottomCenter; this.rbSeraphim.FlatStyle = FlatStyle.Flat; this.rbSeraphim.Image = Resources.seraphim; this.rbSeraphim.ImageAlign = ContentAlignment.TopCenter; this.rbSeraphim.Location = new Point(610, 0x1a7); this.rbSeraphim.Name = "rbSeraphim"; this.rbSeraphim.Size = new Size(0xc6, 0xf5); base.ttDefault.SetSuperTip(this.rbSeraphim, null); this.rbSeraphim.TabIndex = 0x2f; this.rbSeraphim.Text = "Seraphim"; this.rbSeraphim.TextAlign = ContentAlignment.BottomCenter; this.rbSeraphim.TextImageRelation = TextImageRelation.TextAboveImage; this.rbSeraphim.UseVisualStyleBackColor = false; this.rbSeraphim.Paint += new PaintEventHandler(this.rbRandom_Paint); this.rbSeraphim.CheckedChanged += new EventHandler(this.rbSeraphim_CheckedChanged); base.AcceptButton = this.skinButtonSearch; base.AutoScaleMode = AutoScaleMode.None; base.CancelButton = this.skinButtonCancel; base.ClientSize = new Size(0x400, 740); base.Controls.Add(this.rbSeraphim); base.Controls.Add(this.skinButtonSearch); base.Controls.Add(this.skinButtonCancel); base.Controls.Add(this.gpgLabel1); base.Controls.Add(this.lMapPrefs); base.Controls.Add(this.rbRandom); base.Controls.Add(this.rbUEF); base.Controls.Add(this.rbCybran); base.Controls.Add(this.rbAeon); base.Controls.Add(this.gpgMapSelectGrid); this.Font = new Font("Verdana", 8f); base.Location = new Point(0, 0); this.MinimumSize = new Size(0x400, 740); base.Name = "DlgSupcomMapOptions"; base.ttDefault.SetSuperTip(this, null); this.Text = "<LOC>Ranked Match Preferences"; base.Controls.SetChildIndex(this.gpgMapSelectGrid, 0); base.Controls.SetChildIndex(this.rbAeon, 0); base.Controls.SetChildIndex(this.rbCybran, 0); base.Controls.SetChildIndex(this.rbUEF, 0); base.Controls.SetChildIndex(this.rbRandom, 0); base.Controls.SetChildIndex(this.lMapPrefs, 0); base.Controls.SetChildIndex(this.gpgLabel1, 0); base.Controls.SetChildIndex(this.skinButtonCancel, 0); base.Controls.SetChildIndex(this.skinButtonSearch, 0); base.Controls.SetChildIndex(this.rbSeraphim, 0); ((ISupportInitialize) base.pbBottom).EndInit(); this.gpgMapSelectGrid.EndInit(); this.cardView1.EndInit(); this.riPriority.EndInit(); this.riMap.EndInit(); this.rimPictureEdit3.EndInit(); this.rimTextEdit.EndInit(); this.rimMemoEdit3.EndInit(); this.riPopup.EndInit(); this.repositoryItemTimeEdit1.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.riPictureStatus.EndInit(); this.riButtonStatus.EndInit(); this.riTextPriority.EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
private GridColumn CreateGridColumn(GridView gv, DataRow dr, BindingSource ds, string tablename, int index, bool isuseredit) { //******************************特别提示********************************************* //Tip:如果要在Grid中取得自定义添加的控件,例如lkp,cbx,mtxt,btxt,mlkp控件 //lkp控件:用Controls.Find()方法来查找出lkp控件 //其他类型:用GridControl.RepositoryItems集合中查找 //*********************************************************************************** GridColumn cols = new GridColumn(); string sControlType = dr["sControlType"].ToString(); switch (sControlType) { //LookUp查询 case "lkp": { if (!string.IsNullOrEmpty(dr["sLookupNo"].ToString())) { SunriseLookUp lkp = new SunriseLookUp(); lkp.Name = "collkp" + tablename + dr["sFieldName"].ToString(); lkp.DataBindings.Add("EditValue", ds, dr["sFieldName"].ToString()); this.pnlMain.Controls.Add(lkp); lkp.SendToBack(); Base.InitLookup(lkp, dr["sLookupNo"].ToString()); if (!string.IsNullOrEmpty(dr["sLookupAutoSetControl"].ToString())) { string[] sItem = Public.GetSplitString(dr["sLookupAutoSetControl"].ToString(), ","); foreach (var s in sItem) { string[] ss = Public.GetSplitString(s, "="); lkp.AutoSetValue(ss[0], ss[1]); } } RepositoryItemButtonEdit btnRepositoryItem = new RepositoryItemButtonEdit(); btnRepositoryItem.ButtonClick += lkp.LookUpSelfClick; btnRepositoryItem.TextEditStyle = TextEditStyles.DisableTextEditor; //加这句是让了焦点更新,Grid中才会显示新的数据值,其实在后台是已经存在了的,只是在Grid中没有显示出来 //此处设置为查询完成后自动跳转到Grid中的下一列中 lkp.LookUpAfterPost += new SunriseLookUp.SunriseLookUpEvent(lkp_LookUpAfterPost); cols.ColumnEdit = btnRepositoryItem; gv.GridControl.RepositoryItems.Add(btnRepositoryItem); } break; } //下拉框 case "cbx": { if (!string.IsNullOrEmpty(dr["sLookupNo"].ToString())) { RepositoryItemImageComboBox cbxRepositoryItem = new RepositoryItemImageComboBox(); cbxRepositoryItem.Name = "colcbx" + tablename + dr["sFieldName"].ToString(); Base.InitRepositoryItemComboBox(cbxRepositoryItem, dr["sLookupNo"].ToString(), dr["sFieldType"].ToString()); cols.ColumnEdit = cbxRepositoryItem; gv.GridControl.RepositoryItems.Add(cbxRepositoryItem); } break; } //带按钮的文本框 case "btxt": { RepositoryItemButtonEdit btxtRepositoryItem = new RepositoryItemButtonEdit(); btxtRepositoryItem.Name = "colbtxt" + tablename + dr["sFieldName"].ToString(); cols.ColumnEdit = btxtRepositoryItem; gv.GridControl.RepositoryItems.Add(btxtRepositoryItem); break; } //多行文本框 case "mtxt": { RepositoryItemMemoExEdit btxtRepositoryItem = new RepositoryItemMemoExEdit(); btxtRepositoryItem.Name = "colmtxt" + tablename + dr["sFieldName"].ToString(); cols.ColumnEdit = btxtRepositoryItem; gv.GridControl.RepositoryItems.Add(btxtRepositoryItem); break; } case "dett": { RepositoryItemDateEdit dettRespositoryItem = new RepositoryItemDateEdit(); dettRespositoryItem.Name = "coldett" + tablename + dr["sFieldName"].ToString(); dettRespositoryItem.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; dettRespositoryItem.DisplayFormat.FormatString = "g"; dettRespositoryItem.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; dettRespositoryItem.EditFormat.FormatString = "g"; dettRespositoryItem.EditMask = "g"; cols.ColumnEdit = dettRespositoryItem; gv.GridControl.RepositoryItems.Add(dettRespositoryItem); break; } //MLookUp查询 case "mlkp": { if (!string.IsNullOrEmpty(dr["sLookupNo"].ToString())) { SunriseMLookUp mlkp = new SunriseMLookUp(); mlkp.Name = "colmlkp" + tablename + dr["sFieldName"].ToString(); mlkp.DataBindings.Add("EditValue", ds, dr["sFieldName"].ToString()); mlkp.IsUsedInGrid = true; Base.InitMLookup(mlkp, dr["sLookupNo"].ToString()); if (!string.IsNullOrEmpty(dr["sLookupAutoSetControl"].ToString())) { string[] sItem = Public.GetSplitString(dr["sLookupAutoSetControl"].ToString(), ","); foreach (var s in sItem) { string[] ss = Public.GetSplitString(s, "="); mlkp.AutoSetValue(ss[0], ss[1]); } } RepositoryItemPopupContainerEdit btnRepositoryItem = new RepositoryItemPopupContainerEdit(); btnRepositoryItem.Name = "gridmlkp" + tablename + dr["sFieldName"].ToString(); //原本默认的显示Popup的按钮隐藏掉 btnRepositoryItem.Buttons[0].Visible = false; btnRepositoryItem.Buttons.Add(new EditorButton(ButtonPredefines.Ellipsis)); btnRepositoryItem.ButtonClick += mlkp.LookUpSelfClick; btnRepositoryItem.TextEditStyle = TextEditStyles.Standard; btnRepositoryItem.Popup += mlkp.mlkpDataNo_Popup; btnRepositoryItem.KeyDown += mlkp.mlkpDataNo_KeyDown; btnRepositoryItem.Closed += mlkp.mlkpDataNo_Closed; gv.GridControl.PreviewKeyDown += mlkp.mlkpDataNo_PreviewKeyDown; btnRepositoryItem.PopupControl = mlkp.mlkpPopup; btnRepositoryItem.EditValueChanged += mlkp.mlkpDataNo_TextChanged; //加这句是让了焦点更新,Grid中才会显示新的数据值,其实在后台是已经存在了的,只是在Grid中没有显示出来 //此处设置为查询完成后自动跳转到Grid中的下一列中 mlkp.LookUpAfterPost += new SunriseLookUp.SunriseLookUpEvent(lkp_LookUpAfterPost); cols.ColumnEdit = btnRepositoryItem; gv.GridControl.RepositoryItems.Add(btnRepositoryItem); this.pnlMain.Controls.Add(mlkp); mlkp.SendToBack(); //pnlDynamic.Controls.Add(mlkp); //mlkp.Visible = false; } break; } } cols.Caption = LangCenter.Instance.IsDefaultLanguage ? dr["sCaption"].ToString() : dr["sEngCaption"].ToString(); cols.FieldName = dr["sFieldName"].ToString(); //Grid 列命名为col+表名+列名 cols.Name = "col" + tablename + dr["sFieldName"].ToString(); cols.Width = 120; if (dr["sColumnType"].ToString() == "002") { //检测是否有价格权限 bool HasPrice = SC.CheckAuth(SecurityOperation.Price, FormID); if (!HasPrice) return null; //设置价格数据显示格式 cols.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; cols.DisplayFormat.FormatString = Base.FormatPrice; } else if (dr["sColumnType"].ToString() == "003") { //检测是否有数量权限 bool HasNum = SC.CheckAuth(SecurityOperation.Num, FormID); if (!HasNum) return null; //设置数量数据显示格式 cols.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; cols.DisplayFormat.FormatString = Base.FormatQuantity; } else cols.Visible = true; //不需要权限控制的价格数量显示格式化 //无权限控制价格 if (dr["sColumnType"].ToString() == "004") { cols.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; cols.DisplayFormat.FormatString = Base.FormatNullAuthPrice; } //无权限控制数量 else if (dr["sColumnType"].ToString() == "005") { cols.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; cols.DisplayFormat.FormatString = Base.FormatNullAuthQuantity; } cols.VisibleIndex = index; //检测窗体字段设置中是否可编辑 //这里检测的时候是先以窗体设置中的权限优先,窗体上设置不可编辑,用户字段设置可编辑,以窗体上设置为准,不可编辑 cols.OptionsColumn.AllowEdit = Convert.ToBoolean(dr["bEdit"]); //先通过数量和价格权限检测后再设置其用户字段权限 if (Convert.ToBoolean(dr["bEdit"])) { cols.OptionsColumn.AllowEdit = isuseredit; } //Grid Footer显示 if (dr["sFooterType"].ToString() != "001") { //001 无 //002 求和 //003 计数 //004 平均值 //005 最大值 //006 最小值 cols.SummaryItem.FieldName = dr["sFieldName"].ToString(); if (dr["sFooterType"].ToString() == "002") cols.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum; else if (dr["sFooterType"].ToString() == "003") cols.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Count; else if (dr["sFooterType"].ToString() == "004") cols.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Average; else if (dr["sFooterType"].ToString() == "005") cols.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Max; else if (dr["sFooterType"].ToString() == "006") cols.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Min; //设置GridFooter汇总格式 //价格 if (dr["sColumnType"].ToString() == "002") cols.SummaryItem.DisplayFormat = Base.FormatPrice; //数量 else if (dr["sColumnType"].ToString() == "003") cols.SummaryItem.DisplayFormat = Base.FormatQuantity; //无权限控制价格 else if (dr["sColumnType"].ToString() == "004") cols.SummaryItem.DisplayFormat = Base.FormatNullAuthPrice; //无权限控制数量 else if (dr["sColumnType"].ToString() == "005") cols.SummaryItem.DisplayFormat = Base.FormatNullAuthQuantity; gv.GroupSummary.Add(DevExpress.Data.SummaryItemType.Sum, dr["sFieldName"].ToString(), cols); } //设置非空字段颜色 if (Convert.ToBoolean(dr["bSaveData"]) && Convert.ToBoolean(dr["bNotNull"])) { cols.AppearanceHeader.ForeColor = Color.FromName(Base.GetSystemParamter("001")); cols.AppearanceHeader.Options.UseForeColor = true; } return cols; }