static IEnumerable<MenuItem> SearchControl_GetContextMenuItems(SearchControl sc)
        {
            if (!Navigator.IsViewable(typeof(PackageOperationEntity)))
                return Enumerable.Empty<MenuItem>();

            if (sc.SelectedItems.IsNullOrEmpty() || sc.SelectedItems.Count == 1)
                return null;

            if (sc.Implementations.IsByAll)
                return null;

            var type = sc.SelectedItems.Select(a => a.EntityType).Distinct().Only();

            if (type == null)
                return null;

            var result = (from oi in OperationClient.Manager.OperationInfos(type)
                          where oi.IsEntityOperation
                          let os = OperationClient.Manager.GetSettings<EntityOperationSettingsBase>(type, oi.OperationSymbol)
                          let coc = newContextualOperationContext.GetInvoker(os.Try(a => a.OverridenType) ?? type)(sc, oi, os.Try(a => a.ContextualFromManyUntyped))
                          where os == null ? oi.Lite == true && oi.OperationType != OperationType.ConstructorFrom :
                              !os.ContextualFromManyUntyped.HasIsVisible ? (oi.Lite == true && !os.HasIsVisible && oi.OperationType != OperationType.ConstructorFrom && (!os.HasClick || os.ContextualFromManyUntyped.HasClick)) :
                              os.ContextualFromManyUntyped.OnIsVisible(coc)
                          select coc).ToList();

            if (result.IsEmpty())
                return null;

            var cleanKeys = result
                .Where(cod => cod.CanExecute == null && cod.OperationInfo.HasStates == true)
                .Select(cod => cod.OperationInfo.OperationSymbol).ToList();

            if (cleanKeys.Any())
            {
                Dictionary<OperationSymbol, string> canExecutes = Server.Return((IOperationServer os) => os.GetContextualCanExecute(sc.SelectedItems, cleanKeys));
                foreach (var cod in result)
                {
                    var ce = canExecutes.TryGetC(cod.OperationInfo.OperationSymbol);
                    if (ce.HasText())
                        cod.CanExecute = ce;
                }
            }

            return result.Select(coc=>PackageOperationMenuItemConsturctor.Construct(coc));
        }
        public static MenuItem Construct(SearchControl sc)
        {
            MenuItem miResult = new MenuItem()
            {
                Header = ExcelMessage.ExcelReport.NiceToString(),
                Icon = ExtensionsImageLoader.GetImageSortName("excelPlain.png").ToSmallImage(),
            };

            miResult.Click += (object sender, RoutedEventArgs e)=>
            {
                e.Handled = true;

                SaveFileDialog sfd = new SaveFileDialog()
                {
                    AddExtension = true,
                    DefaultExt = ".xlsx",
                    Filter = ExcelMessage.Excel2007Spreadsheet.NiceToString(),
                    OverwritePrompt = true,
                    FileName = "{0}.xlsx".FormatWith(QueryUtils.GetNiceName(sc.QueryName)),
                    Title = ExcelMessage.FindLocationFoExcelReport.NiceToString()
                };

                if (sfd.ShowDialog(Window.GetWindow(sc)) == true)
                {
                    var request = sc.GetQueryRequest(true);

                    byte[] file = Server.Return((IExcelReportServer s) => s.ExecutePlainExcel(request));

                    File.WriteAllBytes(sfd.FileName, file);

                    System.Diagnostics.Process.Start(sfd.FileName);
                }
            };

            sc.ResultChanged += (object sender, ResultChangedEventArgs e)=>
            {
                ResultTable qr = sc.ResultTable;
                miResult.IsEnabled = (qr != null && qr.Rows.Length > 0);
            };

            return miResult;
        }
        public static MenuItem Construct(SearchControl sc)
        {
            List<Lite<UserQueryEntity>> userQueries = null;
            UserQueryEntity current = null;

            MenuItem miResult = new MenuItem
            {
                Icon = ExtensionsImageLoader.GetImageSortName("favorite.png").ToSmallImage()
            };

            MenuItem edit = null;
            MenuItem remove = null;

            Action updatecurrent = () =>
            {
                miResult.Header = new TextBlock
                {
                    Inlines = 
                    { 
                        new Run(
                        current == null ? UserQueryMessage.MyQueries.NiceToString() : current.DisplayName), 
                        userQueries.IsNullOrEmpty() ? (Inline)new Run():  new Bold(new Run(" (" + userQueries.Count + ")")) 
                    }
                };

                foreach (var item in miResult.Items.OfType<MenuItem>().Where(mi => mi.IsCheckable))
                {
                    item.IsChecked = ((Lite<UserQueryEntity>)item.Tag).RefersTo(current);
                }

                bool isEnabled = current != null && !Navigator.IsReadOnly(current);

                if (edit != null)
                    edit.IsEnabled = isEnabled;

                if (remove != null)
                    remove.IsEnabled = isEnabled;
            };

            Action initialize = null;

            RoutedEventHandler new_Clicked = (object sender, RoutedEventArgs e) =>
            {
                e.Handled = true;

                sc.FocusSearch(); //Commit RealValue bindings

                UserQueryEntity userQuery = UserQueryClient.FromSearchControl(sc);

                var disp = Dispatcher.CurrentDispatcher;
                Navigator.Navigate(userQuery, new NavigateOptions
                {
                    View = () => new UserQuery { QueryDescription = sc.Description },
                    Closed = (s, args) =>
                    {
                        disp.Invoke(() =>
                        {
                            initialize();

                            if (userQuery.IdOrNull != null)
                            {
                                current = userQuery;
                            }

                            updatecurrent();
                        });
                    }
                });
            };

            RoutedEventHandler edit_Clicked = (object sender, RoutedEventArgs e) =>
            {
                e.Handled = true;

                var d = Dispatcher.CurrentDispatcher;
                Navigator.Navigate(current.ToLite().Retrieve(), new NavigateOptions
                {
                    View = () => new UserQuery { QueryDescription = sc.Description },
                    Closed = (s, args) =>
                    {
                        d.Invoke(() =>
                        {
                            initialize();
                            updatecurrent();
                        });
                    }
                });
            };

            RoutedEventHandler remove_Clicked = (object sender, RoutedEventArgs e) =>
            {
                e.Handled = true;

                if (MessageBox.Show(UserQueryMessage.AreYouSureToRemove0.NiceToString().FormatWith(current), UserQueryMessage.RemoveUserQuery.NiceToString(),
                    MessageBoxButton.YesNo, MessageBoxImage.Exclamation, MessageBoxResult.No) == MessageBoxResult.Yes)
                {
                    current.ToLite().DeleteLite(UserQueryOperation.Delete);

                    initialize();

                    updatecurrent();
                }
            };

            RoutedEventHandler menuItem_Clicked = (object sender, RoutedEventArgs e) =>
            {
                e.Handled = true;

                if (e.OriginalSource is MenuItem)
                {
                    MenuItem b = (MenuItem)e.OriginalSource;
                    Lite<UserQueryEntity> userQuery = (Lite<UserQueryEntity>)b.Tag;

                    var uq = Server.Return((IUserQueryServer s) => s.RetrieveUserQuery(userQuery));

                    UserQueryClient.ToSearchControl(uq, sc);

                    current = uq;

                    updatecurrent();

                    sc.Search();
                }
            };

            initialize = () =>
            {
                miResult.Items.Clear();

                userQueries = Server.Return((IUserQueryServer s) => s.GetUserQueries(sc.QueryName));

                if (current != null && !userQueries.Contains(current.ToLite()))
                    current = null;

                if (userQueries.Count > 0)
                {
                    foreach (Lite<UserQueryEntity> report in userQueries.OrderBy(a=>a.ToString()))
                    {
                        MenuItem mi = new MenuItem()
                        {
                            IsCheckable = true,
                            Header = report.ToString(),
                            Tag = report,
                        };
                        mi.Click += menuItem_Clicked;
                        miResult.Items.Add(mi);
                    }
                }

                if (Navigator.IsNavigable(typeof(UserQueryEntity), isSearch: true))
                {
                    miResult.Items.Add(new Separator());

                    if (Navigator.IsCreable(typeof(UserQueryEntity), true))
                    {
                        miResult.Items.Add(new MenuItem()
                        {
                            Header = EntityControlMessage.Create.NiceToString(),
                            Icon = ExtensionsImageLoader.GetImageSortName("add.png").ToSmallImage()
                        }.Handle(MenuItem.ClickEvent, new_Clicked));
                    }

                    miResult.Items.Add(edit = new MenuItem()
                    {
                        Header = UserQueryMessage.Edit.NiceToString(),
                        Icon = ExtensionsImageLoader.GetImageSortName("edit.png").ToSmallImage()
                    }.Handle(MenuItem.ClickEvent, edit_Clicked));

                    miResult.Items.Add(remove = new MenuItem()
                    {
                        Header = EntityControlMessage.Remove.NiceToString(),
                        Icon = ExtensionsImageLoader.GetImageSortName("remove.png").ToSmallImage()
                    }.Handle(MenuItem.ClickEvent, remove_Clicked));
                }
            };

            initialize();

            var autoSet = UserQueryClient.GetUserQuery(sc);

            if (autoSet != null)
            {
                UserQueryClient.ToSearchControl(autoSet, sc);
                current = autoSet;

                updatecurrent();

                sc.Search();
            }
            else
            {
                updatecurrent();
            }

            return miResult;
        }
