I have modified the scrollable example to use Rachel Lim's VMMV navigation example and to fetch data from our database. I have also moved some code-behind logic to VM. Everything works fine with LiveCharts.ChartValues, but when using LiveCharts.Geared.GearedValues the library crashes when zoomed in/out to specific point. The data has [...] read more
I am new with .net! I have two gridviews connected to a large database. The first one is returning a list of issues searched by ID while the other is returning the issues searched by subject. I am trying to get the ID from the gridview returning issues from a [...] read more
I started to get familiar with ml.Net, especially in context of image classification with a pretrained TensorFlow model. The existing example (https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/getting-started/DeepLearning_ImageClassification_TensorFlow) for that task is working fine. I also managed to adapt it to use an image from memory instead of loading it in pipeline. The next step is [...] read more
I have the following code: Oracle.ManagedDataAccess.Client.OracleParameter p; // create p p.DbType = DbType.DateTimeOffset This is throwing: > System.ArgumentOutOfRangeException HResult=0x80131502 > Message=Specified argument was out of the range of valid values. > Source=Oracle.ManagedDataAccess StackTrace: at > Oracle.ManagedDataAccess.Client.OracleParameter.set_DbType(DbType value) at > WindwardReportsDrivers.net.windward.datasource.ado.AdoQueryHelper.setParameter(IDbCommand > cmd, Int32 varNum, Object item) in > C:\git\Jen_2\engine\DotNetEngine\WindwardReportsDrivers\net\windward\datasource\ado\AdoQueryHelper.cs:line > [...] read more
Hi I have a USB RFID Reader/Writer with name "Silicon labs CP210x", I develop a windows app with C# in Visual studio 2015 that could Read/Write on RFID Card, its worked fine... I change my Windows on my notebook (prev Windows and new Windows are Windows 10) and install Visual [...] read more
When I'm running this code: for(int i=0; i<list.Count; i++) { if (list[i].Text.Equals(pid)) { //.... } } I get an error 'index out of bounds', but when using the debugger I can see that: list.Count = 56 i=55 What's causing this error? it seems illogical. Edit: As requested, a more detailed [...] read more
I have a WCF Service which has a contract like this: (the operation contract is OneWay) [ServiceContract()] public interface IEmpUpdate { [OperationContract(IsOneWay = true)] void SendEmpUpdate(int _empid); } I have to call this SendEmpUpdate method from a COM DLL. I searched in the web and found some examples but that [...] read more
I'm getting inconsistent/error results for a Regex MatchCollection using C#; In my first example, the MatchCollection works. Here is the code that works. string temp1 = "<td nowrap CLASS=\"sportPicksBorderL2\" style=\"width: 150px;\"> \n<B>deGrom, J</B> \n</td>"; Match inputa = Regex.Match(temp1, @"<B>(.*?)</B>", RegexOptions.IgnoreCase); MatchCollection inputb = Regex.Matches(temp1, @"<B>(.*?)</B>", RegexOptions.IgnoreCase); string result1 = inputb[0].Groups[1].Value.ToString(); // Value="deGrom, [...] read more
Here is my problem : i'm working with some ComboBox in my WPF app, and I want to fill them with ComboBoxItemPlus, which are basicly ComboBoxItem with a few more properties in order to link them with data more easily. My problem is that I want to fill these ComboBox [...] read more
As per Socradata.com suggest, I have created both and an Application Token and an Application Key. When I query using a Soda.net Click using the App Token and username and password like this: var client = new SodaClient(sodaHost, sodaAppToken, user, pwd); var soql = new SoqlQuery().Select("draw_date", "winning_numbers", "mega_ball", "multiplier").Where("draw_date > [...] read more
I'm using DataGrid to display a custom collection PersonCollection : List<Person>, INotifyCollectionChanged (just learning WPF with painful examples from a book). The program works if I add items to an initially empty collection, and also when I remove items from a collection created with several items. In those cases the [...] read more
I have a DataGridView. I try to add rows to it by cloning the add-new-row row. When I add a row, I set some of the values of its cells. I try to access the DataGridViewCell instances by the Name of their column. Before the UI is shown, I do [...] read more
Using the Open Xml SDK, I added a DrawingsPart to a WorksheetPart and then later I tried referencing the DrawingsPart from within the WorksheetPart but I receive an ArgumentOutOfRangeException. Here is the relevant snippet of code: // Add a new drawings part to the worksheet var drawingsPart = worksheetPart.AddNewPart<DrawingsPart>(); // [...] read more
This is my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DuyuTekStokApp { public partial class StockCard : Form { //SqlConnection connect = new SqlConnection("Data Source = (localdb)\\MSSQLLocalDB; AttachDbFilename=|DataDirectory|StockControl.mdf; Integrated Security = True"); SqlConnection [...] read more
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace RNG { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Adjective f1 = new Adjective(); textBox1.Text = f1.RandomString(); } private [...] read more
I am trying to use an internal plugin (organisation specific) for some task implementation, in order to call the methods through plugin I need to pass the dependencies. I am done with the initial part but when I try to register in PreAppStart using: config.For<IServiceProvider>().Use<ServiceProvider>() I get below error: System.ArgumentOutOfRangeException [...] read more
I've got a string of data that I am trying to parse so that they can be stored into a database. A sample of the data is shown below: > Finish@Store@000019411:02:48.499 1 0C 138D71802103D@000080211:03:16.530 1 0F > 138D81802102B@000088211:04:10.546 1 0D 138D918021034@000023011:04:45.809 1 0F > 138DA1802103B@000019411:04:47.202 1 08 238DB1802102D@000025111:05:51.550 1 0F [...] read more