« first day (551 days earlier)      last day (3598 days later) » 
00:00 - 19:0019:00 - 00:00

7:20 PM
are there specific times that you remember that it wouldn't?
 
It is Microsoft, you can't predict :X
 
7:35 PM
@NETscape IIRC its just certain control types that had problems, or if it was in a template doing the binding, or something like that
it works most of the time
 
85% of the time it works every time.
 
and 15% of the time always works sometimes ?
 
7:50 PM
wow, if you have MS Word > Print page open, then open up control panel and add a printer, the printer is added to the list when you use the combobox. Safe to assume they just get the printers every time the combobox is opened?
 
Probably from a XML in some system32 folder
 
so you agree :p
assuming thats how these print classes are implemented
the other option would be some type of message MSWord is looking for to see if a printer was added I guess
 
Now that I'm thinking..
It might be contained in the regedit
Most probably there
Because it is less vulnerable to stupid users
Does that make sense to you ?
 
8:20 PM
framework provides functionality to get printers, so nevermind :)
 
Still, they need to retrieve from somewhere
It doesn't magically updates the DLL with the content inside
 
right, instead the printer driver gets installed and provides all that information, probably by writing it to a xml file since it seems printing relies heavily on xml
it would be a mixture.
 
8:52 PM
@ReedCopsey would you say stackoverflow.com/questions/4672867/… is the correct way to show different content when an item is currently selected?
 
lll
9:07 PM
I may not be @ReedCopsey but @NETscape that is the correct way to do it.
 
thx =D
@lll do you mean the guys own solution or the marked answer?
 
lll
9:26 PM
@NETscape Personally, I like the guys own solution as it can be reused in other ComboBox controls that needs the same functionality and is flexible compared to the marked answer. Just my opinion though.
 
that's what i was thinking too
 
10:27 PM
Ok, I finally can come back to the freaking project I was in
Anyone familiar with operator declaration?
 
10:57 PM
@NETscape It's a reasonable way to approach it
@AndréSilva in C#?
 
Yep
I'm still struggling with this
        public Layout(DataRow Layout)
        {
            if (Layout.Table.Columns.Contains(registro))
                _registro = Convert.ToString(Layout[registro]);

            if (Layout.Table.Columns.Contains(ordem))
                _ordem = Convert.ToInt16(Layout[ordem]);

            if (Layout.Table.Columns.Contains(campo))
                _campo = Convert.ToString(Layout[campo]);

            if (Layout.Table.Columns.Contains(inicio))
                _inicio = Convert.ToInt16(Layout[inicio]);
I discovered why that is happening
But I don't know how to solve it
The user defined operator conversion doesn't understand when I try to parse an object to my conversion
Have any idea? :X
 
how are you using it?
the calling code is probably the one you have to change
 
I was using it here: _formato = Layout[formato] as Formato;
But I was doing some nonsense :X
I changed it
It is working now, I just extended my class so it contains a ToMyClass()
 
You need to explicitly cast
 
explicit = (MyClass)myObject ?
 
11:10 PM
but I usually suggest avoiding operators in general
better to use a custom constructor to build it
much more clear and maintainable
 
            if (Layout.Table.Columns.Contains(formato))
                _formato = Layout[formato].ToFormato();
        }

    }

    public static class Formato
    {

        public static FormatoDIPJ ToFormato(this object Formato)
        {
            switch (Formato.ToString())
            {
                case "X":
                case "XN":
                    return FormatoDIPJ.Alfanumerico;
                case "N":
                    return FormatoDIPJ.Numerico;
                case "Branco":
;p Yeah, I gave up on operators, no need to do it
 
11:23 PM
Andre, up for some diablos?
 
I'm at work right now :X
Soon I might go home
Since the manager did not give me any test files, and I won't make my own because I'd leave at 2am
 
D3 @Billdr? @Reed what would you say is the correct way, or the way you would do it?
 
correct way for?
 
11:42 PM
anyone got any good ways to wake yourself up
 
Redbull
Arrebite
I have no idea what it is called in english
Cocaine
Crack
Coffee
Enough sleep
 
lol, so you go from cocaine to coffee lol
 
._.
Yeah I went from the least addictive to the most addictive haha
 
ill try them all out
 
All at once ?
 
11:44 PM
exercise is always a good one, too
 
although I need to work at the same time so some may be problematic
 
I think they will understand it if you start using crack
God damnit @ReedCopsey
Your skill level is compared to beasts of C#
You exercise
Have a lovely family
Own a company
 
I don't exercise as much as I should anymore :(
that's one that's fallen through the cracks lately
 
But you do it
Teach me to be successful
 
00:00 - 19:0019:00 - 00:00

« first day (551 days earlier)      last day (3598 days later) »