Esempio n. 4
0
        private static async void AddHelpButton(SearchControl sc)
        {
            Menu bar = sc.Child<Menu>(m => m.Name == "menu");

            HelpButton helpButton = new HelpButton
            {
                MainControl = sc,
                Margin = new Thickness(4),
                IsEnabled = false,
            }.Set(DockPanel.DockProperty, Dock.Right);

            bar.After(helpButton);

            var queryName = sc.QueryName;

            helpButton.IsActive = await Server.ReturnAsync((IHelpServer s) => s.HasQueryHelpService(queryName));

            helpButton.Checked += async (sender, args) =>
            {
                var queryHelp = await Server.ReturnAsync((IHelpServer s) => s.GetQueryHelpService(queryName));

                SetHelpInfo(sc.Child<Button>(b=>b.Name == "btSearch"), queryHelp.Info);

                var listView = sc.Child<ListView>(b => b.Name == "lvResult");

                var columns = (from header in listView.Children<SortGridViewColumnHeader>(HelpButton.WhereFlags)
                                  let token = header.RequestColumn.Token
                                  select new { header, token }).ToList();

                var external = columns.Extract(t => !(t.token is ColumnToken));

                foreach (var t in columns)
                {
                    SetHelpInfo(t.header, queryHelp.Columns.GetOrThrow(((ColumnToken)t.token).Column.Name));
                }


                if (external.Any())
                {
                    var externalRoutes = external.Select(a => a.token.GetPropertyRoute()).Distinct().ToList();

                    var dictionary = await Server.ReturnAsync((IHelpServer s) => s.GetPropertyRoutesService(externalRoutes));

                    foreach (var t in external)
                    {
                        SetHelpInfo(t.header, dictionary.TryGetC(t.token.GetPropertyRoute()));
                    }
                }
            };

            sc.ContextMenuOpened += async cm =>
            {
                if (helpButton.IsChecked == true && !sc.Implementations.IsByAll)
                {
                    var pairs = (from mi in cm.Items.OfType<MenuItem>()
                                 where mi.Tag is IContextualOperationContext
                                 select new { mi, coc = (IContextualOperationContext)mi.Tag })
                                 .ToList();

                    var operations = pairs.Select(p=>p.coc.OperationInfo.OperationSymbol).Distinct().ToList();
                    if(operations.Any())
                    {
                        var types = await Task.WhenAll(sc.Implementations.Types.Select(t=> Server.ReturnAsync((IHelpServer s) => s.GetEntityHelpService(t))));
            
                        foreach (var p in pairs)
                        {
                            SetHelpInfo(p.mi, types.Select(t => t.Operations.TryGetC(p.coc.OperationInfo.OperationSymbol)).NotNull().FirstOrDefault());
                        }
                    }
                }
            };

            helpButton.IsEnabled = true;
        }
Esempio n. 5
0
        static MenuItem SearchControl_GetCustomMenuItems(SearchControl sc)
        {
            if (!ChartPermission.ViewCharting.IsAuthorized())
                return null;

            var miResult = new MenuItem
            {
                Header = ChartMessage.Chart.NiceToString(),
                Icon = ExtensionsImageLoader.GetImageSortName("chartIcon.png").ToSmallImage()
            };

            miResult.Click += delegate
            {
                var cr = new ChartRequest(sc.QueryName)
                {
                    Filters = sc.FilterOptions.Select(fo => fo.ToFilter()).ToList(),
                };

                ChartClient.OpenChartRequest(cr, null, null);
            };

            return miResult;
        }
Esempio n. 6
0
 void searchBox_Search(object sender, SearchControl.SearchEventArgs e)
 {
     try
     {
         if (Search != null)
         {
             Search(sender, e);
         }
         else
         {
             Response.Redirect(string.Format("?q={0}", Renderer.UrlEncode(e.Query)));
             panelSearch.Update();
         }
     }
     catch (Exception ex)
     {
         ReportException(ex);
     }
 }
