Search results for query: *

  1. S

    Resolved How to access an element from a non-sequential 2D array

    WOW! That was amazing, and I truly appreciate the time and effort you have put into helping me with this task. I need to admit that I have made a mistake by not mentioning that the text file containing the data is space delimited and terminated with a new line for each set. I have realized...
  2. S

    Resolved How to access an element from a non-sequential 2D array

    Confused:oops:. It is from the actual dataset. I copied the data from the file it it should be like for like.
  3. S

    Resolved How to access an element from a non-sequential 2D array

    Here is the code that worked for me so far. Basically, save the data to a text file with new line termination. I don't believe this is not the most efficient way because I'm a casual programmer. using System; using System.IO; using System.Collections.Generic; using System.Linq; using...
  4. S

    Resolved How to access an element from a non-sequential 2D array

    The angles do not need to be floating point numbers. It can be converted to integers. I believe it's a rare case that someone conducts a test in smaller steps.
  5. S

    Resolved How to access an element from a non-sequential 2D array

    Below is an extract from the actual dataset: 0.0 5.0 10.0 15.0 20.0 25.0 30.0 35.0 40.0 45.0 50.0 55.0 60.0 65.0 70.0 75.0 80.0 85.0 90.0 95.0 100.0 105.0 110.0 115.0 120.0 125.0 130.0 135.0 140.0 145.0 150.0 155.0 160.0 165.0 170.0 175.0 180.0 0.0 90.0 180.0 270.0 360.0 1400.734 1398.456...
  6. S

    Resolved How to access an element from a non-sequential 2D array

    Yes, testing angles can be vary on the testing laboratory.
  7. S

    Resolved How to access an element from a non-sequential 2D array

    Agree, I will try the method suggested by @Skydiver and use an expression to calculate angle intervals to size the array.
  8. S

    Resolved How to access an element from a non-sequential 2D array

    Thanks @Skydiver , I will try this. I need to check the performance of this method with the Dictionary method as well to see if the two methods will have significant performance differences.
  9. S

    Resolved How to access an element from a non-sequential 2D array

    No, the data is saved tab-delimited text file. Excel image to illustrate how the data should be arranged. I know how to import the measured angles for rows, columns and data into individual arrays/lists. It's about how finding a faster/easier way to search for the data referenced by row and col...
  10. S

    Resolved How to access an element from a non-sequential 2D array

    Your first option is not clear to me. Say, I want to access vertical angle (row) 50 and horizontal angle (col) 25. How would you go about a dataset similar to the one below? I just need clarification on the method, not the code.
  11. S

    Resolved How to access an element from a non-sequential 2D array

    Thanks for responding to my query @Skydiver , it's fast access. FYI, the angles of the measurements taken for both vertical and horizontal planes are written to the text file with the data itself. I am capable of extracting the data, but I need to know what's the fastest way to reference...
  12. S

    Resolved How to access an element from a non-sequential 2D array

    Hi All, This may sound stupid to you, as I'm a casual programmer. I have a two-dimensional array of values. Where rows are angles in decimal degrees, increments can be by 1 degree, 5 degrees even 10. Columns are also organized similar manner. I know how to access a generic two-dimensional...
  13. S

    Drawing arcs and lines on Polar chart.

    Following function adds series to the chart. and inside of a class. public Series AddSeriesToChart(string _SName, Color _SColour, string _cp1, string _cp2) { List<double> _cp1List = new List<double>(); List<double> _GAL1 = GA.ToList(); _cp1List =...
  14. S

    Drawing arcs and lines on Polar chart.

    I have done most of the coding except for this drawing part on the polar chart. I even can draw the two lines using two series that goes through the calculated points. But not sure if that’s the best way of doing it. I’m not a pro programmer. I can post my code if you please.
  15. S

    Drawing arcs and lines on Polar chart.

    Hi All, Another questions related to Polar chart control. I want to draw two lines crossing certain values in polar chart and calculate the angle between line, then plot arc to indicate the angle and text to indicate value of the angle. how can I do this. any help much appriciated. Cheers.
  16. S

    Question How to catch error from class and stop from loading

    Hi jmcilinney, Thanks for the reply but I quite don't understand this. say I have the following. User Clicks the MDI parent menu to open the file. And file link is passed to Class to read it's content and error checking. Class finds an issue with the file and then wants to terminate loading...
  17. S

    Question How to catch error from class and stop from loading

    Hi All, I have a class dedicated to reading file contents and I want my MDI child from to stop loading (say when the user opens the file from file menu) if this class throws an exception (ie. file contains a null value). how can this be done? If there is a easy way, I can catch all errors...
  18. S

    Question Help with Polar Chart.

    Hi jmcilhinney, Thanks for the reply. is there any free controls you can recommend?
  19. S

    Question Help with Polar Chart.

    HI All, I am new C# and most of the time I find my answers to my C# problems through Google but unfortunately I couldn't find any related materiel for this problem. I hope someone can guide me in the right direction. Problem: I am building a small application (WinForms - Chart Control) which...
Back
Top Bottom