MrShoes's Profile User Rating: -----

Reputation: 329 Architect
Active Posts:
515 (0.36 per day)
13-June 12
Profile Views:
Last Active:
User is offline Apr 14 2016 06:54 AM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:
Expert In:
Icon   MrShoes .Status == null

Posts I've Made

  1. In Topic: Technical Architect interview

    Posted 4 Aug 2015

    Interestingly, I was asked a very similar question, but more specific to my company. I laid down a long-term vision for the integration of multiple systems onto the same platform and the way that would shape and be shaped by the team. Anyway all the platitudes must have worked because I was given the promotion. I can't help wondering what would have happened if this was a dedicated software house with experienced developers interviewing me.
  2. In Topic: How to create an instance with parameters

    Posted 20 Jul 2015

    OK, to make things a little clearer, change the names of your parameters so they don't match the member names. It can reduce confusion.

    In your constructor, you're passing a variable of type PointF and you have a member variable named PointF. Don't you just want to set the member to be the variable passed in the constructor? Try this:

    public MyClass(PointF pos, Color color)
    position = pos; 
    myColor = color;

    You see what happened there? You passed some variables into a constructor and they get set as the instance's private members. What your code did was accept parameters, ignore them, and set the members to default values.
  3. In Topic: How to create an instance with parameters

    Posted 20 Jul 2015

    Yes. You don't have a constructor. That code actually won't compile, because of the method "myObject" which has no return type.

    If you change its signature to public MyClass(PointF position, Color myColor) then you have a constructor.

    However, in that method you accept a PointF named "position" but then look what you do with it. What do you think will happen on line 10?
  4. In Topic: WPF Conditional Binding

    Posted 5 May 2015

    There's a few ways to do this, but the easiest way I can think of is this: If using MVVM, you can bind the slider to a property in your VM. The get accessor for that property could then have a condition where it chooses the value to change based on the selected radiobutton. You could instead use triggers to set the binding in the view. This SO answer is a good, simple example.
  5. In Topic: Sorting at datagridview c#

    Posted 22 Apr 2015

    Why not try sorting the DataSource instead of the DataGridView? Is this Windows Forms or WPF? On a side note, your KeyPress event handling method "txt_proximity_KeyPress" has way too much going on, you should consider separating it into a method in case it needs using during another event later. Your naming conventions are a bit inconsistent too. NAMES_LIKE_THIS, for example, usually indicate constants by convention (also yuck, I hate it), but here it's used for a method.

My Information

Member Title:
D.I.C Addict
Age Unknown
December 19
United Kingdom
Full Name:
Ian Hughes
Programming Languages:
C, C++, C#, JavaScript, WPF, XAML, HTML, SQL, SAS, BASIC

Contact Information



Page 1 of 1
  1. Photo

    Michael26 Icon

    19 Jul 2013 - 23:16
    Congrats on promotion.
Page 1 of 1