Esempio n. 7
0
        public RepoObjectsTree()
        {
            InitializeComponent();
            InitImageList();
            _txtBranchCriterion = CreateSearchBox();
            branchSearchPanel.Controls.Add(_txtBranchCriterion, 1, 0);

            treeMain.PreviewKeyDown  += OnPreviewKeyDown;
            btnSearch.PreviewKeyDown += OnPreviewKeyDown;
            PreviewKeyDown           += OnPreviewKeyDown;
            InitializeComplete();

            RegisterContextActions();

            treeMain.ShowNodeToolTips = true;
            treeMain.HideSelection    = false;

            toolTip.SetToolTip(btnCollapseAll, mnubtnCollapseAll.ToolTipText);
            toolTip.SetToolTip(btnSearch, _searchTooltip.Text);
            toolTip.SetToolTip(btnSettings, _showHideRefsTooltip.Text);
            tsmiShowBranches.Checked   = AppSettings.RepoObjectsTreeShowBranches;
            tsmiShowRemotes.Checked    = AppSettings.RepoObjectsTreeShowRemotes;
            tsmiShowTags.Checked       = AppSettings.RepoObjectsTreeShowTags;
            tsmiShowSubmodules.Checked = AppSettings.RepoObjectsTreeShowSubmodules;

            _doubleClickDecorator = new NativeTreeViewDoubleClickDecorator(treeMain);
            _doubleClickDecorator.BeforeDoubleClickExpandCollapse += BeforeDoubleClickExpandCollapse;

            _explorerNavigationDecorator              = new NativeTreeViewExplorerNavigationDecorator(treeMain);
            _explorerNavigationDecorator.AfterSelect += OnNodeSelected;

            treeMain.NodeMouseClick       += OnNodeClick;
            treeMain.NodeMouseDoubleClick += OnNodeDoubleClick;

            mnubtnFilterRemoteBranchInRevisionGrid.ToolTipText = _showBranchOnly.Text;
            mnubtnFilterLocalBranchInRevisionGrid.ToolTipText  = _showBranchOnly.Text;

            void InitImageList()
            {
                const int rowPadding = 1; // added to top and bottom, so doubled -- this value is scaled *after*, so consider 96dpi here

                treeMain.ImageList = new ImageList
                {
                    ImageSize = DpiUtil.Scale(new Size(16, 16 + rowPadding + rowPadding)), // Scale ImageSize and images scale automatically
                    Images    =
                    {
                        { nameof(Images.FolderClosed),                   Pad(Images.FolderClosed)                   },
                        { nameof(Images.BranchDocument),                 Pad(Images.BranchDocument)                 },
                        { nameof(Images.Branch),                         Pad(Images.Branch)                         },
                        { nameof(Images.Remote),                         Pad(Images.Remote)                         },
                        { nameof(Images.BitBucket),                      Pad(Images.BitBucket)                      },
                        { nameof(Images.GitHub),                         Pad(Images.GitHub)                         },
                        { nameof(Images.VisualStudioTeamServices),       Pad(Images.VisualStudioTeamServices)       },
                        { nameof(Images.BranchLocalRoot),                Pad(Images.BranchLocalRoot)                },
                        { nameof(Images.BranchRemoteRoot),               Pad(Images.BranchRemoteRoot)               },
                        { nameof(Images.BranchRemote),                   Pad(Images.BranchRemote)                   },
                        { nameof(Images.BranchFolder),                   Pad(Images.BranchFolder)                   },
                        { nameof(Images.TagHorizontal),                  Pad(Images.TagHorizontal)                  },
                        { nameof(Images.FolderClosed),                   Pad(Images.FolderClosed)                   },
                        { nameof(Images.EyeOpened),                      Pad(Images.EyeOpened)                      },
                        { nameof(Images.EyeClosed),                      Pad(Images.EyeClosed)                      },
                        { nameof(Images.RemoteEnableAndFetch),           Pad(Images.RemoteEnableAndFetch)           },
                        { nameof(Images.FileStatusModified),             Pad(Images.FileStatusModified)             },
                        { nameof(Images.FolderSubmodule),                Pad(Images.FolderSubmodule)                },
                        { nameof(Images.SubmoduleDirty),                 Pad(Images.SubmoduleDirty)                 },
                        { nameof(Images.SubmoduleRevisionUp),            Pad(Images.SubmoduleRevisionUp)            },
                        { nameof(Images.SubmoduleRevisionDown),          Pad(Images.SubmoduleRevisionDown)          },
                        { nameof(Images.SubmoduleRevisionSemiUp),        Pad(Images.SubmoduleRevisionSemiUp)        },
                        { nameof(Images.SubmoduleRevisionSemiDown),      Pad(Images.SubmoduleRevisionSemiDown)      },
                        { nameof(Images.SubmoduleRevisionUpDirty),       Pad(Images.SubmoduleRevisionUpDirty)       },
                        { nameof(Images.SubmoduleRevisionDownDirty),     Pad(Images.SubmoduleRevisionDownDirty)     },
                        { nameof(Images.SubmoduleRevisionSemiUpDirty),   Pad(Images.SubmoduleRevisionSemiUpDirty)   },
                        { nameof(Images.SubmoduleRevisionSemiDownDirty), Pad(Images.SubmoduleRevisionSemiDownDirty) },
                    }
                };
                treeMain.SelectedImageKey = treeMain.ImageKey;

                Image Pad(Image image)
                {
                    var padded = new Bitmap(image.Width, image.Height + rowPadding + rowPadding, PixelFormat.Format32bppArgb);

                    using (var g = Graphics.FromImage(padded))
                    {
                        g.DrawImageUnscaled(image, 0, rowPadding);
                        return(padded);
                    }
                }
            }

            SearchControl <string> CreateSearchBox()
            {
                var search = new SearchControl <string>(SearchForBranch, i => { })
                {
                    Anchor   = AnchorStyles.Left | AnchorStyles.Right,
                    Name     = "txtBranchCritierion",
                    TabIndex = 1
                };

                search.OnTextEntered += () =>
                {
                    OnBranchCriterionChanged(null, null);
                    OnBtnSearchClicked(null, null);
                };
                search.TextChanged    += OnBranchCriterionChanged;
                search.KeyDown        += TxtBranchCriterion_KeyDown;
                search.PreviewKeyDown += OnPreviewKeyDown;
                return(search);

                IEnumerable <string> SearchForBranch(string arg)
                {
                    return(CollectFilterCandidates()
                           .Where(r => r.IndexOf(arg, StringComparison.OrdinalIgnoreCase) != -1));
                }

                IEnumerable <string> CollectFilterCandidates()
                {
                    var list = new List <string>();

                    foreach (TreeNode rootNode in treeMain.Nodes)
                    {
                        CollectFromNodes(rootNode.Nodes);
                    }

                    return(list);

                    void CollectFromNodes(TreeNodeCollection nodes)
                    {
                        foreach (TreeNode node in nodes)
                        {
                            if (node.Tag is BaseBranchNode branch)
                            {
                                if (branch.Nodes.Count == 0)
                                {
                                    list.Add(branch.FullPath);
                                }
                            }
                            else
                            {
                                list.Add(node.Text);
                            }

                            CollectFromNodes(node.Nodes);
                        }
                    }
                }
            }
        }
Esempio n. 8
0
		/// <summary>
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.Page_Load);
			ctlMassUpdate.Command += new CommandEventHandler(Page_Command);
			ctlCheckAll  .Command += new CommandEventHandler(Page_Command);
			// 11/26/2005   Add fields early so that sort events will get called. 
			m_sMODULE = "ACLRoles";
			SetMenu(m_sMODULE);
			this.AppendGridColumns(grdMain, m_sMODULE + "." + LayoutListView);
			// We have to load the control in here, otherwise the control will not initialized before the Page_Load above. 
			ctlSearch = (SearchControl) LoadControl("SearchBasic.ascx");
			plcSearch.Controls.Add(ctlSearch);
			// 12/01/2010   Event Handler must be added after the LoadControl. 
			ctlSearch.Command += new CommandEventHandler(Page_Command);
			lblError.Visible = true;
		}
Esempio n. 9
0
        public static MenuItem Construct(SearchControl sc, MenuItem plainExcelMenuItem)
        {
            MenuItem miResult = new MenuItem
            {
                Header = ExcelMessage.Reports.NiceToString(),
                Icon = ExtensionsImageLoader.GetImageSortName("excel.png").ToSmallImage()

            };

            miResult.AddHandler(MenuItem.ClickEvent, new RoutedEventHandler((object sender, RoutedEventArgs e) =>
            {
                e.Handled = true;

                if (e.OriginalSource is MenuItem) //Not to capture the mouseDown of the scrollbar buttons
                {
                    MenuItem b = (MenuItem)e.OriginalSource;
                    Lite<ExcelReportEntity> reportLite = (Lite<ExcelReportEntity>)b.Tag;
                    
                    SaveFileDialog sfd = new SaveFileDialog()
                    {
                        AddExtension = true,
                        DefaultExt = ".xlsx",
                        Filter = ExcelMessage.Excel2007Spreadsheet.NiceToString(),
                        FileName = reportLite.ToString() + " - " + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xlsx",
                        OverwritePrompt = true,
                        Title = ExcelMessage.FindLocationFoExcelReport.NiceToString()
                    };

                    if (sfd.ShowDialog(Window.GetWindow(sc)) == true)
                    {
                        byte[] result = Server.Return((IExcelReportServer r) => r.ExecuteExcelReport(reportLite, sc.GetQueryRequest(true)));

                        File.WriteAllBytes(sfd.FileName, result);

                        System.Diagnostics.Process.Start(sfd.FileName);
                    }
                }
            }));

            Action initialize = null;

            MenuItem miAdmin = new MenuItem()
            {
                Header = "Administrar",
                Icon = ExtensionsImageLoader.GetImageSortName("folderedit.png").ToSmallImage()
            };

            miAdmin.Click += (object sender, RoutedEventArgs e)=>
            {
                var query = QueryClient.GetQuery(sc.QueryName);

                Finder.Explore(new ExploreOptions(typeof(ExcelReportEntity))
                {
                    ShowFilters = false,
                    ShowFilterButton = false,
                    FilterOptions = new List<FilterOption>
                    {
                        new FilterOption 
                        { 
                            ColumnName = "Query", 
                            Operation = FilterOperation.EqualTo, 
                            Value = query.ToLite(query.IsNew),
                            Frozen = true
                        }
                    },
                    Closed = (_, __) => miAdmin.Dispatcher.Invoke(() => initialize()) //Refrescar lista de informes tras salir del administrador
                });

                e.Handled = true;
            };

            initialize = ()=>
            {
                miResult.Items.Clear();

                List<Lite<ExcelReportEntity>> reports = Server.Return((IExcelReportServer s)=>s.GetExcelReports(sc.QueryName));

                if (plainExcelMenuItem != null)
                {
                    miResult.Items.Add(plainExcelMenuItem);
                    miResult.Items.Add(new Separator());
                }

                miResult.Header = new TextBlock { Inlines = { new Run(ExcelMessage.Reports.NiceToString()), reports.Count == 0? (Inline)new Run(): new Bold(new Run(" (" + reports.Count + ")")) } };

                if (reports.Count > 0)
                {
                    foreach (Lite<ExcelReportEntity> report in reports)
                    {
                        MenuItem mi = new MenuItem()
                        {
                            Header = report.ToString(),
                            Icon = ExtensionsImageLoader.GetImageSortName("excelDoc.png").ToSmallImage(),
                            Tag = report,
                        };
                        miResult.Items.Add(mi);
                    }
                }          

          
                miResult.Items.Add(miAdmin);
            };

            initialize();

            return miResult;
        }
