Posts by pnet • 14,727 points
909 posts
-
0
votes1
answer299
viewsQ: Generate table automatically with c# and mvc
how to do the following (I don’t have code yet). On the page, I have a table with a Row and 5 Columns and at the end of Table a button (+) and at the bottom of the table a save button. The question…
-
0
votes2
answers107
viewsQ: Bring another field in group by
I have it var grupo = from item in aliquotaProduto group item by item.CFOP_ID into agrupamento select new { Categoria = agrupamento.Key, Quantidade = agrupamento.Count() }; I can bring an ID_PROD in…
-
-5
votes2
answers239
viewsQ: Group items within a foreach
I have an object that brings me a basket with several items. I need inside a foreach to group the items by nature of operation. How I do this? It’ll be something like this: Prod: 2345 Nat. Oper:…
-
-1
votes1
answer340
viewsQ: Error passing parameter to proc with Dapper
I got it inside a foreach: parameter.Add("@PROD", item.CDProduto); parameter.Add("@Filial", item.filial); parameter.Add("@Cod_Oper", cod_oper); var result =…
-
2
votes2
answers487
viewsQ: Take only the return value in a Dapper
A query returns this? var teste = _connection.Query(sQuery.ToString(), par).FirstOrDefault(); well, within the var test I have it: UF = "MA" but I just want the MA. How do I make Dapper return me…
-
1
votes1
answer2887
viewsQ: How to check the version of . net core and uninstall and reinstall another
I need to install the version of . net core 2.0. I need to know which version is installed and uninstall to install this one. How do I do this?
-
0
votes1
answer426
viewsQ: Add all my modified files per command line to bitbucket
I have a Solution with several projects. I made the appropriate changes and now I need to go up to the git(bitbucket). By Visual Studio 2017 is not going, I think my machine is bugged. So, I want to…
-
-5
votes1
answer473
viewsQ: My project not under in git is in the local branch
I created a branch and when I made my changes, everything was in the local branch. I can’t get up to the git repository. What to do? I downloaded the project again and kept a backup of the project…
-
0
votes1
answer269
viewsQ: I can’t clone a project through Git and Visual Studio 2017
When I try to clone a project inside Visual Studio 2017(Enterprise and Community - tried both), I have this mistake: Git process failed unexpectedly. Clonecommand.Executeclone I think it might be my…
-
2
votes1
answer1458
viewsQ: Product is a namespace but is used as a type
I have this error message: Product is a namespace but is used as a type It was working and when I arrived to compile, I’m picking up this error. How do I fix this?…
-
1
votes1
answer41
viewsQ: How to mount a message array and send to a Badrequest
I understood in the previous post the badrequest. I need to assemble a message for it as follows. If a commodity does not have a Serial Number, I must assemble a message and send it. Let’s say my…
-
0
votes1
answer228
viewsQ: Send Bad Request by REST
A method of mine takes the field value. If this field is null or zero, a Bad Request must be sent to the user indicating the field ID and stating that it cannot be null. This is a REST service. I am…
-
1
votes1
answer1038
viewsQ: I would like to understand what OLTP is
They asked me this question: What is OLTP? I ran home, opened google and started to "goolgar", so I came across these codes, who say they have problems in OLTP environments and I’m not understanding…
-
2
votes1
answer103
viewsQ: Center a label on a badge
I’m not able to center a label inside a badge. It seems that the label is outside the badge. See the code: <Grid xmlns="http://xamarin.com/schemas/2014/forms"…
-
0
votes1
answer121
viewsQ: When I charge my App class is not recognized
It says that Badeview does not exist in the current context in this line of sham.g.Cs [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")] private…
-
1
votes1
answer136
viewsQ: Create and show a badge on an Xamarin page
I use Xamarin.Forms(Net Standard) and am having difficulty creating a badge and showing its value. I have a page (Tabbed Page) that has a Grid with 8 cells. Each cell has an image and each image…
-
0
votes1
answer101
viewsA: How to create a hamburger menu with a Mainpage inheriting from Tabbedpage?
I resolved so: Application.Current.MainPage = new MasterDetailPage { Master = new Master(), Detail = new TabbedPage { Children = { new NavigationPage(new Indicadores()){ Title = "Indicadores"}, new…
-
1
votes1
answer101
viewsQ: How to create a hamburger menu with a Mainpage inheriting from Tabbedpage?
I’m having a hard time creating a menu hamburger because my MainPage inherits from TabbedPage. There is a way to do this with a TabbedPage? To create this menu, we usually create two new…
-
2
votes1
answer54
viewsQ: Popular the properties of a class
A question. Before the service returned values in the following signature: Planned/Accomplished, This made it much easier. Now the subscription has changed to this: { "CorIndicador":"VERMELHO",…
-
0
votes2
answers138
viewsQ: Popular class with json
I got this json coming from my service { "CorIndicador":"VERMELHO", "DadosIndicador":"{\"Previsto\":25784.686452608872,\"Realizado\":95258.9557949728}", "TipoIndicador":1 } And I got that class…
-
2
votes1
answer865
viewsQ: Changing the bar color of a Navigation page
I have it: public void Login_Clicked(object sender, EventArgs e) { LoginService svc = new LoginService(); LoginRS res = svc.Login(txtUsuario.Text, txtSenha.Text); if (res != null &&…
-
2
votes1
answer153
viewsQ: Enable navigationbar or create a panel on top of the Xamarin.form tabpage
I have this page (Tabbedpage) that creates two tabs: <?xml version="1.0" encoding="utf-8" ?> <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"…
-
-1
votes1
answer250
viewsQ: Replacing the csproj is a problem?
For the second time, man .csproj.user was detonated. I don’t know why this has happened or what can influence this file. Well, this is a new project I did, using the .Net Standard. When I open the…
-
-1
votes1
answer117
viewsA: Load image dynamically into a grid?
I resolved so: void OnTrocaImageTapGestureReconizerTapped(object sender, EventArgs e) { MyImage.Source = ImageSource.FromResource("Operacional.Images.fechar1.png"); }…
-
-1
votes1
answer117
viewsQ: Load image dynamically into a grid?
I have this shampoo: <StackLayout Spacing="10" Padding="10" VerticalOptions="Center" Grid.Row="3" Grid.Column="1" > <Image x:Name="MyImage" Source="{local:ImageResource…
-
3
votes2
answers1752
viewsQ: Is it possible to evaluate a ternary expression with 3 possible values?
Let’s say I have this account: var total = valor1 / valor2; The result could be three possible values, like: total > 5 total > 0 and total < 5 a positive value Note: They are percentage…
-
1
votes1
answer431
viewsQ: How to make a round button using Xamarin.Forms
This code is not working within a Grid as a layout <Button x:Name="btnTeste" Text="Click Me!!" Grid.Row="3" Grid.Column="1" BackgroundColor="Black" BorderRadius="50" HeightRequest="100"…
-
-2
votes1
answer59
viewsQ: Calculation of days comes negative. Why?
I did that: DateTime dt = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1); int dias = (int)dt.Subtract(DateTime.Today).TotalDays; If you make for today(26/01/2018) the result in var dias…
-
1
votes0
answers25
viewsQ: Using the Xamarin Live Player
I can’t run Xamarin Live Player. The live screen After loading the live screen, scanned the qrcode and insert in editbox After all this, nothing happens…
-
3
votes3
answers127
viewsQ: Make a code that brings values like this(1K, 1M or 2G)
My rule is: If a figure is in the thousands, I must present so: 1564 = 1K 345,786 = 345K 2345 = 2K The same goes for millions and so on. Well, the question is how to get only the values before the…
-
2
votes2
answers1026
viewsQ: The task "Xamarin.Forms.Build.Tasks.Gettasksabi" was not loaded from Assembly
That’s the mistake I’m taking: C: meu_caminho Packages Xamarin.Forms. 2.5.0.122203 build Portable-win+net45+wp80+win81+wpa81 Xamarin.Forms.Build.Tasks.dll. Confirm that the statement is correct, if…
-
0
votes1
answer105
viewsQ: Install Restsharp in PCL projects Xamarin.Forms
How do I install Restsharp in a PCL project (Xamarin.Forms). You are giving this error when installing: Unable to install 'Restsharp 106.3.0-alpha0002' package. You are trying to install this…
-
0
votes0
answers113
views -
-6
votes1
answer881
viewsQ: Turn a string into json
I need to mount this json from a string and pass as parameter: I did that: string s = "{\"Matriz\":12, \"Filial\":21}"; At the click of my button I have this: private void Click_Service(object…
-
0
votes0
answers503
viewsQ: Pass json format parameter to consume service post in app Xamarin.Forms
In my App I have this method to consume the service post (still writing the method): public async Task<string> PostIndicador(string jsonValue) { client = new HttpClient(); string url =…
-
-1
votes1
answer201
viewsQ: Extension method(Wait() and Status()) does not work
This is not working(just the Wait() and Status lines()) try { string url = $"http://localhost:2710/api/faturamento/{IdUsuario}/{IdGaragem}"; var uri = string.Format(url); var response = await…
-
2
votes1
answer791
views -
2
votes1
answer472
views -
0
votes1
answer72
viewsQ: Package installation
I needed to copy an entire class into my PCL project (Xamrin.Forms). And it’s giving error on three using which are: using System.Web; using System.Net.Sockets; using System.Security.Cryptography; I…
-
3
votes2
answers116
viewsQ: Is that a Property, class attribute or what?
I have it in my code: public ICommand ChangePositionCommand => new Command((obj) => { _positionIndex++; if (_positionIndex >= Positions.Count) _positionIndex = 0; Position =…
-
1
votes0
answers14
viewsQ: Add new csproj in Xamarin.Forms project
I need to create another csproj in my Solution Xamarin.Forms. Should I create another PCL? I think so. Create one of Windows I don’t think it works, right? I did it and came Buttons and etc. What do…
-
1
votes2
answers3822
viewsQ: Create my own Push mail server
To use PN (Push Notification) I usually make use of cloud servers such as Firebase, Azure, etc. Now I’ve picked up a service to do and my client demands that we have our own server. I saw this link…
-
2
votes1
answer176
viewsQ: Can I open VS2017 with a different user than the one placed in the installation?
Can I open VS2017 with a different user than the one placed in the installation? Because I’m trying to get in with a new user that I was given at the company. This new user is my user in AD and with…
-
0
votes0
answers646
viewsQ: I cannot access tfs by visual 2017(English)
I’m trying to access the TFS by VS2017 and I’m not getting it. The error says so: The server 'http://xx.xxx.x.xx:porta/tfs' TF30063 was not added. You are not authorized to access:…
-
3
votes1
answer8878
viewsQ: Generate table Insert script in sql server
Using Sql Server 2012. I made a query with the title above and did not bring anything in the search. I have a BD and need to take it elsewhere. Therefore, the best way is to generate a script of all…
-
-4
votes1
answer320
viewsQ: Doubt about using a model in the view
I have an entity called Request. I created in the Model folder a class that loads Orders, called Getpedidos. Well, when creating the controller, I added a view to Action Index. When I built the…
-
1
votes1
answer597
viewsQ: Design Standards: Singleton Design Standards
I know that the Singleton guarantees me a single instance of a given object. I understood this. What creates doubt would be its use in practice like this. Let’s assume the code below, using…
-
1
votes0
answers343
viewsQ: Bootstrap is not being rendered by _Layout
I have this layout page. This layout already came, I didn’t make it. I just don’t understand why it was created if I opted for a MVC Empty(Empty) project, but it’s not bothering me. <!DOCTYPE…
-
0
votes3
answers687
viewsQ: Bundleconfig.Cs is even needed
I’m reading something about MVC, Webapi and Angularjs. All the examples I got, whether from Macoratti or others ask to make some configuration in Bundleconfig.cs. However I use VS2017 and when…
-
0
votes1
answer134
viewsQ: Ado.Net and Entity in the same project
I took a test to do and it is mandatory to use Ado.Net, but it would be a differential the use of Entity. I’m a little confused about this. Ado.Net and Entity gives ball?