public static PopupMenu CreatePopupMenu(XmlNode xmlNode) { PopupMenu popupMenu = new PopupMenu(); popupMenu.Name = NodeAttr.GetSetNodeAttrValue(xmlNode, Name, Guid.NewGuid() + ""); popupMenu.BeforePopup += popupMenu_BeforePopup; return popupMenu; }
public static void Generate(BarManager barManager, PopupMenu popupMenu, List<MovieModel> movieModel) { popupMenu.ClearLinks(); GenerateLock(barManager, popupMenu, movieModel); GenerateUnlock(barManager, popupMenu, movieModel); }
/// <summary> /// 获取指定名称的上下文菜单 /// </summary> /// <param name="name">上下文菜单名称</param> /// <returns>返回正确的上下文菜单,如果不存在指定名称的上下文菜单则返回空的<see cref="PopupMenu"/>对象</returns> public object GetContentMenu(string name) { PopupMenu content = new PopupMenu(); content.Manager = barManager; if (contents.ContainsKey(name)) { AddInTree addInTree = workItem.Services.Get<AddInTree>(); if(addInTree != null) try { AddInNode addInNode = addInTree.GetChild(name); if (addInNode != null) { addInNode.BuildChildItems(this); } } catch (Exception ex) { throw new UniframeworkException(String.Format("无法创建指定路径 \"{0} \" 的插件单元,{1}", name, ex.Message)); } } if(contents.ContainsKey(name)) { foreach (BarItemLink link in contents[name].ItemLinks) { BarItemLink barlink = content.AddItem(link.Item); barlink.BeginGroup = link.BeginGroup; } } return content; }
/// <summary> /// Thêm danh sách menu ngữ cảnh vào trong GridView. /// Menu này áp dụng khi click phải trên phần nội dung của lưới /// </summary> public static void AddContextMenu(GridView grid, List<ItemInfo> items) { BarManager manager = new BarManager(); ; PopupMenu menu = new PopupMenu(); if (items == null) return; for (int i = 0; i < items.Count; i++) { if (items[i].Per != null) if (ApplyPermissionAction.checkPermission(items[i].Per) == null || ApplyPermissionAction.checkPermission(items[i].Per) == false) { continue; } Image image = ResourceMan.getImage16(items[i].Image); BarItem item = new BarButtonItem(); item.Caption = items[i].Caption; item.Name = i.ToString(); item.Glyph = image; manager.Items.Add(item); menu.ItemLinks.Add(manager.Items[i]); DelegationLib.CallFunction_MulIn_NoOut del = items[i].Delegates; item.ItemClick += delegate(object sender, ItemClickEventArgs e) { string name = item.Name; List<object> objs = new List<object>(); int[] a = grid.GetSelectedRows(); DataRow dr = grid.GetDataRow(a[0]); objs.Add(dr); del(objs); }; } grid.MouseUp += delegate(object sender, MouseEventArgs e) { if ((e.Button & MouseButtons.Right) != 0 && grid.GridControl.ClientRectangle.Contains(e.X, e.Y)) { menu.ShowPopup(manager, Control.MousePosition); } else { menu.HidePopup(); } }; grid.MouseMove += delegate(object sender, MouseEventArgs e) { if ((e.Button & MouseButtons.Right) != 0 && grid.GridControl.ClientRectangle.Contains(e.X, e.Y)) { menu.ShowPopup(manager, Control.MousePosition); } else { menu.HidePopup(); } }; }
public static BarButtonItem addBarButtonItem(BarManager man, PopupMenu menu, String title) { BarButtonItem barItem = new BarButtonItem(man, title); barItem.Name = "barButtonItem"; barItem.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; menu.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(barItem)); return barItem; }
private string GetMenuDesignHTML(PopupMenu menu) { StringBuilder strB = new StringBuilder(); strB.Append("<Table>"); strB.Append(GetMenuItemsDesignHTML(menu.Items, 0)); strB.Append("</Table>"); return strB.ToString(); }
public void CreateContextMenu(FrameworkElement view, IObservableCollection<ContextMenuModel> contextMenuItems) { var contextMenu = new PopupMenu { Manager = _shell.GetMenuManager() }; BarManager.SetDXContextMenu(view, contextMenu); foreach (var item in contextMenuItems) { AddContextMenuItem(contextMenu, item); } }
public static void AddContextMenu(TreeList tree, List<ItemInfo> items) { BarManager manager = new BarManager(); ; PopupMenu menu = new PopupMenu(); if (items == null) return; for (int i = 0; i < items.Count; i++) { if (items[i].Per != null) if (ApplyPermissionAction.checkPermission(items[i].Per) == null || ApplyPermissionAction.checkPermission(items[i].Per) == false) { continue; } Image image = ResourceMan.getImage16(items[i].Image); BarItem item = new BarButtonItem(); item.Caption = items[i].Caption; item.Name = i.ToString(); item.Glyph = image; manager.Items.Add(item); menu.ItemLinks.Add(manager.Items[i]); DelegationLib.CallFunction_MulIn_NoOut del = items[i].Delegates; item.ItemClick += delegate(object sender, ItemClickEventArgs e) { string name = item.Name; List<object> objs = new List<object>(); for (int index = 0; index <= tree.Selection.Count; index++) { TreeListNode row = tree.Selection[index]; objs.Add(row); } del(objs); }; } tree.MouseUp += delegate(object sender, MouseEventArgs e) { if ((e.Button & MouseButtons.Right) != 0 && tree.ClientRectangle.Contains(e.X, e.Y)) { menu.ShowPopup(manager, Control.MousePosition); } else { menu.HidePopup(); } }; tree.MouseLeave += delegate(object sender, EventArgs e) { menu.HidePopup(); }; }
public void AddContextMenuItem(PopupMenu contextMenu, ContextMenuModel item) { var menu = new BarButtonItem { Name = item.Name, Content = item.DisplayName, Glyph = item.Image.ToBitmapImage(), }; SetUpActionHandler(menu, item); contextMenu.ItemLinks.Add(menu); }
public MenuItemsEditorForm(PopupMenu oMenu) { InitializeComponent(); this._firstActivate = true; _navBar = oMenu; Items = oMenu.Items; // add pre-existing nodes foreach (ChinaCustoms.Framework.DeluxeWorks.Web.WebControls.MenuItem oRoot in Items) { TreeNode oRootNode = new TreeNode(oRoot.Text); LoadNodes(oRoot, oRootNode); _treeView.Nodes.Add(oRootNode); } this.propertyGrid1.Site = new FormPropertyGridSite(oMenu.Site, this.propertyGrid1); _treeView.HideSelection = false; }
/// <summary> /// Generates the lock item /// </summary> /// <param name="barManager">The bar manager.</param> /// <param name="movieModel">The movie model.</param> private static void GenerateLock(BarManager barManager, PopupMenu popupMenu, List<MovieModel> movieModels) { if (movieModels.Count == 1 && movieModels[0].Locked) { return; } var item = new BarButtonItem(barManager, "Lock") { Tag = MovieListTagToString(movieModels), Glyph = Resources.locked32 }; item.ItemClick += lock_ItemClick; popupMenu.AddItem(item); }
public static BarButtonItem addSaveQueryDialog(XtraForm form, BarManager barManager, PopupMenu menu, GridControl gridControl, string dataSetID, string masterQueryNoCondition, params ProtocolVN.Framework.Win.SaveQueryDialog.HookAfterExecAdvQuery[] hooks) { BarButtonItem advancedSearch = HelpControl.addBarButtonItem(barManager, menu, "Tìm kiếm nâng cao"); advancedSearch.Glyph = FWImageDic.FIND_IMAGE20; advancedSearch.ItemClick += delegate(object sender, ItemClickEventArgs e) { FilterCase obj = new FilterCase(FrameworkParams.currentUser.id, dataSetID, "Truy vấn mới", masterQueryNoCondition); SaveQueryDialog q = new SaveQueryDialog(obj, gridControl); if (hooks != null && hooks.Length == 1) { q.hook = hooks[0]; } q.Owner = form; q.Show(); }; return advancedSearch; }
void OnListItemClick(object sender, AdapterView.ItemClickEventArgs e) { //piad, can not delete item if (IsCashPay) { return; } InvoiceDtls item = listData.ElementAt(e.Position); if (item.icode.IndexOf("TAX") > -1) { return; } if (item.icode.IndexOf("AMOUNT") > -1) { return; } PopupMenu menu = new PopupMenu(e.Parent.Context, e.View); menu.Inflate(Resource.Menu.popupItem); menu.Menu.RemoveItem(Resource.Id.popadd); //menu.Menu.RemoveItem (Resource.Id.popedit); // if (!rights.InvAllowDelete) { // menu.Menu.RemoveItem (Resource.Id.popdelete); // } menu.MenuItemClick += (s1, arg1) => { if (arg1.Item.ItemId == Resource.Id.popdelete) { Delete(item); } else if (arg1.Item.ItemId == Resource.Id.popedit) { EditItem(item); } }; menu.Show(); }
public PopupMenu(GUIContent[] nContents, PopupMenu.CallBack[] nCallBacks) { // Find maximum width float maxWidth = 0f; foreach(var content in nContents) { var contentWidth = GUI.skin.button.CalcSize(content).x; if(contentWidth > maxWidth) { maxWidth = contentWidth; } } maxWidth += 4f; var pos = InputManager.GetMousePosition(); position = new Rect(pos.x + 1, pos.y + 1, maxWidth, (buttonHeight + margin) * nContents.Length); contents = nContents; callBacks = nCallBacks; popupMenuHash = "PopupMenu".GetHashCode(); controlID = GUIUtility.GetControlID(popupMenuHash, FocusType.Passive); GUIUtility.hotControl = controlID; Login.instance.popupMenu = this; }
public void LoadNodes() { StationHandler = (StationHandler)GetNode("/root/StationHandler"); PlayContainer = GetNode <VBoxContainer>("HBoxContainer/VBoxContainer"); StopContainer = GetNode <VBoxContainer>("HBoxContainer/VBoxContainer2"); PlayBtn = GetNode <TextureButton>("HBoxContainer/VBoxContainer/Play"); StopBtn = GetNode <TextureButton>("HBoxContainer/VBoxContainer2/Stop"); PreviousBtn = GetNode <TextureButton>("HBoxContainer2/Previous"); NextBtn = GetNode <TextureButton>("HBoxContainer2/Next"); PreviousBtn.Connect("pressed", this, nameof(PreviousStation)); RadioList = GetNode <MenuButton>("HBoxContainer2/MenuButton"); VolumeValue = GetNode <Label>("HBoxContainer3/Value"); VolumeBar = GetNode <HSlider>("HBoxContainer3/VolumeBar"); AddStation = GetNode <ToolButton>("AddStation"); NewStation = GetNode <ConfirmationDialog>("NewStation"); StationName = GetNode <LineEdit>("NewStation/VBoxContainer/LineEdit"); StationURL = GetNode <LineEdit>("NewStation/VBoxContainer/LineEdit2"); Radio = RadioList.GetPopup(); }
private void AddClearHistorMenu(PopupMenu popupMenu, IEnumerable <PrintTask> printTasks) { var clearPrintHistory = popupMenu.CreateMenuItem("Clear History".Localize()); clearPrintHistory.Enabled = printTasks.Any(); clearPrintHistory.Click += (s, e) => { // clear history StyledMessageBox.ShowMessageBox( (clearHistory) => { if (clearHistory) { PrintHistoryData.Instance.ClearHistory(); } }, "Are you sure you want to clear your print history?".Localize(), "Clear History?".Localize(), StyledMessageBox.MessageType.YES_NO, "Clear History".Localize()); }; }
//--- 長押し処理 void LongClickProc(object sender, EventArgs e) { PopupMenu menu = new PopupMenu(this, centerButton); menu.MenuInflater.Inflate(Resource.Layout.popup_menu, menu.Menu); menu.MenuItemClick += (s, arg) => { Toast.MakeText(this, string.Format("{0}が選択されました。", arg.Item.TitleFormatted), ToastLength.Short).Show(); }; menu.DismissEvent += (s, arg) => { Toast.MakeText(this, "メニューを閉じました", ToastLength.Short).Show(); }; //StartActivityForResult(typeof(AppsListActivity), RequestCode); menu.Show(); //--- メニューが開きます Toast.MakeText(this, "アプリ登録リストへ移動します。", ToastLength.Short).Show(); }
void testMediator() { Formulaire formulaire = new Formulaire(); formulaire.ajouteControle(new ZoneSaisie("Nom")); formulaire.ajouteControle(new ZoneSaisie("Prénom")); PopupMenu menu = new PopupMenu("Coemprunteur"); menu.ajouteOption("sans coemprunteur"); menu.ajouteOption("avec coemprunteur"); formulaire.ajouteControle(menu); formulaire.menuCoemprunteur = menu; Bouton bouton = new Bouton("OK"); formulaire.ajouteControle(bouton); formulaire.boutonOK = bouton; formulaire.ajouteControleCoemprunteur(new ZoneSaisie( "Nom du coemprunteur")); formulaire.ajouteControleCoemprunteur(new ZoneSaisie( "Prénom du coemprunteur")); formulaire.saisie(); }
static void Main(string[] args) { Formulario formulario = new Formulario(); formulario.agregaControl(new ZonaInformacion("Nombre")); formulario.agregaControl(new ZonaInformacion("Apellidos")); PopupMenu menu = new PopupMenu("Coprestatario"); menu.agregaOpcion("sin coprestatario"); menu.agregaOpcion("con coprestatario"); formulario.agregaControl(menu); formulario.menuCoprestatario = menu; Boton boton = new Boton("OK"); formulario.agregaControl(boton); formulario.botonOK = boton; formulario.agregaControlCoprestatario(new ZonaInformacion( "Nombre del coprestatario")); formulario.agregaControlCoprestatario(new ZonaInformacion( "Apellidos del coprestatario")); formulario.informa(); }
private async void ShowOptions(object sender, RightTappedRoutedEventArgs e) { var menu = new PopupMenu(); menu.Commands.Add(new UICommand("Rename?", command => { if ((sender as RelativePanel).DataContext is Library librarySelected) { ViewModel.UpdateSelectedLibraryAsync(librarySelected); } })); menu.Commands.Add(new UICommandSeparator()); menu.Commands.Add(new UICommand("Delete", command => { if ((sender as RelativePanel).DataContext is Library librarySelected) { ViewModel.DeleteCommand.Execute(librarySelected); } })); await menu.ShowAsync(e.GetPosition(null)); }
private void ColorRampsButton_Click(object sender, EventArgs e) { // Create a local variable for the ColorRamps button Button myButton_ColorRamps = sender as Button; // Create menu to show ColorRamp options PopupMenu myPopupMenu_ColorRamps = new PopupMenu(this, myButton_ColorRamps); myPopupMenu_ColorRamps.MenuItemClick += OnColorRampsMenuItemClicked; // Create a string array of ColorRamp Enumerations the user can pick from string[] myColorRamps = System.Enum.GetNames(typeof(PresetColorRampType)); // Create menu options from the array of ColorRamp choices foreach (string myColorRamp in myColorRamps) { myPopupMenu_ColorRamps.Menu.Add(myColorRamp); } // Show the popup menu in the view myPopupMenu_ColorRamps.Show(); }
protected void butRemoveaction_Click(object sender, EventArgs e) { int id = int.Parse(lsbNodes.SelectedValue); try { PopupMenu pm = _presenter.CurrentTab.GetPopupMenu(id); if (pm != null) { _presenter.CurrentTab.PopupMenus.Remove(pm); _presenter.SaveOrUpdateTab(); PopNodesToDdl(); BindPopupMenus(); Master.ShowMessage(new AppMessage("Popup menu was removed successfully.", RMessageType.Info)); } } catch (Exception ex) { Master.ShowMessage(new AppMessage("Error: Unable to remove popup menu. " + ex.Message, RMessageType.Error)); } }
private async void ShowOptions(object sender, RightTappedRoutedEventArgs e) { var menu = new PopupMenu(); menu.Commands.Add(new UICommand("Update", command => { if ((sender as StackPanel).DataContext is Movie mediaSelected) { UpdateSelectedMedia(mediaSelected); } })); menu.Commands.Add(new UICommandSeparator()); menu.Commands.Add(new UICommand("Delete", command => { if ((sender as StackPanel).DataContext is Movie mediaSelected) { ViewModel.DeleteCommand.Execute(mediaSelected); } })); await menu.ShowAsync(e.GetPosition(null)); }
public PopupMenuHelper(Control control, bool allowCreate, bool allowEdit, bool allowDelete) { BarButtonItem item; var barManager = new BarManager { Form = control }; _popupMenu = new PopupMenu(barManager); if (allowCreate) { item = new BarButtonItem(barManager, General.PopupMenuNew) { Glyph = IconManager.GetBitmap(EIcons.add_16) }; item.ItemClick += (sender, args) => FireItemClick(PopupMenuItemType.Create); _popupMenu.AddItem(item); } if (allowEdit) { item = new BarButtonItem(barManager, General.PopupMenuEdit) { Glyph = IconManager.GetBitmap(EIcons.write_16) }; item.ItemClick += (sender, args) => FireItemClick(PopupMenuItemType.Edit); _popupMenu.AddItem(item); } if (allowDelete) { item = new BarButtonItem(barManager, General.PopupMenuDelete) { Glyph = IconManager.GetBitmap(EIcons.delete_16) }; item.ItemClick += (sender, args) => FireItemClick(PopupMenuItemType.Delete); _popupMenu.AddItem(item); } }
private void SetupScaleBarManager() { scaleBarManager = new BarManager { Form = this }; scalePopupMenu = new PopupMenu(); minorScaleButton = new BarButtonItem(scaleBarManager, "Minor") { Tag = "Minor" }; minorScaleButton.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.ScaleSelected); scalePopupMenu.AddItem(minorScaleButton); majorScaleButton = new BarButtonItem(scaleBarManager, "Major") { Tag = "Major" }; majorScaleButton.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.ScaleSelected); scalePopupMenu.AddItem(majorScaleButton); pentatonicScaleButton = new BarButtonItem(scaleBarManager, "Pentatonic") { Tag = "Pentatonic" }; pentatonicScaleButton.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.ScaleSelected); scalePopupMenu.AddItem(pentatonicScaleButton); bluesScaleButton = new BarButtonItem(scaleBarManager, "Blues") { Tag = "Blues" }; bluesScaleButton.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.ScaleSelected); scalePopupMenu.AddItem(bluesScaleButton); scaleDropDown.Parent = this; scaleDropDown.DropDownControl = scalePopupMenu; ItemClickEventArgs scaleSetupArgs = new ItemClickEventArgs(minorScaleButton, null); ScaleSelected(scaleBarManager, scaleSetupArgs); }
private void InitPauseMenus() { CreateCommonPopups(); HostButton = MenuApi.PauseMenu_MakeSimpleButton(HostString); HostButton.onClick.AddListener(Host); DisconnectPopup = MenuApi.MakeTwoChoicePopup("Are you sure you want to disconnect?\r\nThis will send you back to the main menu.", "YES", "NO"); DisconnectPopup.OnPopupConfirm += Disconnect; DisconnectButton = MenuApi.PauseMenu_MakeMenuOpenButton(DisconnectString, DisconnectPopup); QuitButton = FindObjectOfType <PauseMenuManager>()._exitToMainMenuAction.gameObject; if (QSBCore.IsInMultiplayer) { SetButtonActive(HostButton, false); SetButtonActive(DisconnectButton, true); SetButtonActive(QuitButton, false); } else { SetButtonActive(HostButton, true); SetButtonActive(DisconnectButton, false); SetButtonActive(QuitButton, true); } var text = QSBCore.IsHost ? StopHostingString : DisconnectString; DisconnectButton.transform.GetChild(0).GetChild(1).GetComponent <Text>().text = text; var popupText = QSBCore.IsHost ? "Are you sure you want to stop hosting?\r\nThis will disconnect all clients and send everyone back to the main menu." : "Are you sure you want to disconnect?\r\nThis will send you back to the main menu."; DisconnectPopup._labelText.text = popupText; }
protected override void OnAttached() { Effect = (InternalPopupEffect)Element.Effects.FirstOrDefault(e => e is InternalPopupEffect); if (Effect != null) { Effect.Parent.OnPopupRequest += OnPopupRequest; } Context context = Plugin.CurrentActivity.CrossCurrentActivity.Current.AppContext; Context wrapper = new Android.Support.V7.View.ContextThemeWrapper(context, Resource.Style.MyPopupMenu); if (Control != null) { ToggleMenu = new PopupMenu(wrapper, Control); } else if (Container != null) { ToggleMenu = new PopupMenu(wrapper, Container); } ToggleMenu.Gravity = (int)Android.Views.GravityFlags.Right; ToggleMenu.MenuItemClick += MenuItemClick; }
// GetView para mostrar cada una de las filas de la lista public override View GetView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = context.LayoutInflater.Inflate(Resource.Layout.pacienteListRow, parent, false); } Paciente item = this[position]; // Mostrar en pantalla convertView.FindViewById <TextView>(Resource.Id.txtView_NroHistoria).Text = "Historia N° " + item.NroHistoria.ToString(); //ToString: convierte de entero a string convertView.FindViewById <TextView>(Resource.Id.txtView_NombreApellido).Text = item.Nombre + " " + item.Apellido; var _iconMenu = convertView.FindViewById <ImageView>(Resource.Id.row_click); // PopupMenu _iconMenu.Click += (s, arg) => { PopupMenu popup = new PopupMenu(context, _iconMenu); popup.Inflate(Resource.Menu.popupMenu); popup.Show(); popup.MenuItemClick += (sender, args) => { if (args.Item.ItemId == Resource.Id.edit) { var otroActivity = new Intent(context, typeof(PacienteEdit)); otroActivity.PutExtra("KEY_ID", item.Id); // Pasamos el ID context.StartActivity(otroActivity); } if (args.Item.ItemId == Resource.Id.remove) { var otroActivity2 = new Intent(context, typeof(PacienteBorrar)); otroActivity2.PutExtra("KEY_ID", item.Id); // Pasamos el ID context.StartActivity(otroActivity2); } }; }; return(convertView); }
private void InitializeMenu() { popupMenu = new PopupMenu(); copyAllMenuCommand = new MenuCommand("Copy All", new EventHandler(copyAllMenuCommand_Click)); clearMenuCommand = new MenuCommand("Clear", new EventHandler(clearMenuCommand_Click)); forecolorMenuCommand = new MenuCommand("ForeColor", new EventHandler(forecolorMenuCommand_Click)); backroundMenuCommand = new MenuCommand("BackColor", new EventHandler(backroundMenuCommand_Click)); wordWrapMenuCommand = new MenuCommand("WordWrap", new EventHandler(wordWrapMenuCommand_Click)); filterMenuCommand = new MenuCommand("Filter", new EventHandler(filterMenuCommand_Click)); autoScrollCommand = new MenuCommand("AutoScroll", new EventHandler(autoScrollCommand_Click)); popupMenu.MenuCommands.Add(copyAllMenuCommand); popupMenu.MenuCommands.Add(clearMenuCommand); popupMenu.MenuCommands.Add(new MenuCommand("-")); popupMenu.MenuCommands.Add(forecolorMenuCommand); popupMenu.MenuCommands.Add(backroundMenuCommand); popupMenu.MenuCommands.Add(wordWrapMenuCommand); popupMenu.MenuCommands.Add(new MenuCommand("-")); popupMenu.MenuCommands.Add(filterMenuCommand); popupMenu.MenuCommands.Add(autoScrollCommand); }
public override View GetView(int position, View view, ViewGroup parent) { var inflater = context.GetSystemService(Context.LayoutInflaterService).JavaCast <LayoutInflater>(); view = inflater.Inflate(Resource.Layout.storage_item, null, false); view.LongClick += (sender, e) => { PopupMenu menu = new PopupMenu(context, view, GravityFlags.Right); menu.Inflate(Resource.Menu.storage_menu); menu.MenuItemClick += delegate(object s, PopupMenu.MenuItemClickEventArgs args) { Menu_MenuItemClick(s, args, position); }; menu.Show(); //int colorRes = ContextCompat.GetColor(context, Resource.Color.colorPrimary); //Android.Graphics.Color color = new Android.Graphics.Color(colorRes); //view.FindViewById<TextView>(Resource.Id.NameStorage).SetTextColor(color); }; TextView name = view.FindViewById <TextView>(Resource.Id.NameStorage); name.Text = storages[position].Name; return(view); }
private void SlopeTypesButton_Click(object sender, EventArgs e) { // Create a local variable for the SlopeTypes button Button myButton_SlopeTypes = sender as Button; // Create menu to show SlopeType options PopupMenu myPopupMenu_SlopeTypes = new PopupMenu(this, myButton_SlopeTypes); myPopupMenu_SlopeTypes.MenuItemClick += OnSlopeTypesMenuItemClicked; // Create a string array of SlopeType Enumerations the user can pick from string[] mySlopeTypes = System.Enum.GetNames(typeof(SlopeType)); // Create menu options from the array of SlopeType choices foreach (string mySlopeType in mySlopeTypes) { myPopupMenu_SlopeTypes.Menu.Add(mySlopeType); } // Show the popup menu in the view myPopupMenu_SlopeTypes.Show(); }
private void ChooseLayer_Clicked(object sender, EventArgs e) { // Get a reference to the button. Button loadButton = (Button)sender; // Create menu to show layer options. PopupMenu layerMenu = new PopupMenu(this, loadButton); layerMenu.MenuItemClick += LayerMenu_LayerSelected; // Create menu options. int index = 0; foreach (WfsLayerInfo layerInfo in _serviceInfo.LayerInfos) { layerMenu.Menu.Add(0, index, index, layerInfo.Title); index++; } // Show menu in the view. layerMenu.Show(); }
public static PopupMenu CreatepopupMenu(this View view, int menuRes) { var popupMenu = new PopupMenu(view.Context, view); var field = popupMenu.Class.GetDeclaredField("mPopup"); field.Accessible = true; var menuPopupHelper = field.Get(popupMenu); var setForceIcons = menuPopupHelper.Class.GetDeclaredMethod("setForceShowIcon", Java.Lang.Boolean.Type); setForceIcons.Invoke(menuPopupHelper, true); popupMenu.Inflate(menuRes); var spannableString = new SpannableString(Application.Context.GetString(Resource.String.delete)); spannableString.SetSpan(new ForegroundColorSpan(Color.Red), 0, spannableString.Length(), 0); popupMenu.Menu.FindItem(Resource.Id.delete)?.SetTitle(spannableString); return(popupMenu); }
private void BuildAndShowLaserlineStyleMenu() { PopupMenu menu = new PopupMenu(this.RequireContext(), this.containerLaserlineStyle, GravityFlags.End); LaserlineViewfinderStyle[] values = LaserlineViewfinderStyle.Values(); for (int i = 0; i < values.Length; i++) { LaserlineViewfinderStyle style = values[i]; menu.Menu.Add(0, i, i, style.Name()); } menu.MenuItemClick += (object sender, PopupMenu.MenuItemClickEventArgs args) => { int selectedStyle = args.Item.ItemId; this.viewModel.SetLaserlineViewfinderStyle( LaserlineViewfinderStyle.Values()[selectedStyle] ); this.ShowHideSubSettings(); }; menu.Show(); }
private async void userGridView_RightTapped(object sender, Windows.UI.Xaml.Input.RightTappedRoutedEventArgs e) { var menu = new PopupMenu(); menu.Commands.Add(new UICommand("取消黑名单", async(command) => { try { var user = await FanfouAPI.FanfouAPI.Instance.BlockDestroy(((sender as UserItemControl).DataContext as User).id); users.Remove((from u in users where u.id == user.id select u).First()); } catch (Exception) { Utils.ToastShow.ShowInformation("加载失败,请检查网络"); } })); var chosenCommand = await menu.ShowForSelectionAsync(Utils.MenuRect.GetElementRect((FrameworkElement)sender)); if (chosenCommand == null) { } }
/// <summary> /// Shows a <see cref="PopupMenu"/>. /// </summary> /// <param name="tag"> /// The tag of the anchor view (the <see cref="PopupMenu"/> is /// displayed next to this view); this needs to be the tag of a native /// view (shadow views cannot be anchors). /// </param> /// <param name="items">The menu items as an array of strings.</param> /// <param name="success"> /// A callback used with the position of the selected item as the first /// argument, or no arguments if the menu is dismissed. /// </param> public void ShowPopupMenu(int tag, string[] items, ICallback success) { DispatcherHelpers.AssertOnDispatcher(); var view = ResolveView(tag); var menu = new PopupMenu(); for (var i = 0; i < items.Length; ++i) { menu.Commands.Add(new UICommand( items[i], cmd => { success.Invoke(cmd.Id); }, i)); } // TODO: figure out where to popup the menu // TODO: add continuation that calls the callback with empty args throw new NotImplementedException(); }
public override void Enter(Crawler crawler) { success = false; PopupMenu menu = crawler.FindNode("Modals").GetNode <PopupMenu>("ItemsMenu"); menu.Clear(); menu.AddSeparator("Inventory"); if (crawler.Model.GetPlayer().inventory is InventoryItem item) { string name = item.data.ResourceName; menu.AddItem($"{item.data.ResourceName} ({item.uses}/{item.data.maxUses})", 0); } else { menu.AddItem("Nothing :(", 100); menu.SetItemDisabled(1, true); } menu.Popup_(); }
public void createMenu() { if (modeMenu == null) { modeMenu = Gui.Instance.createWidgetT("PopupMenu", "PopupMenu", 0, 0, 1000, 1000, Align.Default, "Overlapped", "LayerMenu") as PopupMenu; modeMenu.Visible = false; MenuItem item = modeMenu.addItem("Solid", MenuItemType.Normal); item.UserObject = RenderingMode.Solid; item.MouseButtonClick += item_MouseButtonClick; item = modeMenu.addItem("Wireframe", MenuItemType.Normal); item.UserObject = RenderingMode.Wireframe; item.MouseButtonClick += item_MouseButtonClick; item = modeMenu.addItem("Points", MenuItemType.Normal); item.UserObject = RenderingMode.Points; item.MouseButtonClick += item_MouseButtonClick; modeMenu.Closed += new MyGUIEvent(windowMenu_Closed); } }
//SuppressLint("NewApi") public bool OnCreateActionMode(ActionMode mode, Android.Views.IMenu menu) { mode.MenuInflater.Inflate(Resource.Menu.inbox_actions_menu, menu); // Add a pop up menu to the action bar to select/deselect all // Pop up menu requires api >= 11 if ((int)Build.VERSION.SdkInt >= (int)BuildVersionCodes.Honeycomb) { View customView = LayoutInflater.From(this).Inflate(Resource.Layout.cab_selection_dropdown, null); actionSelectionButton = (Button)customView.FindViewById(Resource.Id.selection_button); PopupMenu popupMenu = new PopupMenu(this, customView); popupMenu.MenuInflater.Inflate(Resource.Menu.selection, popupMenu.Menu); popupMenu.MenuItemClick += (sender, e) => { var item = e.Item; if (item.ItemId == Resource.Id.menu_deselect_all) { inbox.ClearSelection(); } else { inbox.SelectAll(); } e.Handled = true; }; actionSelectionButton.Click += (sender, e) => { var _menu = popupMenu.Menu; _menu.FindItem(Resource.Id.menu_deselect_all).SetVisible(true); _menu.FindItem(Resource.Id.menu_select_all).SetVisible(inbox.SelectedMessages.Count != messages.Count); popupMenu.Show(); }; mode.CustomView = customView; } return(true); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.BlogAuthorLayout); Button showPopupMenu = FindViewById <Button>(Resource.Id.button1); showPopupMenu.Click += delegate { PopupMenu menu = new PopupMenu(this, showPopupMenu); menu.Inflate(Resource.Menu.popup_menu); menu.MenuItemClick += (s1, e1) => { Toast.MakeText(this, e1.Item.TitleFormatted.ToString(), ToastLength.Long).Show(); switch (e1.Item.TitleFormatted.ToString()) { case "Location Visited": StartActivity(typeof(LocationVisited)); break; case "Next Vacation Destination": StartActivity(typeof(NextLocation)); break; case "Contact Blogger": StartActivity(typeof(ContactA)); break; } }; menu.Show(); }; }
private void OnStatusIconPopupMenu(object sender, PopupMenuArgs args) { PopupMenu menu = new PopupMenu(); // Append Menu Items if (PopupMenu != null) { PopupMenu(this, menu); } if (nyFolder.MainWindow != null) { menu.AddImageItem("Logout", new EventHandler(OnMenuLogout)); } menu.AddSeparator(); // Show/Hide Login Dialog Check Box if (nyFolder.MainWindow != null) { menu.AddCheckItem("Show/Hide Window", nyFolder.MainWindow.Visible, new EventHandler(OnMenuShowHideWin)); } // Show/Hide Login Dialog Check Box if (nyFolder.LoginDialog != null) { menu.AddCheckItem("Show/Hide Dialog", nyFolder.LoginDialog.Visible, new EventHandler(OnMenuShowHideWin)); } menu.AddImageItem(Gtk.Stock.Quit, new EventHandler(OnMenuQuit)); menu.ShowAll(); menu.Popup(); }
/// <summary> /// Displays a PopupMenu for selection of the other Bluetooth device. /// Continues by establishing a connection to the selected device. /// </summary> /// <param name="invokerRect">for example: connectButton.GetElementRect();</param> public async Task EnumerateDevicesAsync(Rect invokerRect) { strException = ""; // The Bluetooth connects intermittently unless the bluetooth settings is launched //await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-bluetooth:")); this.State = BluetoothConnectionState.Enumerating; var serviceInfoCollection = await DeviceInformation.FindAllAsync(RfcommDeviceService.GetDeviceSelector(RfcommServiceId.SerialPort)); PopupMenu menu = new PopupMenu(); foreach (var serviceInfo in serviceInfoCollection) { menu.Commands.Add(new UICommand(serviceInfo.Name, new UICommandInvokedHandler(delegate(IUICommand command) { _serviceInfo = (DeviceInformation)command.Id; }), serviceInfo)); } var result = await menu.ShowForSelectionAsync(invokerRect); if (result == null) { // The Bluetooth connects intermittently unless the bluetooth settings is launched await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-bluetooth:")); this.State = BluetoothConnectionState.Disconnected; } if (_serviceInfo == null) { strException += "First connection attempt failed\n"; // The Bluetooth connects intermittently unless the bluetooth settings is launched await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-bluetooth:")); // Update the state this.State = BluetoothConnectionState.Disconnected; } }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Dialog.Window.RequestFeature(WindowFeatures.NoTitle); View view = inflater.Inflate(Resource.Layout.NoteEdit, container); _txtNota = (EditText)view.FindViewById <EditText>(Resource.Id.txtNote); var btnOption = view.FindViewById <ImageButton>(Resource.Id.btnOption); btnOption.Click += (object sender, EventArgs e) => { PopupMenu popup = new PopupMenu(Dialog.Context, btnOption); popup.Menu.Add(1, 1, 1, "Salva"); popup.Menu.Add(1, 2, 2, "Elimina"); popup.MenuItemClick += (object send, PopupMenu.MenuItemClickEventArgs ev) => { if (ev.Item.ItemId == 1) //salva { _nota.Testo = _txtNota.Text; _noteManager.EditNota(_nota); this.Dismiss(); } else if (ev.Item.ItemId == 2) //elimina { this.DeleteNote(); } }; popup.Show(); }; return(view); }
public RightClickTitleBarWindow(frmRibbonMain form, PopupMenu popupMenu, XtraMdiTabPage tagPage) { this.form = form; this.popupMenu = popupMenu; this.tagPage = tagPage; itemsForTabPage = new List<BarItemLink>(); ctrlItemsForTabPage = new List<BarItem>(); if (tagPage != null && tagPage.MdiChild != null) { Form selectedForm = tagPage.MdiChild; if (selectedForm is IFormRefresh) { BarButtonItem refresh_item = new BarButtonItem(); refresh_item.Caption = RightClickTitleBarDialog.MENU_TITLE_FORM_REFRESH_TEXT; refresh_item.Glyph = FWImageDic.REFRESH_IMAGE16; refresh_item.PaintStyle = BarItemPaintStyle.CaptionGlyph; refresh_item.ItemClick += new ItemClickEventHandler(refresh_item_ItemClick); itemsForTabPage.Add(popupMenu.ItemLinks.Add(refresh_item)); ctrlItemsForTabPage.Add(refresh_item); } if (selectedForm is IFormFURL) { BarButtonItem furl_item = new BarButtonItem(); furl_item.Caption = RightClickTitleBarDialog.MENU_TITLE_FORM_FURL_TEXT; furl_item.PaintStyle = BarItemPaintStyle.CaptionGlyph; furl_item.Glyph = FWImageDic.INFO_IMAGE16; furl_item.ItemClick += new ItemClickEventHandler(furl_item_ItemClick); itemsForTabPage.Add(popupMenu.ItemLinks.Add(furl_item)); ctrlItemsForTabPage.Add(furl_item); } } }
private void PlayPopup() { if (_pm == null) { _pm = new PopupMenu(); _pm.AddItem("Item 1", __clickMenu); _pm.AddItem("Item 2", __clickMenu); _pm.AddItem("Item 3", __clickMenu); _pm.AddItem("Item 4", __clickMenu); } if (_popupCom == null) { _popupCom = UIPackage.CreateObject("Basics", "Component12").asCom; _popupCom.Center(); } GComponent obj = _demoObjects["Popup"]; obj.GetChild("n0").onClick.Add((EventContext context) => { _pm.Show((GObject)context.sender, true); }); obj.GetChild("n1").onClick.Add(() => { GRoot.inst.ShowPopup(_popupCom); }); obj.onRightClick.Add(() => { _pm.Show(); }); }
private void InitializeCopy() { var barManager = new BarManager(); if (barManager.Controller == null) barManager.Controller = new BarAndDockingController(); barManager.Controller.PaintStyleName = "Skin"; barManager.Controller.LookAndFeel.UseDefaultLookAndFeel = false; barManager.Controller.LookAndFeel.SkinName = "Office 2007 Blue"; barManager.ItemClick += HandleSendCopyToDeliveryClick; var baritem = new BarButtonItem() { Manager = barManager, Caption = "Nota de Crédito Proveedor", Glyph = DevExpress.Images.ImageResourceCache.Default.GetImage("images/navigation/forward_16x16.png") }; barManager.Items.Add(baritem); var popupMenu = new PopupMenu { Manager = barManager }; foreach (var barItem in barManager.Items) popupMenu.ItemLinks.Add((BarItem)barItem); ddbCopy.DropDownControl = popupMenu; }
private void CreatePopupItem(BarItem parentItem, string itemId) { PopupMenu popup = new PopupMenu(new System.ComponentModel.Container()); popup.MenuDrawMode = MenuDrawMode.LargeImagesText; BarButtonItem item = (BarButtonItem)parentItem; item.Id = frmRibbonMain.IIII++; item.ButtonStyle = BarButtonStyle.DropDown; item.DropDownControl = popup; popup.Ribbon = ribbonControl; foreach (DataRow drTemp in ds.Tables[0].Select("Parents='" + itemId + "'")) { createChildItem(popup, drTemp[0].ToString()); } }
private void createChildItem(PopupMenu popupMenu, string parentItemID) { if (ds.Tables[0].Select("Parents='" + parentItemID + "'").Length > 0) { BarSubItem barSubItem = new BarSubItem(); barSubItem.Id = frmRibbonMain.IIII++; barSubItem.Caption = getName(parentItemID); barSubItem.PaintStyle = BarItemPaintStyle.CaptionGlyph; barSubItem.RibbonStyle = RibbonItemStyles.Default; barSubItem.Enabled = getEnable(parentItemID); popupMenu.ItemLinks.Add(barSubItem, getSep(parentItemID)); try { Image image = this.getImage48(parentItemID); barSubItem.Glyph = image; } catch { } if (getToolTip(parentItemID) != "") { CreateToolTip(barSubItem, getToolTip(parentItemID)); } foreach (DataRow dr in ds.Tables[0].Select("Parents='" + parentItemID + "'")) { createChildItem(barSubItem, dr[0].ToString()); } } else { BarButtonItem barButtonItem = new BarButtonItem(); barButtonItem.Id = frmRibbonMain.IIII++; barButtonItem.Name = parentItemID; barButtonItem.Caption = getName(parentItemID); barButtonItem.PaintStyle = BarItemPaintStyle.CaptionGlyph; barButtonItem.RibbonStyle = RibbonItemStyles.Large; barButtonItem.Enabled = getEnable(parentItemID); //subItemParent.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(barButtonItem, true) }); popupMenu.ItemLinks.Add(barButtonItem, getSep(parentItemID)); if (getToolTip(parentItemID) != "") { CreateToolTip(barButtonItem, getToolTip(parentItemID)); } try { Image image = this.getImage48(parentItemID); barButtonItem.Glyph = image; } catch { } barButtonItem.ItemClick += new ItemClickEventHandler(itemClick); } }
private void InitialRightMenu() { pmRight = new PopupMenu(TheReferenceInstances.TheBarManager); biComplete = new BarButtonItem(TheReferenceInstances.TheBarManager, "完成草图"); biComplete.ItemClick += new ItemClickEventHandler(biComplete_ItemClick); pmRight.AddItem(biComplete); biDelete = new BarButtonItem(TheReferenceInstances.TheBarManager, "删除草图"); biDelete.ItemClick += new ItemClickEventHandler(biDelete_ItemClick); pmRight.AddItem(biDelete); biDrawNext = new BarButtonItem(TheReferenceInstances.TheBarManager, "根据角度和距离绘制下一个点"); biDrawNext.ItemClick += new ItemClickEventHandler(biDrawNextPntByDis_ItemClick); pmRight.AddItem(biDrawNext); pmRight.ItemLinks[pmRight.ItemLinks.Count - 1].BeginGroup = true; biBack = new BarButtonItem(TheReferenceInstances.TheBarManager, "回退到前一个草图结点"); biBack.ItemClick += new ItemClickEventHandler(biBack_ItemClick); pmRight.AddItem(biBack); biImportToGraphic = new BarButtonItem(TheReferenceInstances.TheBarManager, "导入草图坐标串"); biImportToGraphic.ItemClick += new ItemClickEventHandler(biImportToGraphic_ItemClick); pmRight.AddItem(biImportToGraphic); pmRight.ItemLinks[pmRight.ItemLinks.Count - 1].BeginGroup = true; biGenerate = new BarButtonItem(TheReferenceInstances.TheBarManager, "从选择要素中生成草图"); biGenerate.ItemClick += new ItemClickEventHandler(biGenerate_ItemClick); pmRight.AddItem(biGenerate); }
public static BarButtonItem InitPrintGrid(BarManager barManger, Bar mainBar, GridView gridView, BarBaseButtonItem barButtonItemPrint, bool isLandscape) { barButtonItemPrint.Visibility = BarItemVisibility.Never; // link.ShowPreviewDialog(); var itemXemtruoc = new BarButtonItem { Caption = "&Xem trước", PaintStyle = BarItemPaintStyle.CaptionGlyph, Glyph = FrameworkParams.imageStore.GetImage1616("fwPrintPreview.png") }; itemXemtruoc.ItemClick += delegate { if (FrameworkParams.headerLetter != null) { bool showCaption = gridView.OptionsView.ShowViewCaption; gridView.OptionsView.ShowViewCaption = false; PrintableComponentLink link = FrameworkParams.headerLetter.Draw(gridView.GridControl, gridView.ViewCaption.ToUpper(), "Ngày báo cáo: " + DateTime.Today.ToString( FrameworkParams.option. dateFormat)); link.PrintingSystem.PageSettings.Landscape = isLandscape; gridView.OptionsView.ShowViewCaption = showCaption; link.ShowPreview(); } else { gridView.GridControl.ShowPrintPreview(); } }; var popupMenu = new PopupMenu(barManger.Container) { Manager = barManger }; popupMenu.LinksPersistInfo.Add(new LinkPersistInfo(itemXemtruoc)); var itemPrint = new BarButtonItem { Caption = "&In", PaintStyle = BarItemPaintStyle.CaptionGlyph, Glyph = barButtonItemPrint.Glyph, ButtonStyle = BarButtonStyle.DropDown, DropDownControl = popupMenu, Enabled = false, Visibility = BarItemVisibility.Always }; itemPrint.ItemClick += delegate { if (FrameworkParams.headerLetter != null) { bool showCaption = gridView.OptionsView.ShowViewCaption; gridView.OptionsView.ShowViewCaption = false; PrintableComponentLink link = FrameworkParams.headerLetter.Draw(gridView.GridControl, gridView.ViewCaption.ToUpper(), "Ngày báo cáo: " + DateTime.Today.ToString( FrameworkParams.option. dateFormat)); link.PrintingSystem.PageSettings.Landscape = isLandscape; gridView.OptionsView.ShowViewCaption = showCaption; gridView.OptionsPrint.PrintDetails = true; link.PrintDlg(); } else { gridView.GridControl.Print(); } }; int index = 0; for (int i = 0; i < mainBar.LinksPersistInfo.Count; i++) { if (mainBar.LinksPersistInfo[i].Item.Name == barButtonItemPrint.Name) { index = i; break; } } mainBar.LinksPersistInfo.Insert(index, new LinkPersistInfo(itemPrint, true)); barManger.Items.AddRange(new BarItem[] { itemPrint, itemXemtruoc }); gridView.RowCountChanged += (sender, args) => itemPrint.Enabled = gridView.RowCount > 0; return itemPrint; }
public void AddItem(GUIContent content, bool on, PopupMenu.MenuFunctionData func, object userData) { popup.AddItem (content, on, func, userData); }
/// <summary> /// The add item popup menu /// </summary> private void renderNewThingPopup() { View menuItemView = findViewById(R.id.action_new_thing); PopupMenu popup = new PopupMenu(this, menuItemView); MenuInflater inflater = popup.MenuInflater; inflater.inflate(R.menu.add_office_thing, popup.Menu); popup.OnMenuItemClickListener = new OnMenuItemClickListenerAnonymousInnerClassHelper(this); popup.show(); }
private void AddRowToAdminGrid(AdminCommand adminCommand) { PopupMenu menuController = new PopupMenu(this); int insertRowCount = this.adminGrid.Rows.Count; adminGrid.Rows.Insert(insertRowCount); SourceGrid.Cells.Views.ColumnHeader nameHeaderView1 = new SourceGrid.Cells.Views.ColumnHeader(); DevAge.Drawing.VisualElements.ColumnHeader namebackHeader1 = new DevAge.Drawing.VisualElements.ColumnHeader(); namebackHeader1.BackColor = Color.DarkSlateGray; nameHeaderView1.Background = namebackHeader1; nameHeaderView1.Border = cellBorder; nameHeaderView1.ForeColor = Color.White; nameHeaderView1.Font = new Font("굴림", 8, FontStyle.Regular); nameHeaderView1.TextAlignment = DevAge.Drawing.ContentAlignment.MiddleCenter; adminGrid[insertRowCount, 0] = new SourceGrid.Cells.Cell(adminCommand.AdminNo); adminGrid[insertRowCount, 0].View = viewNormal; adminGrid[insertRowCount, 0].AddController(menuController); adminGrid[insertRowCount, 1] = new SourceGrid.Cells.Cell(adminCommand.AdminGroupName); adminGrid[insertRowCount, 1].View = viewNormal; adminGrid[insertRowCount, 1].AddController(menuController); adminGrid[insertRowCount, 2] = new SourceGrid.Cells.Cell(adminCommand.Name); adminGrid[insertRowCount, 2].View = viewNormal; adminGrid[insertRowCount, 2].AddController(menuController); adminGrid[insertRowCount, 3] = new SourceGrid.Cells.Cell(adminCommand.Id); adminGrid[insertRowCount, 3].View = viewNormal; adminGrid[insertRowCount, 3].AddController(menuController); adminGrid[insertRowCount, 4] = new SourceGrid.Cells.Cell(adminCommand.Password); adminGrid[insertRowCount, 4].View = viewNormal; adminGrid[insertRowCount, 4].AddController(menuController); adminGrid[insertRowCount, 5] = new SourceGrid.Cells.Cell(adminCommand.AdminRegDate); adminGrid[insertRowCount, 5].View = viewNormal; adminGrid[insertRowCount, 5].AddController(menuController); }
/// <summary> /// The change floor pattern popup menu /// </summary> private void renderChangeCarpetPopup() { View menuItemView = findViewById(R.id.change_floor); PopupMenu popup = new PopupMenu(this, menuItemView); MenuInflater inflater = popup.MenuInflater; inflater.inflate(R.menu.change_floor, popup.Menu); popup.OnMenuItemClickListener = new OnMenuItemClickListenerAnonymousInnerClassHelper2(this); popup.show(); }
public RulerControl() { base.BackColor = System.Drawing.Color.White; base.ForeColor = System.Drawing.Color.Black; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); #if !FRAMEWORKMENUS // Create the popup menu object _mnuContext = new PopupMenu(); // Create the menu objects MenuCommand mnuPoints = new MenuCommand("Points", new EventHandler(Popup_Click)); mnuPoints.Tag = enumScaleMode.smPoints; MenuCommand mnuPixels = new MenuCommand("Pixels", new EventHandler(Popup_Click)); mnuPixels.Tag = enumScaleMode.smPixels; MenuCommand mnuCentimetres = new MenuCommand("Centimetres", new EventHandler(Popup_Click)); mnuCentimetres.Tag = enumScaleMode.smCentimetres; MenuCommand mnuInches = new MenuCommand("Inches", new EventHandler(Popup_Click)); mnuInches.Tag = enumScaleMode.smInches; // Define the list of menu commands _mnuContext.MenuCommands.AddRange(new MenuCommand[]{mnuPoints, mnuPixels, mnuCentimetres, mnuInches}); // Define the properties to get appearance to match MenuControl _mnuContext.Style = VisualStyle.IDE; #endif #if FRAMEWORKMENUS System.Windows.Forms.MenuItem mnuPoints = new System.Windows.Forms.MenuItem("Points", new EventHandler(Popup_Click)); System.Windows.Forms.MenuItem mnuPixels = new System.Windows.Forms.MenuItem("Pixels", new EventHandler(Popup_Click)); System.Windows.Forms.MenuItem mnuCentimetres = new System.Windows.Forms.MenuItem("Centimetres", new EventHandler(Popup_Click)); System.Windows.Forms.MenuItem mnuInches = new System.Windows.Forms.MenuItem("Inches", new EventHandler(Popup_Click)); ContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {mnuPoints, mnuPixels, mnuCentimetres, mnuInches}); #endif ScaleMode = ScaleMode.Points; }
public GenericMenu() { popup = new PopupMenu (); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn(); this.iNew = new DevExpress.XtraBars.BarButtonItem(); this.iNew2 = new DevExpress.XtraBars.BarButtonItem(); this.iNewR = new DevExpress.XtraBars.BarButtonItem(); this.iNewR2IB = new DevExpress.XtraBars.BarButtonItem(); this.iLoadStrategy = new DevExpress.XtraBars.BarButtonItem(); this.pmNew = new DevExpress.XtraBars.PopupMenu(this.components); this.pmNewR = new DevExpress.XtraBars.PopupMenu(this.components); this.ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.barStaticItem1 = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem2 = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem3 = new DevExpress.XtraBars.BarStaticItem(); this.btnSbobetGetInfo = new DevExpress.XtraBars.BarButtonItem(); this.lblSbobetCurrentCredit = new DevExpress.XtraBars.BarStaticItem(); this.lblSbobetTotalMatch = new DevExpress.XtraBars.BarStaticItem(); this.lblSbobetLastUpdate = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem7 = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem8 = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem9 = new DevExpress.XtraBars.BarStaticItem(); this.lblIbetCurrentCredit = new DevExpress.XtraBars.BarStaticItem(); this.lblIbetTotalMatch = new DevExpress.XtraBars.BarStaticItem(); this.lblIbetLastUpdate = new DevExpress.XtraBars.BarStaticItem(); this.btnIbetGetInfo = new DevExpress.XtraBars.BarButtonItem(); this.lblStatus = new DevExpress.XtraBars.BarStaticItem(); this.lblSameMatch = new DevExpress.XtraBars.BarStaticItem(); this.lblLastUpdate = new DevExpress.XtraBars.BarStaticItem(); this.btnStart = new DevExpress.XtraBars.BarButtonItem(); this.btnStop = new DevExpress.XtraBars.BarButtonItem(); this.btnClear = new DevExpress.XtraBars.BarButtonItem(); this.btnSnapShot = new DevExpress.XtraBars.BarButtonItem(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.rpgIbet = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.rpgSbobet = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup3 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup4 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup5 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl(); this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPageMatches = new DevExpress.XtraTab.XtraTabPage(); this.grdSameMatch = new DevExpress.XtraGrid.GridControl(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn(); this.xtraTabPageBetList1 = new DevExpress.XtraTab.XtraTabPage(); this.girdBetList1 = new DevExpress.XtraGrid.GridControl(); this.gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn33 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn24 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn25 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn28 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn29 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn30 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn31 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn32 = new DevExpress.XtraGrid.Columns.GridColumn(); this.xtraTabPageBetList2 = new DevExpress.XtraTab.XtraTabPage(); this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPage4 = new DevExpress.XtraTab.XtraTabPage(); this.groupControl2 = new DevExpress.XtraEditors.GroupControl(); this.checkEdit2 = new DevExpress.XtraEditors.CheckEdit(); this.labelControl12 = new DevExpress.XtraEditors.LabelControl(); this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); this.checkEdit18 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit17 = new DevExpress.XtraEditors.CheckEdit(); this.spinEdit4 = new DevExpress.XtraEditors.SpinEdit(); this.checkEdit1 = new DevExpress.XtraEditors.CheckEdit(); this.spinEdit3 = new DevExpress.XtraEditors.SpinEdit(); this.labelControl13 = new DevExpress.XtraEditors.LabelControl(); this.spinEdit2 = new DevExpress.XtraEditors.SpinEdit(); this.spinEdit1 = new DevExpress.XtraEditors.SpinEdit(); this.txtTransactionTimeSpan = new DevExpress.XtraEditors.SpinEdit(); this.labelControl10 = new DevExpress.XtraEditors.LabelControl(); this.txtMaxTimePerHalf = new DevExpress.XtraEditors.SpinEdit(); this.labelControl7 = new DevExpress.XtraEditors.LabelControl(); this.chbAllowHalftime = new DevExpress.XtraEditors.CheckEdit(); this.groupControl1 = new DevExpress.XtraEditors.GroupControl(); this.checkEdit15 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit14 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit13 = new DevExpress.XtraEditors.CheckEdit(); this.btnSetUpdateInterval = new DevExpress.XtraEditors.SimpleButton(); this.txtSBOBETUpdateInterval = new DevExpress.XtraEditors.SpinEdit(); this.labelControl3 = new DevExpress.XtraEditors.LabelControl(); this.txtIBETUpdateInterval = new DevExpress.XtraEditors.SpinEdit(); this.labelControl4 = new DevExpress.XtraEditors.LabelControl(); this.groupControl5 = new DevExpress.XtraEditors.GroupControl(); this.chbHighRevenueBoost = new DevExpress.XtraEditors.CheckEdit(); this.txtAddValue = new DevExpress.XtraEditors.SpinEdit(); this.txtLowestOddValue = new DevExpress.XtraEditors.SpinEdit(); this.labelControl9 = new DevExpress.XtraEditors.LabelControl(); this.txtOddValueDifferenet = new DevExpress.XtraEditors.SpinEdit(); this.checkEdit6 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit5 = new DevExpress.XtraEditors.CheckEdit(); this.labelControl18 = new DevExpress.XtraEditors.LabelControl(); this.labelControl8 = new DevExpress.XtraEditors.LabelControl(); this.checkEdit7 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit12 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit11 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit10 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit9 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit8 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit4 = new DevExpress.XtraEditors.CheckEdit(); this.checkEdit3 = new DevExpress.XtraEditors.CheckEdit(); this.groupControl4 = new DevExpress.XtraEditors.GroupControl(); this.txtSBOBETFixedStake = new DevExpress.XtraEditors.SpinEdit(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.txtStake = new DevExpress.XtraEditors.MemoEdit(); this.chbRandomStake = new DevExpress.XtraEditors.CheckEdit(); this.txtIBETFixedStake = new DevExpress.XtraEditors.SpinEdit(); this.labelControl6 = new DevExpress.XtraEditors.LabelControl(); this.groupControl6 = new DevExpress.XtraEditors.GroupControl(); this.chkListAllowedMatch = new DevExpress.XtraEditors.CheckedListBoxControl(); this.xtraTabPage5 = 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.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.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn9 = 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.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); this.panelControl5 = new DevExpress.XtraEditors.PanelControl(); this.panelControl4 = new DevExpress.XtraEditors.PanelControl(); this.label1 = new System.Windows.Forms.Label(); this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); this.panelControl3 = new DevExpress.XtraEditors.PanelControl(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.labelControl5 = new DevExpress.XtraEditors.LabelControl(); this.panelControl9 = new DevExpress.XtraEditors.PanelControl(); this.panelControl10 = new DevExpress.XtraEditors.PanelControl(); this.btnIBETGO2 = new DevExpress.XtraEditors.SimpleButton(); this.txtIBETAddress2 = new DevExpress.XtraEditors.TextEdit(); this.xtraTabPage9 = new DevExpress.XtraTab.XtraTabPage(); ((System.ComponentModel.ISupportInitialize)(this.pmNew)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pmNewR)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); this.splitContainerControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); this.xtraTabControl1.SuspendLayout(); this.xtraTabPageMatches.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdSameMatch)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); this.xtraTabPageBetList1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.girdBetList1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit(); this.xtraTabControl2.SuspendLayout(); this.xtraTabPage4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).BeginInit(); this.groupControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit2.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit18.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit17.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit4.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit3.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit2.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTransactionTimeSpan.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtMaxTimePerHalf.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chbAllowHalftime.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit(); this.groupControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit15.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit14.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit13.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSBOBETUpdateInterval.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtIBETUpdateInterval.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl5)).BeginInit(); this.groupControl5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chbHighRevenueBoost.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddValue.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtLowestOddValue.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOddValueDifferenet.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit6.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit5.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit7.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit12.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit11.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit10.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit9.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit8.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit4.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit3.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl4)).BeginInit(); this.groupControl4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.txtSBOBETFixedStake.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtStake.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chbRandomStake.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtIBETFixedStake.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl6)).BeginInit(); this.groupControl6.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chkListAllowedMatch)).BeginInit(); this.xtraTabPage5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdTransaction)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl10)).BeginInit(); this.panelControl10.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.txtIBETAddress2.Properties)).BeginInit(); this.xtraTabPage9.SuspendLayout(); this.SuspendLayout(); // // gridColumn23 // this.gridColumn23.Caption = "Kick Off"; this.gridColumn23.FieldName = "KickOffTime"; this.gridColumn23.Name = "gridColumn23"; this.gridColumn23.Visible = true; this.gridColumn23.VisibleIndex = 8; this.gridColumn23.Width = 150; // // iNew // this.iNew.Caption = "Open Website"; this.iNew.CategoryGuid = new System.Guid("4b511317-d784-42ba-b4ed-0d2a746d6c1f"); this.iNew.Description = "Open Website"; this.iNew.Enabled = false; this.iNew.Hint = "Open main web"; this.iNew.Id = 0; this.iNew.ImageIndex = 6; this.iNew.LargeImageIndex = 0; this.iNew.Name = "iNew"; this.iNew.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnViewIbetWeb); // // iNew2 // this.iNew2.Caption = "Open 2nd Website"; this.iNew2.CategoryGuid = new System.Guid("1b511317-d784-42ba-b4ed-0d2a746d6c1f"); this.iNew2.Description = "Open 2nd Website"; this.iNew2.Enabled = false; this.iNew2.Hint = "Open main web"; this.iNew2.Id = 0; this.iNew2.ImageIndex = 6; this.iNew2.LargeImageIndex = 0; this.iNew2.Name = "iNew2"; this.iNew2.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnViewIbet2Web); // // iNewR // this.iNewR.Caption = "Open Website"; this.iNewR.CategoryGuid = new System.Guid("ab511317-d784-42ba-b4ed-0d2a746d6c1f"); this.iNewR.Description = "Open Website"; this.iNewR.Enabled = false; this.iNewR.Hint = "Open main web"; this.iNewR.Id = 0; this.iNewR.ImageIndex = 6; this.iNewR.LargeImageIndex = 0; this.iNewR.Name = "iNewR"; this.iNewR.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnViewSboWeb); // // iNewR2IB // this.iNewR2IB.Caption = "Login to 2nd IBET"; this.iNewR2IB.CategoryGuid = new System.Guid("ab511317-d784-42ba-b4ed-0d2a746d6c1f"); this.iNewR2IB.Description = "2nd IB"; this.iNewR2IB.Enabled = false; this.iNewR2IB.Hint = "2nd IB"; this.iNewR2IB.Id = 0; this.iNewR2IB.ImageIndex = 6; this.iNewR2IB.LargeImageIndex = 0; this.iNewR2IB.Name = "iNewR2IB"; this.iNewR2IB.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnLoginIbet2); // // iLoadStrategy // this.iLoadStrategy.Caption = "Load Strategy"; this.iLoadStrategy.Description = "Load Strategy"; this.iLoadStrategy.Enabled = false; this.iLoadStrategy.Hint = "Best Strategy"; this.iLoadStrategy.Id = 0; this.iLoadStrategy.ImageIndex = 6; this.iLoadStrategy.LargeImageIndex = 0; this.iLoadStrategy.Name = "iLoadStrategy"; this.iLoadStrategy.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnLoadStrategy); // // pmNew // this.pmNew.ItemLinks.Add(this.iNew); this.pmNew.ItemLinks.Add(this.iLoadStrategy); this.pmNew.ItemLinks.Add(this.iNewR2IB); this.pmNew.ItemLinks.Add(this.iNew2); this.pmNew.Name = "pmNew"; // // pmNewR // this.pmNewR.ItemLinks.Add(this.iNewR); this.pmNewR.Name = "pmNewR"; // // 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.barStaticItem1, this.barStaticItem2, this.barStaticItem3, this.btnSbobetGetInfo, this.lblSbobetCurrentCredit, this.lblSbobetTotalMatch, this.lblSbobetLastUpdate, this.barStaticItem7, this.barStaticItem8, this.barStaticItem9, this.lblIbetCurrentCredit, this.lblIbetTotalMatch, this.lblIbetLastUpdate, this.btnIbetGetInfo, this.iNew, this.iNew2, this.iNewR, this.iNewR2IB, this.iLoadStrategy, this.lblStatus, this.lblSameMatch, this.lblLastUpdate, this.btnStart, this.btnStop, this.btnClear, this.btnSnapShot}); this.ribbonControl1.Location = new System.Drawing.Point(0, 0); this.ribbonControl1.MaxItemId = 23; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage1}); this.ribbonControl1.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2010; this.ribbonControl1.SelectedPage = this.ribbonPage1; this.ribbonControl1.ShowCategoryInCaption = false; 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(1130, 125); this.ribbonControl1.Toolbar.ShowCustomizeItem = false; // // barStaticItem1 // this.barStaticItem1.Caption = "Current Credit:"; this.barStaticItem1.Id = 1; this.barStaticItem1.Name = "barStaticItem1"; this.barStaticItem1.TextAlignment = System.Drawing.StringAlignment.Near; // // barStaticItem2 // this.barStaticItem2.Caption = "Total Match:"; this.barStaticItem2.Id = 2; this.barStaticItem2.Name = "barStaticItem2"; this.barStaticItem2.TextAlignment = System.Drawing.StringAlignment.Near; // // barStaticItem3 // this.barStaticItem3.Caption = "Last Update:"; this.barStaticItem3.Id = 3; this.barStaticItem3.Name = "barStaticItem3"; this.barStaticItem3.TextAlignment = System.Drawing.StringAlignment.Near; // // btnSbobetGetInfo // this.btnSbobetGetInfo.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown; this.btnSbobetGetInfo.Caption = "Log In"; this.btnSbobetGetInfo.DropDownControl = this.pmNewR; this.btnSbobetGetInfo.Id = 4; this.btnSbobetGetInfo.LargeGlyph = global::iBet.App.Properties.Resources.i8; this.btnSbobetGetInfo.Name = "btnSbobetGetInfo"; this.btnSbobetGetInfo.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnSbobetGetInfo_ItemClick); // // lblSbobetCurrentCredit // this.lblSbobetCurrentCredit.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblSbobetCurrentCredit.Appearance.Options.UseFont = true; this.lblSbobetCurrentCredit.Caption = "-"; this.lblSbobetCurrentCredit.Id = 5; this.lblSbobetCurrentCredit.Name = "lblSbobetCurrentCredit"; this.lblSbobetCurrentCredit.TextAlignment = System.Drawing.StringAlignment.Far; this.lblSbobetCurrentCredit.Width = 135; // // lblSbobetTotalMatch // this.lblSbobetTotalMatch.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblSbobetTotalMatch.Appearance.Options.UseFont = true; this.lblSbobetTotalMatch.AutoSize = DevExpress.XtraBars.BarStaticItemSize.None; this.lblSbobetTotalMatch.Caption = "-"; this.lblSbobetTotalMatch.Id = 6; this.lblSbobetTotalMatch.Name = "lblSbobetTotalMatch"; this.lblSbobetTotalMatch.TextAlignment = System.Drawing.StringAlignment.Far; this.lblSbobetTotalMatch.Width = 135; // // lblSbobetLastUpdate // this.lblSbobetLastUpdate.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblSbobetLastUpdate.Appearance.Options.UseFont = true; this.lblSbobetLastUpdate.Caption = "-"; this.lblSbobetLastUpdate.Id = 8; this.lblSbobetLastUpdate.Name = "lblSbobetLastUpdate"; this.lblSbobetLastUpdate.TextAlignment = System.Drawing.StringAlignment.Far; this.lblSbobetLastUpdate.Width = 135; // // barStaticItem7 // this.barStaticItem7.Caption = "Current Credit:"; this.barStaticItem7.Id = 9; this.barStaticItem7.Name = "barStaticItem7"; this.barStaticItem7.TextAlignment = System.Drawing.StringAlignment.Near; // // barStaticItem8 // this.barStaticItem8.Caption = "Total Match:"; this.barStaticItem8.Id = 10; this.barStaticItem8.Name = "barStaticItem8"; this.barStaticItem8.TextAlignment = System.Drawing.StringAlignment.Near; // // barStaticItem9 // this.barStaticItem9.Caption = "Last Update:"; this.barStaticItem9.Id = 11; this.barStaticItem9.Name = "barStaticItem9"; this.barStaticItem9.TextAlignment = System.Drawing.StringAlignment.Near; // // lblIbetCurrentCredit // this.lblIbetCurrentCredit.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblIbetCurrentCredit.Appearance.Options.UseFont = true; this.lblIbetCurrentCredit.Caption = "-"; this.lblIbetCurrentCredit.Id = 12; this.lblIbetCurrentCredit.Name = "lblIbetCurrentCredit"; this.lblIbetCurrentCredit.TextAlignment = System.Drawing.StringAlignment.Far; this.lblIbetCurrentCredit.Width = 135; // // lblIbetTotalMatch // this.lblIbetTotalMatch.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblIbetTotalMatch.Appearance.Options.UseFont = true; this.lblIbetTotalMatch.Caption = "-"; this.lblIbetTotalMatch.Id = 13; this.lblIbetTotalMatch.Name = "lblIbetTotalMatch"; this.lblIbetTotalMatch.TextAlignment = System.Drawing.StringAlignment.Far; this.lblIbetTotalMatch.Width = 135; // // lblIbetLastUpdate // this.lblIbetLastUpdate.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblIbetLastUpdate.Appearance.Options.UseFont = true; this.lblIbetLastUpdate.Caption = "-"; this.lblIbetLastUpdate.Id = 14; this.lblIbetLastUpdate.Name = "lblIbetLastUpdate"; this.lblIbetLastUpdate.TextAlignment = System.Drawing.StringAlignment.Far; this.lblIbetLastUpdate.Width = 135; // // btnIbetGetInfo // this.btnIbetGetInfo.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.DropDown; this.btnIbetGetInfo.Caption = "Log In"; this.btnIbetGetInfo.DropDownControl = this.pmNew; this.btnIbetGetInfo.Id = 15; this.btnIbetGetInfo.LargeGlyph = global::iBet.App.Properties.Resources.i8; this.btnIbetGetInfo.Name = "btnIbetGetInfo"; this.btnIbetGetInfo.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem2_ItemClick); // // lblStatus // this.lblStatus.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblStatus.Appearance.Options.UseFont = true; this.lblStatus.Caption = "STOPPED"; this.lblStatus.Id = 16; this.lblStatus.Name = "lblStatus"; this.lblStatus.TextAlignment = System.Drawing.StringAlignment.Center; this.lblStatus.Width = 135; // // lblSameMatch // this.lblSameMatch.Caption = "Total Same Match: -"; this.lblSameMatch.Id = 17; this.lblSameMatch.Name = "lblSameMatch"; this.lblSameMatch.TextAlignment = System.Drawing.StringAlignment.Center; this.lblSameMatch.Width = 135; // // lblLastUpdate // this.lblLastUpdate.Caption = "-"; this.lblLastUpdate.Id = 18; this.lblLastUpdate.Name = "lblLastUpdate"; this.lblLastUpdate.TextAlignment = System.Drawing.StringAlignment.Center; this.lblLastUpdate.Width = 135; // // btnStart // this.btnStart.Caption = "Start"; this.btnStart.Enabled = false; this.btnStart.Id = 19; 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 = 20; 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.Id = 21; this.btnClear.LargeGlyph = global::iBet.App.Properties.Resources.i7; this.btnClear.Name = "btnClear"; this.btnClear.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnClear_ItemClick); // // btnSnapShot // this.btnSnapShot.Caption = "Snap Shot"; this.btnSnapShot.Enabled = false; this.btnSnapShot.Id = 21; this.btnSnapShot.LargeGlyph = global::iBet.App.Properties.Resources.i11; this.btnSnapShot.Name = "btnSnapShot"; this.btnSnapShot.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.btnSnapShot_ItemClick); // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.rpgIbet, this.rpgSbobet, this.ribbonPageGroup3, this.ribbonPageGroup4, this.ribbonPageGroup5}); this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "ribbonPage1"; // // rpgIbet // this.rpgIbet.ItemLinks.Add(this.barStaticItem7); this.rpgIbet.ItemLinks.Add(this.barStaticItem8); this.rpgIbet.ItemLinks.Add(this.barStaticItem9); this.rpgIbet.ItemLinks.Add(this.lblIbetCurrentCredit); this.rpgIbet.ItemLinks.Add(this.lblIbetTotalMatch); this.rpgIbet.ItemLinks.Add(this.lblIbetLastUpdate); this.rpgIbet.ItemLinks.Add(this.btnIbetGetInfo); this.rpgIbet.Name = "rpgIbet"; this.rpgIbet.ShowCaptionButton = false; this.rpgIbet.Text = "IBET"; // // rpgSbobet // this.rpgSbobet.ItemLinks.Add(this.barStaticItem1); this.rpgSbobet.ItemLinks.Add(this.barStaticItem2); this.rpgSbobet.ItemLinks.Add(this.barStaticItem3); this.rpgSbobet.ItemLinks.Add(this.lblSbobetCurrentCredit); this.rpgSbobet.ItemLinks.Add(this.lblSbobetTotalMatch); this.rpgSbobet.ItemLinks.Add(this.lblSbobetLastUpdate); this.rpgSbobet.ItemLinks.Add(this.btnSbobetGetInfo); this.rpgSbobet.Name = "rpgSbobet"; this.rpgSbobet.ShowCaptionButton = false; this.rpgSbobet.Text = "SBOBET"; // // ribbonPageGroup3 // this.ribbonPageGroup3.ItemLinks.Add(this.lblStatus); this.ribbonPageGroup3.ItemLinks.Add(this.lblSameMatch); this.ribbonPageGroup3.ItemLinks.Add(this.lblLastUpdate); this.ribbonPageGroup3.ItemLinks.Add(this.btnStart); this.ribbonPageGroup3.ItemLinks.Add(this.btnStop); this.ribbonPageGroup3.Name = "ribbonPageGroup3"; this.ribbonPageGroup3.ShowCaptionButton = false; this.ribbonPageGroup3.Text = "Status"; // // ribbonPageGroup4 // this.ribbonPageGroup4.ItemLinks.Add(this.btnClear); this.ribbonPageGroup4.Name = "ribbonPageGroup4"; this.ribbonPageGroup4.ShowCaptionButton = false; this.ribbonPageGroup4.Text = "Transaction"; // // ribbonPageGroup5 // this.ribbonPageGroup5.ItemLinks.Add(this.btnSnapShot); this.ribbonPageGroup5.Name = "ribbonPageGroup5"; this.ribbonPageGroup5.ShowCaptionButton = false; this.ribbonPageGroup5.Text = "Match Data"; // // 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(1130, 553); this.splitContainerControl1.SplitterPosition = 275; 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.xtraTabPageMatches; this.xtraTabControl1.Size = new System.Drawing.Size(1130, 273); this.xtraTabControl1.TabIndex = 0; this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.xtraTabPageMatches, this.xtraTabPageBetList1, this.xtraTabPageBetList2}); // // xtraTabPageMatches // this.xtraTabPageMatches.Controls.Add(this.grdSameMatch); this.xtraTabPageMatches.Name = "xtraTabPageMatches"; this.xtraTabPageMatches.Size = new System.Drawing.Size(1124, 247); this.xtraTabPageMatches.Text = "Live Match"; // // grdSameMatch // this.grdSameMatch.Dock = System.Windows.Forms.DockStyle.Fill; this.grdSameMatch.Location = new System.Drawing.Point(0, 0); this.grdSameMatch.MainView = this.gridView1; this.grdSameMatch.Name = "grdSameMatch"; this.grdSameMatch.Size = new System.Drawing.Size(1124, 247); this.grdSameMatch.TabIndex = 3; this.grdSameMatch.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1}); // // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn15, this.gridColumn16, this.gridColumn21, this.gridColumn22, this.gridColumn14, this.gridColumn17, this.gridColumn18, this.gridColumn19, this.gridColumn23}); this.gridView1.GridControl = this.grdSameMatch; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.Editable = false; this.gridView1.OptionsCustomization.AllowGroup = false; this.gridView1.OptionsDetail.AllowZoomDetail = false; this.gridView1.OptionsDetail.EnableMasterViewMode = false; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.OptionsDetail.SmartDetailExpand = false; this.gridView1.OptionsView.ShowAutoFilterRow = true; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.OptionsView.ShowPreview = true; this.gridView1.PreviewFieldName = "LeagueName"; this.gridView1.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] { new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.gridColumn23, DevExpress.Data.ColumnSortOrder.Ascending)}); this.gridView1.RowCellStyle += new DevExpress.XtraGrid.Views.Grid.RowCellStyleEventHandler(this.gridView1_RowCellStyle); // // gridColumn15 // this.gridColumn15.Caption = "Home Team"; this.gridColumn15.FieldName = "HomeTeamName"; this.gridColumn15.Name = "gridColumn15"; this.gridColumn15.Visible = true; this.gridColumn15.VisibleIndex = 0; this.gridColumn15.Width = 367; // // gridColumn16 // this.gridColumn16.Caption = "Away Team"; this.gridColumn16.FieldName = "AwayTeamName"; this.gridColumn16.Name = "gridColumn16"; this.gridColumn16.Visible = true; this.gridColumn16.VisibleIndex = 1; this.gridColumn16.Width = 368; // // gridColumn21 // this.gridColumn21.Caption = "HScore"; this.gridColumn21.FieldName = "HomeScore"; this.gridColumn21.Name = "gridColumn21"; this.gridColumn21.Visible = true; this.gridColumn21.VisibleIndex = 2; // // gridColumn22 // this.gridColumn22.Caption = "AScore"; this.gridColumn22.FieldName = "AwayScore"; this.gridColumn22.Name = "gridColumn22"; this.gridColumn22.Visible = true; this.gridColumn22.VisibleIndex = 3; // // gridColumn14 // this.gridColumn14.Caption = "Odd Count"; this.gridColumn14.FieldName = "OddCount"; this.gridColumn14.Name = "gridColumn14"; this.gridColumn14.OptionsColumn.FixedWidth = true; this.gridColumn14.Visible = true; this.gridColumn14.VisibleIndex = 4; this.gridColumn14.Width = 70; // // gridColumn17 // this.gridColumn17.Caption = "Half"; this.gridColumn17.FieldName = "Half"; this.gridColumn17.Name = "gridColumn17"; this.gridColumn17.OptionsColumn.FixedWidth = true; this.gridColumn17.Visible = true; this.gridColumn17.VisibleIndex = 5; this.gridColumn17.Width = 40; // // gridColumn18 // this.gridColumn18.Caption = "Min"; this.gridColumn18.FieldName = "Minute"; this.gridColumn18.Name = "gridColumn18"; this.gridColumn18.OptionsColumn.FixedWidth = true; this.gridColumn18.SortMode = DevExpress.XtraGrid.ColumnSortMode.Value; this.gridColumn18.Visible = true; this.gridColumn18.VisibleIndex = 6; this.gridColumn18.Width = 40; // // gridColumn19 // this.gridColumn19.Caption = "HT"; this.gridColumn19.FieldName = "IsHalfTime"; this.gridColumn19.Name = "gridColumn19"; this.gridColumn19.OptionsColumn.FixedWidth = true; this.gridColumn19.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn19.Visible = true; this.gridColumn19.VisibleIndex = 7; this.gridColumn19.Width = 40; // // xtraTabPageBetList1 // this.xtraTabPageBetList1.Controls.Add(this.girdBetList1); this.xtraTabPageBetList1.Name = "xtraTabPageBetList1"; this.xtraTabPageBetList1.Size = new System.Drawing.Size(1124, 247); this.xtraTabPageBetList1.Text = "Bet List 1"; // // girdBetList1 // this.girdBetList1.Dock = System.Windows.Forms.DockStyle.Fill; this.girdBetList1.Location = new System.Drawing.Point(0, 0); this.girdBetList1.MainView = this.gridView3; this.girdBetList1.Name = "girdBetList1"; this.girdBetList1.Size = new System.Drawing.Size(1124, 247); this.girdBetList1.TabIndex = 4; this.girdBetList1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView3}); // // gridView3 // this.gridView3.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn33, this.gridColumn24, this.gridColumn25, this.gridColumn28, this.gridColumn29, this.gridColumn30, this.gridColumn31, this.gridColumn32}); this.gridView3.GridControl = this.girdBetList1; this.gridView3.Name = "gridView3"; this.gridView3.OptionsBehavior.Editable = false; this.gridView3.OptionsCustomization.AllowGroup = false; this.gridView3.OptionsDetail.AllowZoomDetail = false; this.gridView3.OptionsDetail.EnableMasterViewMode = false; this.gridView3.OptionsDetail.ShowDetailTabs = false; this.gridView3.OptionsDetail.SmartDetailExpand = false; this.gridView3.OptionsView.ShowAutoFilterRow = true; this.gridView3.OptionsView.ShowGroupPanel = false; this.gridView3.OptionsView.ShowPreview = true; this.gridView3.PreviewFieldName = "LeagueName"; this.gridView3.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] { new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.gridColumn32, DevExpress.Data.ColumnSortOrder.Ascending)}); // // gridColumn33 // this.gridColumn33.Caption = "RefID"; this.gridColumn33.FieldName = "ID"; this.gridColumn33.Name = "gridColumn33"; this.gridColumn33.Visible = true; this.gridColumn33.VisibleIndex = 0; this.gridColumn33.Width = 69; // // gridColumn24 // this.gridColumn24.Caption = "Home Team"; this.gridColumn24.FieldName = "Home"; this.gridColumn24.Name = "gridColumn24"; this.gridColumn24.Visible = true; this.gridColumn24.VisibleIndex = 1; this.gridColumn24.Width = 300; // // gridColumn25 // this.gridColumn25.Caption = "Away Team"; this.gridColumn25.FieldName = "Away"; this.gridColumn25.Name = "gridColumn25"; this.gridColumn25.Visible = true; this.gridColumn25.VisibleIndex = 2; this.gridColumn25.Width = 300; // // gridColumn28 // this.gridColumn28.Caption = "Choose"; this.gridColumn28.FieldName = "Choice"; this.gridColumn28.Name = "gridColumn28"; this.gridColumn28.OptionsColumn.FixedWidth = true; this.gridColumn28.Visible = true; this.gridColumn28.VisibleIndex = 3; this.gridColumn28.Width = 70; // // gridColumn29 // this.gridColumn29.Caption = "Odd"; this.gridColumn29.FieldName = "Handicap"; this.gridColumn29.Name = "gridColumn29"; this.gridColumn29.OptionsColumn.FixedWidth = true; this.gridColumn29.Visible = true; this.gridColumn29.VisibleIndex = 4; this.gridColumn29.Width = 40; // // gridColumn30 // this.gridColumn30.Caption = "Odd Value"; this.gridColumn30.FieldName = "OddsValue"; this.gridColumn30.Name = "gridColumn30"; this.gridColumn30.OptionsColumn.FixedWidth = true; this.gridColumn30.SortMode = DevExpress.XtraGrid.ColumnSortMode.Value; this.gridColumn30.Visible = true; this.gridColumn30.VisibleIndex = 5; this.gridColumn30.Width = 60; // // gridColumn31 // this.gridColumn31.Caption = "Stake"; this.gridColumn31.FieldName = "Stake"; this.gridColumn31.Name = "gridColumn31"; this.gridColumn31.OptionsColumn.FixedWidth = true; this.gridColumn31.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn31.Visible = true; this.gridColumn31.VisibleIndex = 6; this.gridColumn31.Width = 40; // // gridColumn32 // this.gridColumn32.Caption = "Bet Time"; this.gridColumn32.FieldName = "BetTime"; this.gridColumn32.Name = "gridColumn32"; this.gridColumn32.Visible = true; this.gridColumn32.VisibleIndex = 7; this.gridColumn32.Width = 227; // // xtraTabPageBetList2 // this.xtraTabPageBetList2.Name = "xtraTabPageBetList2"; this.xtraTabPageBetList2.Size = new System.Drawing.Size(1124, 247); this.xtraTabPageBetList2.Text = "Bet List 2"; // // xtraTabControl2 // this.xtraTabControl2.Appearance.BackColor = System.Drawing.Color.Transparent; this.xtraTabControl2.Appearance.Options.UseBackColor = true; 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.xtraTabPage4; this.xtraTabControl2.Size = new System.Drawing.Size(1130, 275); this.xtraTabControl2.TabIndex = 1; this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.xtraTabPage4, this.xtraTabPage5}); // // xtraTabPage4 // this.xtraTabPage4.Controls.Add(this.groupControl2); this.xtraTabPage4.Controls.Add(this.groupControl1); this.xtraTabPage4.Controls.Add(this.groupControl5); this.xtraTabPage4.Controls.Add(this.groupControl4); this.xtraTabPage4.Controls.Add(this.groupControl6); this.xtraTabPage4.Name = "xtraTabPage4"; this.xtraTabPage4.Size = new System.Drawing.Size(1124, 249); this.xtraTabPage4.Text = "Settings"; // // groupControl2 // this.groupControl2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupControl2.Controls.Add(this.checkEdit2); this.groupControl2.Controls.Add(this.labelControl12); this.groupControl2.Controls.Add(this.labelControl11); this.groupControl2.Controls.Add(this.checkEdit18); this.groupControl2.Controls.Add(this.checkEdit17); this.groupControl2.Controls.Add(this.spinEdit4); this.groupControl2.Controls.Add(this.checkEdit1); this.groupControl2.Controls.Add(this.spinEdit3); this.groupControl2.Controls.Add(this.labelControl13); this.groupControl2.Controls.Add(this.spinEdit2); this.groupControl2.Controls.Add(this.spinEdit1); this.groupControl2.Controls.Add(this.txtTransactionTimeSpan); this.groupControl2.Controls.Add(this.labelControl10); this.groupControl2.Controls.Add(this.txtMaxTimePerHalf); this.groupControl2.Controls.Add(this.labelControl7); this.groupControl2.Controls.Add(this.chbAllowHalftime); this.groupControl2.Location = new System.Drawing.Point(209, 3); this.groupControl2.Name = "groupControl2"; this.groupControl2.Size = new System.Drawing.Size(200, 243); this.groupControl2.TabIndex = 14; this.groupControl2.Text = "Time Settings"; // // checkEdit2 // this.checkEdit2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit2.Location = new System.Drawing.Point(135, 191); this.checkEdit2.Name = "checkEdit2"; this.checkEdit2.Properties.Caption = "O/U"; this.checkEdit2.Size = new System.Drawing.Size(60, 19); this.checkEdit2.TabIndex = 24; this.checkEdit2.CheckedChanged += new System.EventHandler(this.checkEdit2_CheckedChanged); // // labelControl12 // this.labelControl12.Location = new System.Drawing.Point(7, 140); this.labelControl12.Name = "labelControl12"; this.labelControl12.Size = new System.Drawing.Size(56, 13); this.labelControl12.TabIndex = 23; this.labelControl12.Text = "Flush Half 2"; // // labelControl11 // this.labelControl11.Location = new System.Drawing.Point(7, 112); this.labelControl11.Name = "labelControl11"; this.labelControl11.Size = new System.Drawing.Size(56, 13); this.labelControl11.TabIndex = 22; this.labelControl11.Text = "Flush Half 1"; // // checkEdit18 // this.checkEdit18.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit18.EditValue = true; this.checkEdit18.Location = new System.Drawing.Point(69, 191); this.checkEdit18.Name = "checkEdit18"; this.checkEdit18.Properties.Caption = "Half 2"; this.checkEdit18.Size = new System.Drawing.Size(60, 19); this.checkEdit18.TabIndex = 21; // // checkEdit17 // this.checkEdit17.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit17.EditValue = true; this.checkEdit17.Location = new System.Drawing.Point(5, 191); this.checkEdit17.Name = "checkEdit17"; this.checkEdit17.Properties.Caption = "Half 1"; this.checkEdit17.Size = new System.Drawing.Size(58, 19); this.checkEdit17.TabIndex = 20; // // spinEdit4 // this.spinEdit4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.spinEdit4.EditValue = new decimal(new int[] { 2, 0, 0, 131072}); this.spinEdit4.Location = new System.Drawing.Point(85, 166); this.spinEdit4.Name = "spinEdit4"; this.spinEdit4.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.spinEdit4.Properties.Increment = new decimal(new int[] { 1, 0, 0, 131072}); this.spinEdit4.Size = new System.Drawing.Size(52, 20); this.spinEdit4.TabIndex = 17; // // checkEdit1 // this.checkEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit1.EditValue = true; this.checkEdit1.Location = new System.Drawing.Point(5, 166); this.checkEdit1.Name = "checkEdit1"; this.checkEdit1.Properties.Caption = "Take Profit"; this.checkEdit1.Size = new System.Drawing.Size(77, 19); this.checkEdit1.TabIndex = 16; // // spinEdit3 // this.spinEdit3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.spinEdit3.EditValue = new decimal(new int[] { 15, 0, 0, 131072}); this.spinEdit3.Location = new System.Drawing.Point(143, 166); this.spinEdit3.Name = "spinEdit3"; this.spinEdit3.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.spinEdit3.Properties.Increment = new decimal(new int[] { 1, 0, 0, -2147352576}); this.spinEdit3.Properties.MinValue = new decimal(new int[] { 2, 0, 0, -2147352576}); this.spinEdit3.Size = new System.Drawing.Size(52, 20); this.spinEdit3.TabIndex = 15; // // labelControl13 // this.labelControl13.Location = new System.Drawing.Point(5, 169); this.labelControl13.Name = "labelControl13"; this.labelControl13.Size = new System.Drawing.Size(0, 13); this.labelControl13.TabIndex = 14; // // spinEdit2 // this.spinEdit2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.spinEdit2.EditValue = new decimal(new int[] { 32, 0, 0, 0}); this.spinEdit2.Location = new System.Drawing.Point(123, 137); this.spinEdit2.Name = "spinEdit2"; this.spinEdit2.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.spinEdit2.Properties.IsFloatValue = false; this.spinEdit2.Properties.Mask.EditMask = "N00"; this.spinEdit2.Size = new System.Drawing.Size(72, 20); this.spinEdit2.TabIndex = 13; // // spinEdit1 // this.spinEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.spinEdit1.EditValue = new decimal(new int[] { 32, 0, 0, 0}); this.spinEdit1.Location = new System.Drawing.Point(123, 109); this.spinEdit1.Name = "spinEdit1"; this.spinEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.spinEdit1.Properties.IsFloatValue = false; this.spinEdit1.Properties.Mask.EditMask = "N00"; this.spinEdit1.Size = new System.Drawing.Size(72, 20); this.spinEdit1.TabIndex = 11; // // txtTransactionTimeSpan // this.txtTransactionTimeSpan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtTransactionTimeSpan.EditValue = new decimal(new int[] { 10, 0, 0, 0}); this.txtTransactionTimeSpan.Location = new System.Drawing.Point(123, 80); this.txtTransactionTimeSpan.Name = "txtTransactionTimeSpan"; this.txtTransactionTimeSpan.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtTransactionTimeSpan.Properties.IsFloatValue = false; this.txtTransactionTimeSpan.Properties.Mask.EditMask = "N00"; this.txtTransactionTimeSpan.Size = new System.Drawing.Size(72, 20); this.txtTransactionTimeSpan.TabIndex = 9; // // labelControl10 // this.labelControl10.Location = new System.Drawing.Point(5, 81); this.labelControl10.Name = "labelControl10"; this.labelControl10.Size = new System.Drawing.Size(112, 13); this.labelControl10.TabIndex = 8; this.labelControl10.Text = "Transaction Time Span:"; // // txtMaxTimePerHalf // this.txtMaxTimePerHalf.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtMaxTimePerHalf.EditValue = new decimal(new int[] { 40, 0, 0, 0}); this.txtMaxTimePerHalf.Location = new System.Drawing.Point(123, 50); this.txtMaxTimePerHalf.Name = "txtMaxTimePerHalf"; this.txtMaxTimePerHalf.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtMaxTimePerHalf.Properties.IsFloatValue = false; this.txtMaxTimePerHalf.Properties.Mask.EditMask = "N00"; this.txtMaxTimePerHalf.Size = new System.Drawing.Size(72, 20); this.txtMaxTimePerHalf.TabIndex = 7; // // labelControl7 // this.labelControl7.Location = new System.Drawing.Point(5, 53); this.labelControl7.Name = "labelControl7"; this.labelControl7.Size = new System.Drawing.Size(90, 13); this.labelControl7.TabIndex = 6; this.labelControl7.Text = "Max Time Per Half:"; // // chbAllowHalftime // this.chbAllowHalftime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chbAllowHalftime.EditValue = true; this.chbAllowHalftime.Location = new System.Drawing.Point(5, 26); this.chbAllowHalftime.Name = "chbAllowHalftime"; this.chbAllowHalftime.Properties.Caption = "Allow Halftime"; this.chbAllowHalftime.Size = new System.Drawing.Size(102, 19); this.chbAllowHalftime.TabIndex = 5; // // groupControl1 // this.groupControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupControl1.Controls.Add(this.checkEdit15); this.groupControl1.Controls.Add(this.checkEdit14); this.groupControl1.Controls.Add(this.checkEdit13); this.groupControl1.Controls.Add(this.btnSetUpdateInterval); this.groupControl1.Controls.Add(this.txtSBOBETUpdateInterval); this.groupControl1.Controls.Add(this.labelControl3); this.groupControl1.Controls.Add(this.txtIBETUpdateInterval); this.groupControl1.Controls.Add(this.labelControl4); this.groupControl1.Location = new System.Drawing.Point(415, 3); this.groupControl1.Name = "groupControl1"; this.groupControl1.Size = new System.Drawing.Size(200, 243); this.groupControl1.TabIndex = 13; this.groupControl1.Text = "Data Settings"; // // checkEdit15 // this.checkEdit15.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit15.Location = new System.Drawing.Point(5, 151); this.checkEdit15.Name = "checkEdit15"; this.checkEdit15.Properties.Caption = "Scanner mode: Pure odd sms"; this.checkEdit15.Size = new System.Drawing.Size(190, 19); this.checkEdit15.TabIndex = 30; // // checkEdit14 // this.checkEdit14.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit14.EditValue = true; this.checkEdit14.Location = new System.Drawing.Point(5, 128); this.checkEdit14.Name = "checkEdit14"; this.checkEdit14.Properties.Caption = "Receive odd from community"; this.checkEdit14.Size = new System.Drawing.Size(190, 19); this.checkEdit14.TabIndex = 29; // // checkEdit13 // this.checkEdit13.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit13.EditValue = true; this.checkEdit13.Location = new System.Drawing.Point(5, 104); this.checkEdit13.Name = "checkEdit13"; this.checkEdit13.Properties.Caption = "Submit odd to community"; this.checkEdit13.Size = new System.Drawing.Size(190, 19); this.checkEdit13.TabIndex = 28; // // btnSetUpdateInterval // this.btnSetUpdateInterval.Location = new System.Drawing.Point(59, 77); this.btnSetUpdateInterval.Name = "btnSetUpdateInterval"; this.btnSetUpdateInterval.Size = new System.Drawing.Size(136, 23); this.btnSetUpdateInterval.TabIndex = 6; this.btnSetUpdateInterval.Text = "Set Update Interval"; this.btnSetUpdateInterval.Click += new System.EventHandler(this.btnSetUpdateInterval_Click); // // txtSBOBETUpdateInterval // this.txtSBOBETUpdateInterval.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtSBOBETUpdateInterval.EditValue = new decimal(new int[] { 12, 0, 0, 0}); this.txtSBOBETUpdateInterval.Location = new System.Drawing.Point(132, 51); this.txtSBOBETUpdateInterval.Name = "txtSBOBETUpdateInterval"; this.txtSBOBETUpdateInterval.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtSBOBETUpdateInterval.Properties.IsFloatValue = false; this.txtSBOBETUpdateInterval.Properties.Mask.EditMask = "N00"; this.txtSBOBETUpdateInterval.Size = new System.Drawing.Size(63, 20); this.txtSBOBETUpdateInterval.TabIndex = 5; this.txtSBOBETUpdateInterval.EditValueChanged += new System.EventHandler(this.txtSBOBETUpdateInterval_EditValueChanged); // // labelControl3 // this.labelControl3.Location = new System.Drawing.Point(5, 54); this.labelControl3.Name = "labelControl3"; this.labelControl3.Size = new System.Drawing.Size(121, 13); this.labelControl3.TabIndex = 4; this.labelControl3.Text = "SBOBET Update Interval:"; // // txtIBETUpdateInterval // this.txtIBETUpdateInterval.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtIBETUpdateInterval.EditValue = new decimal(new int[] { 12, 0, 0, 0}); this.txtIBETUpdateInterval.Location = new System.Drawing.Point(132, 25); this.txtIBETUpdateInterval.Name = "txtIBETUpdateInterval"; this.txtIBETUpdateInterval.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtIBETUpdateInterval.Properties.IsFloatValue = false; this.txtIBETUpdateInterval.Properties.Mask.EditMask = "N00"; this.txtIBETUpdateInterval.Size = new System.Drawing.Size(63, 20); this.txtIBETUpdateInterval.TabIndex = 1; this.txtIBETUpdateInterval.EditValueChanged += new System.EventHandler(this.txtIBETUpdateInterval_EditValueChanged); // // labelControl4 // this.labelControl4.Location = new System.Drawing.Point(5, 28); this.labelControl4.Name = "labelControl4"; this.labelControl4.Size = new System.Drawing.Size(105, 13); this.labelControl4.TabIndex = 0; this.labelControl4.Text = "IBET Update Interval:"; // // groupControl5 // this.groupControl5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupControl5.Controls.Add(this.chbHighRevenueBoost); this.groupControl5.Controls.Add(this.txtAddValue); this.groupControl5.Controls.Add(this.txtLowestOddValue); this.groupControl5.Controls.Add(this.labelControl9); this.groupControl5.Controls.Add(this.txtOddValueDifferenet); this.groupControl5.Controls.Add(this.checkEdit6); this.groupControl5.Controls.Add(this.checkEdit5); this.groupControl5.Controls.Add(this.labelControl18); this.groupControl5.Controls.Add(this.labelControl8); this.groupControl5.Controls.Add(this.checkEdit7); this.groupControl5.Controls.Add(this.checkEdit12); this.groupControl5.Controls.Add(this.checkEdit11); this.groupControl5.Controls.Add(this.checkEdit10); this.groupControl5.Controls.Add(this.checkEdit9); this.groupControl5.Controls.Add(this.checkEdit8); this.groupControl5.Controls.Add(this.checkEdit4); this.groupControl5.Controls.Add(this.checkEdit3); this.groupControl5.Location = new System.Drawing.Point(3, 3); this.groupControl5.Name = "groupControl5"; this.groupControl5.Size = new System.Drawing.Size(200, 243); this.groupControl5.TabIndex = 13; this.groupControl5.Text = "Trading Settings"; // // chbHighRevenueBoost // this.chbHighRevenueBoost.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chbHighRevenueBoost.Location = new System.Drawing.Point(5, 172); this.chbHighRevenueBoost.Name = "chbHighRevenueBoost"; this.chbHighRevenueBoost.Properties.Caption = "Top Class"; this.chbHighRevenueBoost.Size = new System.Drawing.Size(90, 19); this.chbHighRevenueBoost.TabIndex = 13; // // txtAddValue // this.txtAddValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtAddValue.EditValue = new decimal(new int[] { 4, 0, 0, 0}); this.txtAddValue.Location = new System.Drawing.Point(110, 148); this.txtAddValue.Name = "txtAddValue"; this.txtAddValue.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtAddValue.Size = new System.Drawing.Size(85, 20); this.txtAddValue.TabIndex = 22; // // txtLowestOddValue // this.txtLowestOddValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtLowestOddValue.EditValue = new decimal(new int[] { 5, 0, 0, 65536}); this.txtLowestOddValue.Location = new System.Drawing.Point(110, 121); this.txtLowestOddValue.Name = "txtLowestOddValue"; this.txtLowestOddValue.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtLowestOddValue.Properties.Increment = new decimal(new int[] { 1, 0, 0, 65536}); this.txtLowestOddValue.Properties.MaxValue = new decimal(new int[] { 1, 0, 0, 131072}); this.txtLowestOddValue.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 131072}); this.txtLowestOddValue.Size = new System.Drawing.Size(85, 20); this.txtLowestOddValue.TabIndex = 12; // // labelControl9 // this.labelControl9.Location = new System.Drawing.Point(5, 123); this.labelControl9.Name = "labelControl9"; this.labelControl9.Size = new System.Drawing.Size(90, 13); this.labelControl9.TabIndex = 11; this.labelControl9.Text = "Lowest Odd Value:"; // // txtOddValueDifferenet // this.txtOddValueDifferenet.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtOddValueDifferenet.EditValue = new decimal(new int[] { 1, 0, 0, -2147352576}); this.txtOddValueDifferenet.Location = new System.Drawing.Point(110, 94); this.txtOddValueDifferenet.Name = "txtOddValueDifferenet"; this.txtOddValueDifferenet.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtOddValueDifferenet.Properties.Increment = new decimal(new int[] { 1, 0, 0, -2147352576}); this.txtOddValueDifferenet.Properties.MinValue = new decimal(new int[] { 2, 0, 0, -2147352576}); this.txtOddValueDifferenet.Size = new System.Drawing.Size(85, 20); this.txtOddValueDifferenet.TabIndex = 10; // // checkEdit6 // this.checkEdit6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit6.EditValue = true; this.checkEdit6.Location = new System.Drawing.Point(108, 51); this.checkEdit6.Name = "checkEdit6"; this.checkEdit6.Properties.Caption = "Non-Live"; this.checkEdit6.Size = new System.Drawing.Size(77, 19); this.checkEdit6.TabIndex = 8; // // checkEdit5 // this.checkEdit5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit5.EditValue = true; this.checkEdit5.Location = new System.Drawing.Point(5, 72); this.checkEdit5.Name = "checkEdit5"; this.checkEdit5.Properties.Caption = "Live"; this.checkEdit5.Size = new System.Drawing.Size(52, 19); this.checkEdit5.TabIndex = 7; // // labelControl18 // this.labelControl18.Location = new System.Drawing.Point(5, 150); this.labelControl18.Name = "labelControl18"; this.labelControl18.Size = new System.Drawing.Size(95, 13); this.labelControl18.TabIndex = 29; this.labelControl18.Text = "Min of |Won-Lose|: "; // // labelControl8 // this.labelControl8.Location = new System.Drawing.Point(5, 97); this.labelControl8.Name = "labelControl8"; this.labelControl8.Size = new System.Drawing.Size(99, 13); this.labelControl8.TabIndex = 9; this.labelControl8.Text = "Odd Value Different:"; // // checkEdit7 // this.checkEdit7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit7.Location = new System.Drawing.Point(108, 221); this.checkEdit7.Name = "checkEdit7"; this.checkEdit7.Properties.Caption = "Over 92/90"; this.checkEdit7.Size = new System.Drawing.Size(83, 19); this.checkEdit7.TabIndex = 9; // // checkEdit12 // this.checkEdit12.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit12.Location = new System.Drawing.Point(108, 196); this.checkEdit12.Name = "checkEdit12"; this.checkEdit12.Properties.Caption = "Under Equal"; this.checkEdit12.Size = new System.Drawing.Size(83, 19); this.checkEdit12.TabIndex = 23; // // checkEdit11 // this.checkEdit11.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit11.Location = new System.Drawing.Point(5, 221); this.checkEdit11.Name = "checkEdit11"; this.checkEdit11.Properties.Caption = "Over 1.75"; this.checkEdit11.Size = new System.Drawing.Size(95, 19); this.checkEdit11.TabIndex = 19; // // checkEdit10 // this.checkEdit10.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit10.Location = new System.Drawing.Point(5, 47); this.checkEdit10.Name = "checkEdit10"; this.checkEdit10.Properties.Caption = "Matches List"; this.checkEdit10.Size = new System.Drawing.Size(90, 19); this.checkEdit10.TabIndex = 19; // // checkEdit9 // this.checkEdit9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit9.Location = new System.Drawing.Point(108, 172); this.checkEdit9.Name = "checkEdit9"; this.checkEdit9.Properties.Caption = "Odd Down"; this.checkEdit9.Size = new System.Drawing.Size(76, 19); this.checkEdit9.TabIndex = 19; // // checkEdit8 // this.checkEdit8.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit8.Location = new System.Drawing.Point(5, 196); this.checkEdit8.Name = "checkEdit8"; this.checkEdit8.Properties.Caption = "Over Equal"; this.checkEdit8.Size = new System.Drawing.Size(95, 19); this.checkEdit8.TabIndex = 14; // // checkEdit4 // this.checkEdit4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit4.EditValue = true; this.checkEdit4.Location = new System.Drawing.Point(108, 25); this.checkEdit4.Name = "checkEdit4"; this.checkEdit4.Properties.Caption = "Over/Under"; this.checkEdit4.Size = new System.Drawing.Size(87, 19); this.checkEdit4.TabIndex = 6; // // checkEdit3 // this.checkEdit3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkEdit3.EditValue = true; this.checkEdit3.Location = new System.Drawing.Point(5, 26); this.checkEdit3.Name = "checkEdit3"; this.checkEdit3.Properties.Caption = "Handicap"; this.checkEdit3.Size = new System.Drawing.Size(90, 19); this.checkEdit3.TabIndex = 5; // // groupControl4 // this.groupControl4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupControl4.Controls.Add(this.txtSBOBETFixedStake); this.groupControl4.Controls.Add(this.labelControl2); this.groupControl4.Controls.Add(this.txtStake); this.groupControl4.Controls.Add(this.chbRandomStake); this.groupControl4.Controls.Add(this.txtIBETFixedStake); this.groupControl4.Controls.Add(this.labelControl6); this.groupControl4.Location = new System.Drawing.Point(621, 3); this.groupControl4.Name = "groupControl4"; this.groupControl4.Size = new System.Drawing.Size(200, 243); this.groupControl4.TabIndex = 12; this.groupControl4.Text = "Stake Settings"; // // txtSBOBETFixedStake // this.txtSBOBETFixedStake.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtSBOBETFixedStake.EditValue = new decimal(new int[] { 25, 0, 0, 0}); this.txtSBOBETFixedStake.Location = new System.Drawing.Point(112, 51); this.txtSBOBETFixedStake.Name = "txtSBOBETFixedStake"; this.txtSBOBETFixedStake.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtSBOBETFixedStake.Properties.IsFloatValue = false; this.txtSBOBETFixedStake.Properties.Mask.EditMask = "N00"; this.txtSBOBETFixedStake.Size = new System.Drawing.Size(83, 20); this.txtSBOBETFixedStake.TabIndex = 5; // // labelControl2 // this.labelControl2.Location = new System.Drawing.Point(5, 54); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(101, 13); this.labelControl2.TabIndex = 4; this.labelControl2.Text = "SBOBET Fixed Stake:"; // // txtStake // this.txtStake.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.txtStake.EditValue = "10\r\n20\r\n15\r\n5"; this.txtStake.Location = new System.Drawing.Point(5, 103); this.txtStake.Name = "txtStake"; this.txtStake.Size = new System.Drawing.Size(190, 135); this.txtStake.TabIndex = 3; // // chbRandomStake // this.chbRandomStake.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chbRandomStake.EditValue = true; this.chbRandomStake.Location = new System.Drawing.Point(3, 78); this.chbRandomStake.Name = "chbRandomStake"; this.chbRandomStake.Properties.Caption = "Random Stake"; this.chbRandomStake.Size = new System.Drawing.Size(192, 19); this.chbRandomStake.TabIndex = 2; this.chbRandomStake.CheckedChanged += new System.EventHandler(this.chbRandomStake_CheckedChanged); // // txtIBETFixedStake // this.txtIBETFixedStake.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtIBETFixedStake.EditValue = new decimal(new int[] { 25, 0, 0, 0}); this.txtIBETFixedStake.Location = new System.Drawing.Point(112, 25); this.txtIBETFixedStake.Name = "txtIBETFixedStake"; this.txtIBETFixedStake.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.txtIBETFixedStake.Properties.IsFloatValue = false; this.txtIBETFixedStake.Properties.Mask.EditMask = "N00"; this.txtIBETFixedStake.Size = new System.Drawing.Size(83, 20); this.txtIBETFixedStake.TabIndex = 1; // // labelControl6 // this.labelControl6.Location = new System.Drawing.Point(5, 28); this.labelControl6.Name = "labelControl6"; this.labelControl6.Size = new System.Drawing.Size(85, 13); this.labelControl6.TabIndex = 0; this.labelControl6.Text = "IBET Fixed Stake:"; // // groupControl6 // this.groupControl6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupControl6.Controls.Add(this.chkListAllowedMatch); this.groupControl6.Location = new System.Drawing.Point(827, 3); this.groupControl6.Name = "groupControl6"; this.groupControl6.Size = new System.Drawing.Size(293, 243); this.groupControl6.TabIndex = 19; this.groupControl6.Text = "Allowed Betting Matches"; // // chkListAllowedMatch // this.chkListAllowedMatch.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.chkListAllowedMatch.CheckOnClick = true; this.chkListAllowedMatch.HighlightedItemStyle = DevExpress.XtraEditors.HighlightStyle.Skinned; this.chkListAllowedMatch.ItemHeight = 16; this.chkListAllowedMatch.Location = new System.Drawing.Point(5, 25); this.chkListAllowedMatch.Name = "chkListAllowedMatch"; this.chkListAllowedMatch.Size = new System.Drawing.Size(283, 213); this.chkListAllowedMatch.TabIndex = 20; // // xtraTabPage5 // this.xtraTabPage5.Controls.Add(this.grdTransaction); this.xtraTabPage5.Name = "xtraTabPage5"; this.xtraTabPage5.Size = new System.Drawing.Size(1124, 249); this.xtraTabPage5.Text = "Live Transaction"; // // grdTransaction // this.grdTransaction.Dock = System.Windows.Forms.DockStyle.Fill; 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(1124, 249); this.grdTransaction.TabIndex = 3; 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.gridColumn2, this.gridColumn3, this.gridColumn6, this.gridColumn4, this.gridColumn5, this.gridColumn7, this.gridColumn8, this.gridColumn9, this.gridColumn10, this.gridColumn11, this.gridColumn12, this.gridColumn20, this.gridColumn13}); this.gridView2.GridControl = this.grdTransaction; this.gridView2.Name = "gridView2"; this.gridView2.OptionsBehavior.Editable = false; this.gridView2.OptionsCustomization.AllowGroup = false; this.gridView2.OptionsView.AutoCalcPreviewLineCount = true; this.gridView2.OptionsView.ShowAutoFilterRow = true; this.gridView2.OptionsView.ShowFooter = true; this.gridView2.OptionsView.ShowGroupPanel = false; this.gridView2.OptionsView.ShowPreview = true; this.gridView2.PreviewFieldName = "Note"; 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.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.gridColumn1.FieldName = "ID"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.OptionsColumn.FixedWidth = true; this.gridColumn1.UnboundType = DevExpress.Data.UnboundColumnType.Integer; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 0; this.gridColumn1.Width = 50; // // gridColumn2 // this.gridColumn2.Caption = "Home Team"; this.gridColumn2.FieldName = "HomeTeamName"; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn2.Visible = true; this.gridColumn2.VisibleIndex = 1; this.gridColumn2.Width = 20; // // gridColumn3 // this.gridColumn3.Caption = "Away Team"; this.gridColumn3.FieldName = "AwayTeamName"; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 2; this.gridColumn3.Width = 20; // // gridColumn6 // this.gridColumn6.Caption = "Type"; this.gridColumn6.FieldName = "OddType"; this.gridColumn6.Name = "gridColumn6"; this.gridColumn6.OptionsColumn.FixedWidth = true; this.gridColumn6.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn6.Visible = true; this.gridColumn6.VisibleIndex = 3; this.gridColumn6.Width = 180; // // gridColumn4 // this.gridColumn4.Caption = "Odd"; this.gridColumn4.FieldName = "OddKindValue"; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.OptionsColumn.FixedWidth = true; this.gridColumn4.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 4; // // gridColumn5 // this.gridColumn5.Caption = "Value"; this.gridColumn5.FieldName = "OddValue"; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.OptionsColumn.FixedWidth = true; this.gridColumn5.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 5; this.gridColumn5.Width = 80; // // gridColumn7 // this.gridColumn7.Caption = "Stake"; this.gridColumn7.FieldName = "Stake"; this.gridColumn7.Name = "gridColumn7"; this.gridColumn7.OptionsColumn.FixedWidth = true; this.gridColumn7.UnboundType = DevExpress.Data.UnboundColumnType.String; this.gridColumn7.Visible = true; this.gridColumn7.VisibleIndex = 6; this.gridColumn7.Width = 100; // // gridColumn8 // this.gridColumn8.Caption = "I Allow"; this.gridColumn8.FieldName = "IBETAllow"; this.gridColumn8.Name = "gridColumn8"; this.gridColumn8.OptionsColumn.FixedWidth = true; this.gridColumn8.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn8.Visible = true; this.gridColumn8.VisibleIndex = 7; this.gridColumn8.Width = 50; // // gridColumn9 // this.gridColumn9.Caption = "B Allow"; this.gridColumn9.FieldName = "SBOBETAllow"; this.gridColumn9.Name = "gridColumn9"; this.gridColumn9.OptionsColumn.FixedWidth = true; this.gridColumn9.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn9.Visible = true; this.gridColumn9.VisibleIndex = 8; this.gridColumn9.Width = 50; // // gridColumn10 // this.gridColumn10.Caption = "I Trade"; this.gridColumn10.FieldName = "IBETTrade"; this.gridColumn10.Name = "gridColumn10"; this.gridColumn10.OptionsColumn.FixedWidth = true; this.gridColumn10.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn10.Visible = true; this.gridColumn10.VisibleIndex = 9; this.gridColumn10.Width = 50; // // gridColumn11 // this.gridColumn11.Caption = "B Trade"; this.gridColumn11.FieldName = "SBOBETTrade"; this.gridColumn11.Name = "gridColumn11"; this.gridColumn11.OptionsColumn.FixedWidth = true; this.gridColumn11.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn11.Visible = true; this.gridColumn11.VisibleIndex = 10; this.gridColumn11.Width = 50; // // gridColumn12 // this.gridColumn12.Caption = "B Retrade"; this.gridColumn12.FieldName = "SBOBETReTrade"; this.gridColumn12.Name = "gridColumn12"; this.gridColumn12.OptionsColumn.FixedWidth = true; this.gridColumn12.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn12.Visible = true; this.gridColumn12.VisibleIndex = 11; this.gridColumn12.Width = 50; // // gridColumn20 // this.gridColumn20.Caption = "I Retrade"; this.gridColumn20.FieldName = "IBETReTrade"; this.gridColumn20.Name = "gridColumn20"; this.gridColumn20.OptionsColumn.FixedWidth = true; this.gridColumn20.UnboundType = DevExpress.Data.UnboundColumnType.Boolean; this.gridColumn20.Visible = true; this.gridColumn20.VisibleIndex = 12; this.gridColumn20.Width = 50; // // 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.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 = 13; this.gridColumn13.Width = 130; // // panelControl5 // this.panelControl5.Location = new System.Drawing.Point(0, 0); this.panelControl5.Name = "panelControl5"; this.panelControl5.Size = new System.Drawing.Size(200, 100); this.panelControl5.TabIndex = 0; // // 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 = 0; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(2, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(50, 13); this.label1.TabIndex = 9; this.label1.Text = "Address:"; // // xtraTabPage2 // this.xtraTabPage2.Name = "xtraTabPage2"; this.xtraTabPage2.Size = new System.Drawing.Size(0, 0); // // 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 = 0; // // panelControl2 // this.panelControl2.Location = new System.Drawing.Point(0, 0); this.panelControl2.Name = "panelControl2"; this.panelControl2.Size = new System.Drawing.Size(200, 100); this.panelControl2.TabIndex = 0; // // labelControl1 // this.labelControl1.Location = new System.Drawing.Point(0, 0); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(75, 14); this.labelControl1.TabIndex = 0; // // labelControl5 // this.labelControl5.Location = new System.Drawing.Point(5, 9); this.labelControl5.Name = "labelControl5"; this.labelControl5.Size = new System.Drawing.Size(43, 13); this.labelControl5.TabIndex = 6; this.labelControl5.Text = "Address:"; // // panelControl9 // this.panelControl9.Location = new System.Drawing.Point(0, 0); this.panelControl9.Name = "panelControl9"; this.panelControl9.Size = new System.Drawing.Size(200, 100); this.panelControl9.TabIndex = 0; // // panelControl10 // this.panelControl10.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelControl10.Controls.Add(this.btnIBETGO2); this.panelControl10.Controls.Add(this.txtIBETAddress2); this.panelControl10.Controls.Add(this.labelControl5); this.panelControl10.Location = new System.Drawing.Point(3, 3); this.panelControl10.Name = "panelControl10"; this.panelControl10.Size = new System.Drawing.Size(987, 29); this.panelControl10.TabIndex = 2; // // btnIBETGO2 // this.btnIBETGO2.Location = new System.Drawing.Point(0, 0); this.btnIBETGO2.Name = "btnIBETGO2"; this.btnIBETGO2.Size = new System.Drawing.Size(75, 23); this.btnIBETGO2.TabIndex = 0; // // txtIBETAddress2 // this.txtIBETAddress2.Location = new System.Drawing.Point(0, 0); this.txtIBETAddress2.Name = "txtIBETAddress2"; this.txtIBETAddress2.Size = new System.Drawing.Size(100, 20); this.txtIBETAddress2.TabIndex = 1; // // xtraTabPage9 // this.xtraTabPage9.Controls.Add(this.panelControl9); this.xtraTabPage9.Controls.Add(this.panelControl10); this.xtraTabPage9.Name = "xtraTabPage9"; this.xtraTabPage9.Size = new System.Drawing.Size(993, 276); this.xtraTabPage9.Text = "ibet Test"; // // TerminalFormIBETSBO // this.ClientSize = new System.Drawing.Size(1130, 678); this.Controls.Add(this.splitContainerControl1); this.Controls.Add(this.ribbonControl1); this.Icon = global::iBet.App.Properties.Resources._2; this.Name = "TerminalFormIBETSBO"; this.Ribbon = this.ribbonControl1; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "IBET vs SBOBET"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.TerminalFormIBETSBO_FormClosing); ((System.ComponentModel.ISupportInitialize)(this.pmNew)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pmNewR)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit(); this.splitContainerControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.xtraTabPageMatches.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.grdSameMatch)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); this.xtraTabPageBetList1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.girdBetList1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit(); this.xtraTabControl2.ResumeLayout(false); this.xtraTabPage4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).EndInit(); this.groupControl2.ResumeLayout(false); this.groupControl2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit2.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit18.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit17.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit4.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit3.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit2.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtTransactionTimeSpan.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtMaxTimePerHalf.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chbAllowHalftime.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit(); this.groupControl1.ResumeLayout(false); this.groupControl1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit15.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit14.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit13.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSBOBETUpdateInterval.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtIBETUpdateInterval.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl5)).EndInit(); this.groupControl5.ResumeLayout(false); this.groupControl5.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.chbHighRevenueBoost.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtAddValue.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtLowestOddValue.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOddValueDifferenet.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit6.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit5.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit7.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit12.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit11.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit10.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit9.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit8.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit4.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit3.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl4)).EndInit(); this.groupControl4.ResumeLayout(false); this.groupControl4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.txtSBOBETFixedStake.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtStake.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chbRandomStake.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtIBETFixedStake.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl6)).EndInit(); this.groupControl6.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.chkListAllowedMatch)).EndInit(); this.xtraTabPage5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.grdTransaction)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl10)).EndInit(); this.panelControl10.ResumeLayout(false); this.panelControl10.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.txtIBETAddress2.Properties)).EndInit(); this.xtraTabPage9.ResumeLayout(false); this.ResumeLayout(false); }
private void DrawToolBar() { ctlToolBar.ClearLinks(); if (_Buttons == null) return; PopupButton wPopupButton = null; PopupMenu wPopupMenu = null; BarLargeButtonItem wBarButtonItem = null; foreach (ButtonBase wButton in _Buttons) { // Se arma un PopupButton if (wButton.GetType() == typeof(PopupButton)) { wBarButtonItem = CreateButtonBase(wButton); wPopupButton = (PopupButton)wButton; wPopupMenu = new PopupMenu(this.components); wPopupMenu.Manager = barManager1; wBarButtonItem.DropDownControl = wPopupMenu; wBarButtonItem.DropDownEnabled = true; wBarButtonItem.ButtonStyle = BarButtonStyle.DropDown; wBarButtonItem.ActAsDropDown = true; foreach (ButtonBase item in wPopupButton.Buttons) { wPopupMenu.ItemLinks.Add(CreateButtonBase(item)); } ctlToolBar.AddItem(wBarButtonItem); } else { wBarButtonItem = CreateButtonBase(wButton); //AAguirre - Se agrego esta linea y se comento la linea de arriba, el boton se agregaba en el bar manager y no en la toolbar ctlToolBar.AddItem(wBarButtonItem); } } }
public static BarButtonItem InitPrintGrid(frmTPhieuThongKeChange frm, bool isLandscape) { frm.barItemIn.Visibility = BarItemVisibility.Never; // link.ShowPreviewDialog(); var itemXemtruoc = new BarButtonItem { Caption = "&Xem trước", PaintStyle = BarItemPaintStyle.CaptionGlyph, Glyph = FrameworkParams.imageStore.GetImage1616("fwPrintPreview.png") }; itemXemtruoc.ItemClick += delegate { if (FrameworkParams.headerLetter != null) { PrintableComponentLink link = FrameworkParams.headerLetter.Draw(frm.pivotGridMaster, frm.Text.ToUpper(), "Ngày báo cáo: " + DateTime.Today.ToString( FrameworkParams.option. dateFormat)); link.PrintingSystem.PageSettings.Landscape = isLandscape; link.ShowPreview(); } else { frm.pivotGridMaster.ShowPrintPreview(); } }; var popupMenu = new PopupMenu(frm.barManager1.Container) { Manager = frm.barManager1 }; popupMenu.LinksPersistInfo.Add(new LinkPersistInfo(itemXemtruoc)); var itemPrint = new BarButtonItem { Caption = "&In", PaintStyle = BarItemPaintStyle.CaptionGlyph, Glyph = frm.barItemIn.Glyph, ButtonStyle = BarButtonStyle.DropDown, DropDownControl = popupMenu, Visibility = BarItemVisibility.Always }; itemPrint.ItemClick += delegate { if (FrameworkParams.headerLetter != null) { PrintableComponentLink link = FrameworkParams.headerLetter.Draw(frm.pivotGridMaster, frm.Text.ToUpper(), "Ngày báo cáo: " + DateTime.Today.ToString( FrameworkParams.option. dateFormat)); link.PrintingSystem.PageSettings.Landscape = isLandscape; link.PrintDlg(); } else { frm.pivotGridMaster.Print(); } }; int index = 0; for (int i = 0; i < frm.MainBar.LinksPersistInfo.Count; i++) { if (frm.MainBar.LinksPersistInfo[i].Item.Name == frm.barItemIn.Name) { index = i; break; } } frm.MainBar.LinksPersistInfo.Insert(index, new LinkPersistInfo(itemPrint, true)); frm.barManager1.Items.AddRange(new BarItem[] { itemPrint, itemXemtruoc }); return itemPrint; }
public void AddItem(GUIContent content, bool on, PopupMenu.MenuFunction func) { popup.AddItem (content, on, func); }