Esempio n. 10
0
 public SearchViewControl(SearchControl s, View m, LinkButton b)
 {
     SearchControl = s;
     MultiView = m;
     LinkButton = b;
 }
Esempio n. 11
0
 public void search_Search(object sender, SearchControl.SearchEventArgs e)
 {
     try
     {
         Query = e.Query;
         grid.RepeatRows = 20;
         GetData(sender, e);
         panelPosts.Update();
     }
     catch (Exception ex)
     {
         ReportException(ex);
     }
 }
Esempio n. 12
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            WindowPosition.Move(this);

            _windowState = this.WindowState;

            Thread.CurrentThread.Priority = ThreadPriority.Highest;

            TopRelativeDoubleConverter.GetDoubleEvent = (object state) =>
            {
                return this.PointToScreen(new Point(0, 0)).Y;
            };

            LeftRelativeDoubleConverter.GetDoubleEvent = (object state) =>
            {
                return this.PointToScreen(new Point(0, 0)).X;
            };

            var informationControl = new InformationControl(_amoebaManager, _bufferManager);
            informationControl.Height = Double.NaN;
            informationControl.Width = Double.NaN;
            _infoTabItem.Content = informationControl;

            var linkControl = new LinkControl(_amoebaManager, _bufferManager);
            linkControl.Height = Double.NaN;
            linkControl.Width = Double.NaN;
            _linkTabItem.Content = linkControl;

            var chatControl = new ChatControl(_amoebaManager, _bufferManager);
            chatControl.Height = Double.NaN;
            chatControl.Width = Double.NaN;
            _chatTabItem.Content = chatControl;

            var searchControl = new SearchControl(_amoebaManager, _bufferManager);
            searchControl.Height = Double.NaN;
            searchControl.Width = Double.NaN;
            _searchTabItem.Content = searchControl;

            var downloadControl = new DownloadControl(_amoebaManager, _bufferManager);
            downloadControl.Height = Double.NaN;
            downloadControl.Width = Double.NaN;
            _downloadTabItem.Content = downloadControl;

            var uploadControl = new UploadControl(_amoebaManager, _bufferManager);
            uploadControl.Height = Double.NaN;
            uploadControl.Width = Double.NaN;
            _uploadTabItem.Content = uploadControl;

            var shareControl = new ShareControl(_amoebaManager, _bufferManager);
            shareControl.Height = Double.NaN;
            shareControl.Width = Double.NaN;
            _shareTabItem.Content = shareControl;

            var storeControl = new StoreControl(_amoebaManager, _bufferManager);
            storeControl.Height = Double.NaN;
            storeControl.Width = Double.NaN;
            _storeTabItem.Content = storeControl;

            if (Settings.Instance.Global_IsConnectRunning)
            {
                _connectStartMenuItem_Click(null, null);
            }

            if (Settings.Instance.Global_IsConvertRunning)
            {
                _convertStartMenuItem_Click(null, null);
            }

            if (Settings.Instance.Global_Update_Option == UpdateOption.Check
               || Settings.Instance.Global_Update_Option == UpdateOption.Update)
            {
                this.CheckUpdate(false);
            }
        }
Esempio n. 13
0
 public FrameModalProxy <T> Create <T>() where T : ModifiableEntity
 {
     return(SearchControl.Create <T>());
 }
Esempio n. 14
0
        //*****************************************************************
        //-------------searchButton click event handling ------------------
        //*****************************************************************
        private void searchButton_Click(object sender, EventArgs e)
        {
            pictureBox1.Visible = true;
            //------------Geting the text from search box--------------

            if (string.IsNullOrWhiteSpace(searchBox.Text))
            {
                MessageBox.Show("Search Box is empty! Please write your Query to search");
                return;
                //searchBox.Text = "Write your query here ....";
                //continue;
            }
            else
            {
                searchOb.searchQuery = searchBox.Text.ToString().Trim();
            }


            //-------------getting the selected radio button---------------

            if (mostRelevent.Checked)
            {
                searchOb.sortBy = mostRelevent.Text;
            }
            else
            if (mostRecent.Checked)
            {
                searchOb.sortBy = mostRecent.Text;
            }
            else
            if (priceAscending.Checked)
            {
                searchOb.sortBy = priceAscending.Text;
            }
            else
            if (priceDescending.Checked)
            {
                searchOb.sortBy = priceDescending.Text;
            }


            //--------------- Getting the price Range ----------------
            if (string.IsNullOrWhiteSpace(lowerPriceRange.Text) && string.IsNullOrWhiteSpace(upperPriceRange.Text))
            {
                searchOb.lowerPriceRange = 0;
                searchOb.upperPriceRange = 0;
            }
            else
            {
                try
                {
                    searchOb.lowerPriceRange = int.Parse(lowerPriceRange.Text.ToString());
                    searchOb.upperPriceRange = int.Parse(upperPriceRange.Text.ToString());
                }
                catch (FormatException fe)
                {
                    MessageBox.Show("Please enter valid number for price range");
                    return;
                }
            }


            //---------getting the selected location-------------
            if (allBangladeshCheck.Checked)
            {
                searchOb.selectedLocation.Add(allBangladeshCheck.Text.ToString());
            }
            else
            {
                if (dhakaCheck.Checked)
                {
                    searchOb.selectedLocation.Add(dhakaCheck.Text.ToString());
                }
                if (chittagongChecke.Checked)
                {
                    searchOb.selectedLocation.Add(chittagongChecke.Text.ToString());
                }
                if (sylhetCheck.Checked)
                {
                    searchOb.selectedLocation.Add(sylhetCheck.Text.ToString());
                }
                if (khulnaChecked.Checked)
                {
                    searchOb.selectedLocation.Add(khulnaChecked.Text.ToString());
                }
            }

            if (!searchOb.selectedLocation.Any())
            {
                allBangladeshCheck.Checked = true;
                searchOb.selectedLocation.Add(allBangladeshCheck.Text.ToString());
            }



            if (!NetworkInterface.GetIsNetworkAvailable())
            {
                MessageBox.Show("No Internet Connection!");
                return;
            }

            sc = new SearchControl(searchOb);
            Task tsk = Task.Factory.StartNew(sc.startSearch);

            Task.WaitAll(tsk);


            showSearchResult showResult = new showSearchResult(sc);

            showResult.Show();
            showResult.ClearGrid();
            showResult.showResult();
            pictureBox1.Visible = false;
        }
Esempio n. 15
0
        internal static UserQueryEntity FromSearchControl(SearchControl searchControl)
        {
            QueryDescription description = DynamicQueryServer.GetQueryDescription(searchControl.QueryName);

            return searchControl.GetQueryRequest(true).ToUserQuery(description, 
                QueryClient.GetQuery(searchControl.QueryName), 
                FindOptions.DefaultPagination, 
                searchControl.SimpleFilterBuilder != null);
        }
Esempio n. 16
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.glassButton1 = new Glass.GlassButton();
            this.groupBox1    = new System.Windows.Forms.GroupBox();
            this.listBox1     = new System.Windows.Forms.ListBox();
            this.label1       = new System.Windows.Forms.Label();
            this.searchPanel  = new System.Windows.Forms.Panel();
            this.glassButton2 = new Glass.GlassButton();

            _searchControl = new SearchControl();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            //
            // glassButton1
            //
            this.glassButton1.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.glassButton1.BackColor = System.Drawing.Color.DarkGreen;
            this.glassButton1.Location  = new System.Drawing.Point(314, 333);
            this.glassButton1.Name      = "glassButton1";
            this.glassButton1.Size      = new System.Drawing.Size(75, 23);
            this.glassButton1.TabIndex  = 4;
            this.glassButton1.Text      = "&Close";
            this.glassButton1.Click    += new System.EventHandler(this.GlassButton1Click);
            //
            // groupBox1
            //
            this.groupBox1.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.groupBox1.Controls.Add(this.listBox1);
            this.groupBox1.Location = new System.Drawing.Point(13, 63);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new System.Drawing.Size(376, 264);
            this.groupBox1.TabIndex = 5;
            this.groupBox1.TabStop  = false;
            this.groupBox1.Text     = "All Shapes List";
            //
            // listBox1
            //
            this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.listBox1.FormattingEnabled = true;
            this.listBox1.Location          = new System.Drawing.Point(3, 16);
            this.listBox1.Name                  = "listBox1";
            this.listBox1.SelectionMode         = System.Windows.Forms.SelectionMode.MultiExtended;
            this.listBox1.Size                  = new System.Drawing.Size(370, 238);
            this.listBox1.TabIndex              = 0;
            this.listBox1.SelectedIndexChanged += new System.EventHandler(this.ListBox1SelectedIndexChanged);
            this.listBox1.DoubleClick          += new System.EventHandler(this.ListBox1DoubleClick);
            //
            // label1
            //
            this.label1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(16, 334);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(117, 13);
            this.label1.TabIndex = 6;
            this.label1.Text     = "* Double click to delete";
            //
            // searchPanel
            //
            this.searchPanel.Location = new System.Drawing.Point(19, 13);
            this.searchPanel.Name     = "searchPanel";
            this.searchPanel.Size     = new System.Drawing.Size(370, 44);
            this.searchPanel.TabIndex = 7;

            //
            // glassButton2
            //
            this.glassButton2.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.glassButton2.BackColor = System.Drawing.Color.Red;
            this.glassButton2.Location  = new System.Drawing.Point(233, 334);
            this.glassButton2.Name      = "glassButton2";
            this.glassButton2.Size      = new System.Drawing.Size(75, 23);
            this.glassButton2.TabIndex  = 4;
            this.glassButton2.Text      = "&Remove";
            this.glassButton2.Click    += new System.EventHandler(this.GlassButton2Click);
            //
            //_ searchControl
            //
            this._searchControl.DefaultText = "Filter shape names";
            this._searchControl.Parent      = searchPanel;
            this._searchControl.Dock        = DockStyle.Fill;
            //
            // DeleteHiddenForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(401, 368);
            this.Controls.Add(this.searchPanel);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.glassButton2);
            this.Controls.Add(this.glassButton1);
            this.DoubleBuffered = true;
            this.Name           = "DeleteHiddenForm";
            this.StartPosition  = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text           = "Delete Hidden Shapes";
            this.groupBox1.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Esempio n. 17
0
        private void initEditor()
        {
            _editor      = new AzukiControlEx();
            _editor.Dock = DockStyle.Fill;
            EditorPanel.Controls.Add(_editor);
            _editor.Font                = config.EditorFont;
            _editor.ForeColor           = config.EditorFontColor;
            _editor.BackColor           = config.EditorBackColor;
            _editor.DrawsTab            = config.ShowTab;
            _editor.DrawsSpace          = config.ShowSpace;
            _editor.DrawsFullWidthSpace = config.ShowZenSpace;
            _editor.DrawsEolCode        = config.ShowEol;
            _editor.ShowsLineNumber     = true;

            _editor.ColorScheme.SetColor(Sgry.Azuki.CharClass.Heading6 + 1, Color.Red, _editor.BackColor);
            _editor.Highlighter = new EditorHighlighter();

            EditorWrapToolStripButton.Checked = config.EdiorWrap;
            CloseEditor();

            _editor.ImeOnOffEvent += (sender, e) => {
                if (_editor.Document.AnchorIndex > 0)
                {
                    _editor.SetSelection(_editor.Document.AnchorIndex, _editor.Document.AnchorIndex - 1);
                    _editor.Delete();
                }
            };

            _editor.KeyDown += (sender, e) => {
                if (_editor.IsReadOnly)
                {
                    _editor.IsReadOnly = false;
                }
                if (_EditorKeyMap.ContainsKey(e.KeyData))
                {
                    _EditorKeyMap[e.KeyData](this);
                    e.Handled          = true;
                    e.SuppressKeyPress = true;
                }
            };

            _editor.TextChanged += (s, e) => {
                initEditorToolStripButton();
            };

            _editor.Document.SelectionChanged += (s, e) => {
                initEditorToolStripButton();
            };

            //_editor.DragDrop

            CloseEditorToolStripButton.Click += (sender, e) => {
                //ViewEditorSplitContainer.Panel2Collapsed = true;
                CloseEditor();
            };

            EditorSearchToolStripButton.CheckedChanged += (sender, e) => {
                if (EditorSearchToolStripButton.Checked)
                {
                    if (_editorSearchControl == null)
                    {
                        _editorSearchControl      = new SearchControl();
                        _editorSearchControl.Dock = DockStyle.Bottom;
                        _editorSearchControl.CloseButton.Click += (ss, ee) => {
                            EditorSearchToolStripButton.Checked = false;
                        };
                        _editorSearchControl.SearchComboBox.TextChanged += new System.EventHandler(SearchComboBox_TextChanged);
                        _editorSearchControl.NextButton.Click           += (ss, se) => {
                            FindNext();
                        };
                        _editorSearchControl.PrevButton.Click += (ss, se) => {
                            FindPrev();
                        };
                    }
                    EditorPanel.Controls.Add(_editorSearchControl);
                }
                else
                {
                    if (_editorSearchControl != null)
                    {
                        EditorPanel.Controls.Remove(_editorSearchControl);
                    }
                }
            };

            EditorWrapToolStripButton.CheckedChanged += (sender, e) => {
                if (EditorWrapToolStripButton.Checked)
                {
                    Editor.ViewType  = Sgry.Azuki.ViewType.WrappedProportional;
                    Editor.ViewWidth = Editor.ClientSize.Width - Editor.View.HRulerUnitWidth * 2;
                }
                else
                {
                    Editor.ViewType = Sgry.Azuki.ViewType.Proportional;
                }
            };

            EditorDateToolStripButton.Click += (s, e) => {
                EditDateTime();
            };

            EditorPinToolStripButton.CheckedChanged += (s, e) => {
            };
        }
Esempio n. 18
0
 private void ChangeDescription()
 => SearchControl.ChangeDescription(SearchControl.selected);
 private void ButtonDown_OnClick(object sender, GestureEventArgs gestureEventArgs)
 {
     SearchControl.Focus();
     ViewModel.Down();
 }
Esempio n. 20
0
 public SearchViewControl(SearchControl s, View m, LinkButton b)
 {
     SearchControl = s;
     MultiView     = m;
     LinkButton    = b;
 }
Esempio n. 21
0
 public void StartBuildingTheIndex()
 {
     SearchControl.RebuildIndexButton_Click(this, null);
 }
Esempio n. 22
0
 /// <summary>
 ///		Required method for Designer support - do not modify
 ///		the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.Load += new System.EventHandler(this.Page_Load);
     // 11/26/2005 Paul.  Add fields early so that sort events will get called.
     m_sMODULE = "Users";
     grdMain.DynamicColumns(m_sMODULE + ".ListView");
     // We have to load the control in here, otherwise the control will not initialized before the Page_Load above.
     nAdvanced = Sql.ToInteger(Request["Advanced"]);
     if ( nAdvanced == 0 )
         ctlSearch = (SearchControl) LoadControl("SearchBasic.ascx");
     else
         ctlSearch = (SearchControl) LoadControl("SearchAdvanced.ascx");
     plcSearch.Controls.Add(ctlSearch);
     ctlSearch.Command = new CommandEventHandler(Page_Command);
 }
Esempio n. 23
0
 public new void Focus()
 {
     SearchControl.Focus();
     Keyboard.Focus(SearchControl);
 }
Esempio n. 24
0
        static MenuItem SearchControl_GetMenuItems(SearchControl sc)
        {
            AddHelpButton(sc);

            return null;
        }
Esempio n. 25
0
        public object GetView(MenuItemName menuItemName, object oldView)
        {
            object            view      = null;
            object            viewModel = viewModelRouter.GetViewModel(menuItemName);
            IControlViewModel viewModelWithInterface = viewModel as IControlViewModel;
            Func <object>     factory = null;

            if (viewModelWithInterface != null)
            {
                if ((domainContext.ViewModel != viewModelWithInterface) ||
                    (domainContext.IsEditControl != viewModelWithInterface.IsEditControl))
                {
                    domainContext.ViewModel     = viewModelWithInterface;
                    domainContext.IsEditControl = viewModelWithInterface.IsEditControl;

                    if (viewModelWithInterface.IsEditControl)
                    {
                        if (mapEditControlFactories != null && mapEditControlFactories.ContainsKey(menuItemName))
                        {
                            factory = mapEditControlFactories[menuItemName];
                        }
                    }
                    else
                    {
                        if (mapSearchControlFactories != null && mapSearchControlFactories.ContainsKey(menuItemName))
                        {
                            factory = mapSearchControlFactories[menuItemName];
                        }
                    }

                    if (factory != null)
                    {
                        view = factory.Invoke();
                        UserControl viewWithInterface = view as UserControl;

                        if (viewWithInterface != null)
                        {
                            viewWithInterface.DataContext = viewModel;
                        }

                        if (viewModelWithInterface.IsEditControl)
                        {
                            EditControl editView = view as EditControl;

                            if (editView != null)
                            {
                                editView.DomainContext = domainContext;
                            }
                        }
                        else
                        {
                            SearchControl searchView = view as SearchControl;

                            if (searchView != null)
                            {
                                searchView.DomainContext = domainContext;
                            }
                        }
                    }
                }
                else
                {
                    view = oldView;
                }
            }
            else
            {
                domainContext.ViewModel     = null;
                domainContext.IsEditControl = false;
            }

            return(view);
        }
Esempio n. 26
0
 /// <summary>
 ///		Required method for Designer support - do not modify
 ///		the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.Load += new System.EventHandler(this.Page_Load);
     // 11/26/2005 Paul.  Add fields early so that sort events will get called.
     m_sMODULE = "Teams";
     SetMenu(m_sMODULE);
     this.AppendGridColumns(grdMain, m_sMODULE + ".ListView");
     // We have to load the control in here, otherwise the control will not initialized before the Page_Load above.
     ctlSearch = (SearchControl) LoadControl("SearchBasic.ascx");
     plcSearch.Controls.Add(ctlSearch);
     ctlSearch.Command = new CommandEventHandler(Page_Command);
     ctlMassUpdate.Command = new CommandEventHandler(Page_Command);
 }
Esempio n. 27
0
        static MenuItem SearchControl_GetMenuItems(SearchControl sc)
        {
            AddHelpButton(sc);

            return(null);
        }
Esempio n. 28
0
 /// <summary>
 ///		Required method for Designer support - do not modify
 ///		the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.Load += new System.EventHandler(this.Page_Load);
     // 11/26/2005 Paul.  Add fields early so that sort events will get called.
     m_sMODULE = "Calls";
     grdMain.DynamicColumns(m_sMODULE + ".ListView");
     // We have to load the control in here, otherwise the control will not initialized before the Page_Load above.
     ctlSearch = (SearchControl) LoadControl("SearchBasic.ascx");
     plcSearch.Controls.Add(ctlSearch);
     ctlSearch.Command = new CommandEventHandler(Page_Command);
     ctlMassUpdate.Command = new CommandEventHandler(Page_Command);
     // 05/02/2006 Paul.  Hide the MassUpdate control if the user cannot make changes.
     if ( Security.GetUserAccess(m_sMODULE, "delete") < 0 && Security.GetUserAccess(m_sMODULE, "edit") < 0 )
         ctlMassUpdate.Visible = false;
 }
Esempio n. 29
0
        private static async void AddHelpButton(SearchControl sc)
        {
            Menu bar = sc.Child <Menu>(m => m.Name == "menu");

            HelpButton helpButton = new HelpButton
            {
                MainControl = sc,
                Margin      = new Thickness(4),
                IsEnabled   = false,
            }.Set(DockPanel.DockProperty, Dock.Right);

            bar.After(helpButton);

            var queryName = sc.QueryName;

            helpButton.IsActive = await Server.ReturnAsync((IHelpServer s) => s.HasQueryHelpService(queryName));

            helpButton.Checked += async(sender, args) =>
            {
                var queryHelp = await Server.ReturnAsync((IHelpServer s) => s.GetQueryHelpService(queryName));

                SetHelpInfo(sc.Child <Button>(b => b.Name == "btSearch"), queryHelp.Info);

                var listView = sc.Child <ListView>(b => b.Name == "lvResult");

                var columns = (from header in listView.Children <SortGridViewColumnHeader>(HelpButton.WhereFlags)
                               let token = header.RequestColumn.Token
                                           select new { header, token }).ToList();

                var external = columns.Extract(t => !(t.token is ColumnToken));

                foreach (var t in columns)
                {
                    SetHelpInfo(t.header, queryHelp.Columns.GetOrThrow(((ColumnToken)t.token).Column.Name));
                }


                if (external.Any())
                {
                    var externalRoutes = external.Select(a => a.token.GetPropertyRoute()).Distinct().ToList();

                    var dictionary = await Server.ReturnAsync((IHelpServer s) => s.GetPropertyRoutesService(externalRoutes));

                    foreach (var t in external)
                    {
                        SetHelpInfo(t.header, dictionary.TryGetC(t.token.GetPropertyRoute()));
                    }
                }
            };

            sc.ContextMenuOpened += async cm =>
            {
                if (helpButton.IsChecked == true && !sc.Implementations.IsByAll)
                {
                    var pairs = (from mi in cm.Items.OfType <MenuItem>()
                                 where mi.Tag is IContextualOperationContext
                                 select new { mi, coc = (IContextualOperationContext)mi.Tag })
                                .ToList();

                    var operations = pairs.Select(p => p.coc.OperationInfo.OperationSymbol).Distinct().ToList();
                    if (operations.Any())
                    {
                        var types = await Task.WhenAll(sc.Implementations.Types.Select(t => Server.ReturnAsync((IHelpServer s) => s.GetEntityHelpService(t))));

                        foreach (var p in pairs)
                        {
                            SetHelpInfo(p.mi, types.Select(t => t.Operations.TryGetC(p.coc.OperationInfo.OperationSymbol)).NotNull().FirstOrDefault());
                        }
                    }
                }
            };

            helpButton.IsEnabled = true;
        }
Esempio n. 30
0
        static MenuItem SearchControl_GetCustomMenuItems(SearchControl seachControl)
        {
            if (!Navigator.IsViewable(typeof(UserQueryEntity)))
                return null;

            return UserQueryMenuItemConstructor.Construct(seachControl);
        }
Esempio n. 31
0
 public SocketFilterControl(object parent)
 {
     Parent         = parent as SearchControl;
     HideContentCMD = new RelayCommand(HideContent);
 }
Esempio n. 32
0
        internal static void ToSearchControl(UserQueryEntity uq, SearchControl searchControl)
        {
            var filters = uq.WithoutFilters ? searchControl.FilterOptions.ToList() :
                 searchControl.FilterOptions.Where(f => f.Frozen).Concat(uq.Filters.Select(qf => new FilterOption
             {
                 ColumnName = qf.Token.Token.FullKey(),
                 Operation = qf.Operation,
                 Value = Signum.Entities.UserAssets.FilterValueConverter.Parse(qf.ValueString, qf.Token.Token.Type, qf.Operation.IsList())
             })).ToList();

            var columns = uq.Columns.Select(qc => new ColumnOption
            {
                ColumnName = qc.Token.Token.FullKey(),
                DisplayName = qc.DisplayName.DefaultText(null)
            }).ToList();

            var orders = uq.Orders.Select(of => new OrderOption
            {
                ColumnName = of.Token.Token.FullKey(),
                OrderType = of.OrderType,
            }).ToList();

            var pagination = uq.GetPagination() ?? Finder.GetQuerySettings(searchControl.QueryName).Pagination ?? FindOptions.DefaultPagination;

            searchControl.Reinitialize(filters, columns, uq.ColumnsMode, orders, pagination);
        }
Esempio n. 33
0
 /// <summary>
 /// Required meTechHidraulics_ERP_CRMod for Designer support - do not modify
 /// TechHidraulics_ERP_CRMe contents of TechHidraulics_ERP_CRMis meTechHidraulics_ERP_CRMod wiTechHidraulics_ERP_CRM TechHidraulics_ERP_CRMe code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.xtraTabControl1      = new DevExpress.XtraTab.XtraTabControl();
     this.xtraTabPage1         = new DevExpress.XtraTab.XtraTabPage();
     this.searchControl1       = new DevExpress.XtraEditors.SearchControl();
     this.gridServiciosBasicos = new DevExpress.XtraGrid.GridControl();
     this.viewServicio         = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn1          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn2          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn4          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn5          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.gridColumn6          = new DevExpress.XtraGrid.Columns.GridColumn();
     this.xtraTabPage2         = new DevExpress.XtraTab.XtraTabPage();
     this.gridControl1         = new DevExpress.XtraGrid.GridControl();
     this.gridView2            = new DevExpress.XtraGrid.Views.Grid.GridView();
     this.gridColumn3          = 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.btnCancelar          = new DevExpress.XtraEditors.SimpleButton();
     this.btnAceptar           = new DevExpress.XtraEditors.SimpleButton();
     this.txtCantidad          = new DevExpress.XtraEditors.TextEdit();
     this.labelControl13       = new DevExpress.XtraEditors.LabelControl();
     ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
     this.xtraTabControl1.SuspendLayout();
     this.xtraTabPage1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.searchControl1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridServiciosBasicos)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.viewServicio)).BeginInit();
     this.xtraTabPage2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtCantidad.Properties)).BeginInit();
     this.SuspendLayout();
     //
     // xtraTabControl1
     //
     this.xtraTabControl1.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.xtraTabControl1.Location        = new System.Drawing.Point(23, 30);
     this.xtraTabControl1.Name            = "xtraTabControl1";
     this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
     this.xtraTabControl1.Size            = new System.Drawing.Size(983, 564);
     this.xtraTabControl1.TabIndex        = 44;
     this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
         this.xtraTabPage1,
         this.xtraTabPage2
     });
     //
     // xtraTabPage1
     //
     this.xtraTabPage1.Controls.Add(this.searchControl1);
     this.xtraTabPage1.Controls.Add(this.gridServiciosBasicos);
     this.xtraTabPage1.Name = "xtraTabPage1";
     this.xtraTabPage1.Size = new System.Drawing.Size(977, 536);
     this.xtraTabPage1.Text = "Servicios basicos";
     //
     // searchControl1
     //
     this.searchControl1.Client   = this.gridServiciosBasicos;
     this.searchControl1.Location = new System.Drawing.Point(25, 17);
     this.searchControl1.Name     = "searchControl1";
     this.searchControl1.Properties.Appearance.Font            = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.searchControl1.Properties.Appearance.Options.UseFont = true;
     this.searchControl1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Repository.ClearButton(),
         new DevExpress.XtraEditors.Repository.SearchButton()
     });
     this.searchControl1.Properties.Client = this.gridServiciosBasicos;
     this.searchControl1.Size     = new System.Drawing.Size(183, 24);
     this.searchControl1.TabIndex = 37;
     //
     // gridServiciosBasicos
     //
     this.gridServiciosBasicos.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.gridServiciosBasicos.Location = new System.Drawing.Point(25, 54);
     this.gridServiciosBasicos.MainView = this.viewServicio;
     this.gridServiciosBasicos.Name     = "gridServiciosBasicos";
     this.gridServiciosBasicos.Size     = new System.Drawing.Size(929, 456);
     this.gridServiciosBasicos.TabIndex = 36;
     this.gridServiciosBasicos.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.viewServicio
     });
     //
     // viewServicio
     //
     this.viewServicio.Appearance.HeaderPanel.Font            = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.viewServicio.Appearance.HeaderPanel.Options.UseFont = true;
     this.viewServicio.ColumnPanelRowHeight = 30;
     this.viewServicio.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
         this.gridColumn1,
         this.gridColumn2,
         this.gridColumn4,
         this.gridColumn5,
         this.gridColumn6
     });
     this.viewServicio.CustomizationFormBounds = new System.Drawing.Rectangle(709, 569, 216, 253);
     this.viewServicio.FocusRectStyle          = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     this.viewServicio.GridControl             = this.gridServiciosBasicos;
     this.viewServicio.Name = "viewServicio";
     this.viewServicio.OptionsBehavior.Editable = false;
     this.viewServicio.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.viewServicio.OptionsView.ShowGroupPanel = false;
     this.viewServicio.RowHeight    = 30;
     this.viewServicio.DoubleClick += new System.EventHandler(this.viewServicio_DoubleClick);
     //
     // gridColumn1
     //
     this.gridColumn1.AppearanceCell.Font                     = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn1.AppearanceCell.Options.UseFont          = true;
     this.gridColumn1.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn1.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn1.Caption      = "ID";
     this.gridColumn1.FieldName    = "id_servicio";
     this.gridColumn1.Name         = "gridColumn1";
     this.gridColumn1.Visible      = true;
     this.gridColumn1.VisibleIndex = 0;
     this.gridColumn1.Width        = 55;
     //
     // gridColumn2
     //
     this.gridColumn2.AppearanceCell.Font                     = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn2.AppearanceCell.Options.UseFont          = true;
     this.gridColumn2.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn2.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn2.Caption      = "Servicio";
     this.gridColumn2.FieldName    = "nombre";
     this.gridColumn2.Name         = "gridColumn2";
     this.gridColumn2.Visible      = true;
     this.gridColumn2.VisibleIndex = 1;
     this.gridColumn2.Width        = 338;
     //
     // gridColumn4
     //
     this.gridColumn4.AppearanceCell.Font                     = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn4.AppearanceCell.Options.UseFont          = true;
     this.gridColumn4.AppearanceCell.Options.UseTextOptions   = true;
     this.gridColumn4.AppearanceCell.TextOptions.HAlignment   = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn4.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn4.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn4.Caption      = "Costo MO";
     this.gridColumn4.FieldName    = "costo_mo";
     this.gridColumn4.Name         = "gridColumn4";
     this.gridColumn4.Visible      = true;
     this.gridColumn4.VisibleIndex = 2;
     this.gridColumn4.Width        = 139;
     //
     // gridColumn5
     //
     this.gridColumn5.AppearanceCell.Font                     = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn5.AppearanceCell.Options.UseFont          = true;
     this.gridColumn5.AppearanceCell.Options.UseTextOptions   = true;
     this.gridColumn5.AppearanceCell.TextOptions.HAlignment   = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn5.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn5.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn5.Caption      = "Costo Articulos ";
     this.gridColumn5.FieldName    = "costo_articulo";
     this.gridColumn5.Name         = "gridColumn5";
     this.gridColumn5.Visible      = true;
     this.gridColumn5.VisibleIndex = 3;
     this.gridColumn5.Width        = 139;
     //
     // gridColumn6
     //
     this.gridColumn6.AppearanceCell.Font                     = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn6.AppearanceCell.Options.UseFont          = true;
     this.gridColumn6.AppearanceCell.Options.UseTextOptions   = true;
     this.gridColumn6.AppearanceCell.TextOptions.HAlignment   = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn6.AppearanceHeader.Options.UseTextOptions = true;
     this.gridColumn6.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.gridColumn6.Caption      = "Costo Total";
     this.gridColumn6.FieldName    = "costo_total";
     this.gridColumn6.Name         = "gridColumn6";
     this.gridColumn6.Visible      = true;
     this.gridColumn6.VisibleIndex = 4;
     this.gridColumn6.Width        = 152;
     //
     // xtraTabPage2
     //
     this.xtraTabPage2.Controls.Add(this.gridControl1);
     this.xtraTabPage2.Name        = "xtraTabPage2";
     this.xtraTabPage2.PageEnabled = false;
     this.xtraTabPage2.PageVisible = false;
     this.xtraTabPage2.Size        = new System.Drawing.Size(977, 522);
     this.xtraTabPage2.Text        = "Servicios compuestos";
     //
     // gridControl1
     //
     this.gridControl1.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.gridControl1.Location = new System.Drawing.Point(25, 18);
     this.gridControl1.MainView = this.gridView2;
     this.gridControl1.Name     = "gridControl1";
     this.gridControl1.Size     = new System.Drawing.Size(923, 430);
     this.gridControl1.TabIndex = 38;
     this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
         this.gridView2
     });
     //
     // gridView2
     //
     this.gridView2.Appearance.HeaderPanel.Font            = new System.Drawing.Font("Segoe UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridView2.Appearance.HeaderPanel.Options.UseFont = true;
     this.gridView2.ColumnPanelRowHeight = 30;
     this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
         this.gridColumn3,
         this.gridColumn7,
         this.gridColumn8,
         this.gridColumn9,
         this.gridColumn10,
         this.gridColumn11
     });
     this.gridView2.CustomizationFormBounds = new System.Drawing.Rectangle(709, 569, 216, 253);
     this.gridView2.FocusRectStyle          = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
     this.gridView2.GridControl             = this.gridControl1;
     this.gridView2.Name = "gridView2";
     this.gridView2.OptionsBehavior.Editable = false;
     this.gridView2.OptionsSelection.EnableAppearanceFocusedCell = false;
     this.gridView2.OptionsView.ShowGroupPanel = false;
     this.gridView2.RowHeight = 30;
     //
     // gridColumn3
     //
     this.gridColumn3.AppearanceCell.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn3.AppearanceCell.Options.UseFont = true;
     this.gridColumn3.Caption      = "ID";
     this.gridColumn3.FieldName    = "id_servicio";
     this.gridColumn3.Name         = "gridColumn3";
     this.gridColumn3.Visible      = true;
     this.gridColumn3.VisibleIndex = 0;
     this.gridColumn3.Width        = 31;
     //
     // gridColumn7
     //
     this.gridColumn7.AppearanceCell.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn7.AppearanceCell.Options.UseFont = true;
     this.gridColumn7.Caption      = "Servicio";
     this.gridColumn7.FieldName    = "nombre";
     this.gridColumn7.Name         = "gridColumn7";
     this.gridColumn7.Visible      = true;
     this.gridColumn7.VisibleIndex = 1;
     this.gridColumn7.Width        = 131;
     //
     // gridColumn8
     //
     this.gridColumn8.AppearanceCell.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn8.AppearanceCell.Options.UseFont = true;
     this.gridColumn8.Caption      = "Costo MO";
     this.gridColumn8.FieldName    = "costo_mo";
     this.gridColumn8.Name         = "gridColumn8";
     this.gridColumn8.Visible      = true;
     this.gridColumn8.VisibleIndex = 2;
     this.gridColumn8.Width        = 81;
     //
     // gridColumn9
     //
     this.gridColumn9.AppearanceCell.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn9.AppearanceCell.Options.UseFont = true;
     this.gridColumn9.Caption      = "Costo Articulos";
     this.gridColumn9.FieldName    = "costo_articulo";
     this.gridColumn9.Name         = "gridColumn9";
     this.gridColumn9.Visible      = true;
     this.gridColumn9.VisibleIndex = 3;
     this.gridColumn9.Width        = 81;
     //
     // gridColumn10
     //
     this.gridColumn10.AppearanceCell.Font            = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gridColumn10.AppearanceCell.Options.UseFont = true;
     this.gridColumn10.Caption      = "Costo Total";
     this.gridColumn10.Name         = "gridColumn10";
     this.gridColumn10.Visible      = true;
     this.gridColumn10.VisibleIndex = 4;
     this.gridColumn10.Width        = 87;
     //
     // gridColumn11
     //
     this.gridColumn11.Caption      = "# Subservicios";
     this.gridColumn11.Name         = "gridColumn11";
     this.gridColumn11.Visible      = true;
     this.gridColumn11.VisibleIndex = 5;
     //
     // btnCancelar
     //
     this.btnCancelar.Anchor                            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancelar.Appearance.Font                   = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnCancelar.Appearance.Options.UseFont        = true;
     this.btnCancelar.Appearance.Options.UseTextOptions = true;
     this.btnCancelar.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
     this.btnCancelar.DialogResult                      = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancelar.ImageLocation                     = DevExpress.XtraEditors.ImageLocation.MiddleRight;
     this.btnCancelar.Location                          = new System.Drawing.Point(798, 647);
     this.btnCancelar.Name            = "btnCancelar";
     this.btnCancelar.Size            = new System.Drawing.Size(101, 30);
     this.btnCancelar.TabIndex        = 85;
     this.btnCancelar.Text            = "Cancelar";
     this.btnCancelar.ToolTip         = "Le permite al usuario añadir un nuevo articulo al Inventario.";
     this.btnCancelar.ToolTipIconType = DevExpress.Utils.ToolTipIconType.Information;
     this.btnCancelar.ToolTipTitle    = "Agregar";
     //
     // btnAceptar
     //
     this.btnAceptar.Anchor                            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnAceptar.Appearance.Font                   = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnAceptar.Appearance.Options.UseFont        = true;
     this.btnAceptar.Appearance.Options.UseTextOptions = true;
     this.btnAceptar.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
     this.btnAceptar.ImageLocation                     = DevExpress.XtraEditors.ImageLocation.MiddleRight;
     this.btnAceptar.Location                          = new System.Drawing.Point(905, 647);
     this.btnAceptar.Name            = "btnAceptar";
     this.btnAceptar.Size            = new System.Drawing.Size(101, 30);
     this.btnAceptar.TabIndex        = 86;
     this.btnAceptar.Text            = "Aceptar";
     this.btnAceptar.ToolTip         = "Le permite al usuario añadir un nuevo articulo al Inventario.";
     this.btnAceptar.ToolTipIconType = DevExpress.Utils.ToolTipIconType.Information;
     this.btnAceptar.ToolTipTitle    = "Agregar";
     this.btnAceptar.Click          += new System.EventHandler(this.btnAceptar_Click);
     //
     // txtCantidad
     //
     this.txtCantidad.EditValue = "1";
     this.txtCantidad.Location  = new System.Drawing.Point(911, 606);
     this.txtCantidad.Name      = "txtCantidad";
     this.txtCantidad.Properties.Appearance.Font                   = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtCantidad.Properties.Appearance.Options.UseFont        = true;
     this.txtCantidad.Properties.Appearance.Options.UseTextOptions = true;
     this.txtCantidad.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.txtCantidad.Properties.Mask.EditMask = "d";
     this.txtCantidad.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
     this.txtCantidad.Properties.Mask.UseMaskAsDisplayFormat = true;
     this.txtCantidad.Size              = new System.Drawing.Size(90, 24);
     this.txtCantidad.TabIndex          = 87;
     this.txtCantidad.Visible           = false;
     this.txtCantidad.EditValueChanged += new System.EventHandler(this.txtCantidad_EditValueChanged);
     //
     // labelControl13
     //
     this.labelControl13.Appearance.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelControl13.Location        = new System.Drawing.Point(835, 609);
     this.labelControl13.Name            = "labelControl13";
     this.labelControl13.Size            = new System.Drawing.Size(59, 18);
     this.labelControl13.TabIndex        = 88;
     this.labelControl13.Text            = "Cantidad:";
     this.labelControl13.Visible         = false;
     //
     // FrmBuscarServicios
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1037, 712);
     this.Controls.Add(this.txtCantidad);
     this.Controls.Add(this.labelControl13);
     this.Controls.Add(this.btnCancelar);
     this.Controls.Add(this.btnAceptar);
     this.Controls.Add(this.xtraTabControl1);
     this.Name  = "FrmBuscarServicios";
     this.Text  = "Buscar servicio";
     this.Load += new System.EventHandler(this.frmBuscarServicios_Load);
     ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
     this.xtraTabControl1.ResumeLayout(false);
     this.xtraTabPage1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.searchControl1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridServiciosBasicos)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.viewServicio)).EndInit();
     this.xtraTabPage2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtCantidad.Properties)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }