« first day (2413 days earlier)      last day (2536 days later) » 

10:03 PM
@KamilSolecki Hrmm... I'm still banging my head on the keyboard.

Did you get the message I left you last night?
 
10:14 PM
Not sure
what was it?
 
Just a mo. On the phone. I'll find it and re-send it when I get off the phone.
 
@Sometowngeek I did it
gotta upload to github now
 
That was quick
Ok... I'm gonna look for that message
 
Its actually very easy
You will see in a second
also disclaimer:
Im using Fody.PropertyChanged for auto propertyChanged implementation
and MVVMLight for RelayCommand
 
21 hours ago, by Sometowngeek
@KamilSolecki It seems like I have to position everything in its place on the windows form and render them invisible.

On startup, one set of objects, lets say Inventory in this case, will fire up -- become visible.

When View >> Buildings is selected, the Inventory objects are made invisible again while Buildings are now visible.

Am I getting this right?
 
10:29 PM
Dont ever do that with visibility
1. Too much work
2. May fuk up the layout
3. There is a much better way using UserControls as Views
 
Hrmm.... ok
 
Just gimme a moment to upload it
 
Sure
 
@Sometowngeek
DL, open, look through and tell me what I should explain
 
Everything? :D
Kidding... I'll look :P
 
10:40 PM
:D
Btw I only made first 2 buttons working
 
Gonna be a little while... I have to fix the references
 
Just go into nuget packet manager
Delete the ones that are in there
Fody property changed and MVVM light
And redownload
Should work then
 
Umm... None of the references have been found, including Microsoft.CSharp
I know where they are.
 
what
how
 
Hrmm... What site do we use for posting images and passing links?
 
10:48 PM
next to the chatbox there is a button
upload
 
tfw you write a small helper method and then realise there's a more functional, fully featured library you could have used
 
tfw? O.o
 
the feeling when
 
oh... now I feel fossilized.
I'm old v_v
 
10:50 PM
meh
wordsand acronyms come so fast these days
im unsure when something is lit, or if it is fire. i have friends not a fam.
I know how my parents felt
 
@hsimah TLA FTW
 
I'm 29 now... When I was younger, I used to be well versed with acronyms.
 
31, I used to as well
now I am not so much
and my hair is thinning
so woo
 
Hair shmair...
Bald people are awesome nowadays! :D
Just beat the thinning with your razor blades and shave it down. :)
 
@Sometowngeek oke.. you have .net 4.5?
 
10:52 PM
I look like a freak with no hair
 
Yep
You do? O.o
 
@KendallFrey halp
how its possible
 
I am hoping to end up looking like Picard
 
that he didnt get the project references
 
10:53 PM
..
Thanx kendoll much halp :D
 
I could've just built it... See @hsimah, I'm a fossil already :P
 
Anyone want to help me write code to make one of these?
 
@KendallFrey would you mind DLing the project and seeing if it works for you?
 
yeah I would mind
 
10:55 PM
@KamilSolecki I actually figured it out... Just had to build it.
 
@Sometowngeek LOL
@KendallFrey oke what is the thing you wanna write
ive done some 3d stuff in the past
 
I'm making a thing to convert a bitmap image of the maze into a STL file
 
for 3D printing?*
 
that a big project.
 
10:59 PM
nah
 
But sure, I can collab
 
An evening or two
I don't need help, I just thought it would be nice to write some code with someone
 
its basically grayscaling -> height map, roight?
 
I guess that's what it'll be
though probably just checking for black/white
 
one thing bothers me tho
As the ones yo showed need multiple images
 
11:03 PM
No, I only need one
 
composing and combining them might not be that easy
ah oke
 
why would you need multiple?
 
well if you have a full 3d object with a maze all around it
and a pic of one side only
then you gon create only one side :D
 
it's a cylindrical geometry
 
11:04 PM
tiling, effectively
 
Ye I just assumed that it would be different ex. on the other side of the cylinder
@Sometowngeek hows it goin>
 
Getting there...
 
Anything that needs clarification?
 
Right now, I'm just trying to connect the pieces.

I don't know where this is coming from:

using PropertyChanged;
With XAML, Window.Resources is basically defining the templates of the objects we use in the given window, right?
 
This is Fody.PropertyChanged
 
11:14 PM
Ah ok
 
an addon that automatically implements propertychanged for you
so you just write a property like this public MyProp {get; set;}
and this gets compiled:
private int myVar;

        public int MyProperty
        {
            get { return myVar; }
            set
            {
                myVar = value;
                OnPropertyChanged();
            }
        }
 
my projects didnt save wtf
 
also adds InotifyPropertyChanged to your class
 
how do i recover the code?
 
@Halie o7
 
11:17 PM
yesterday i worked on a console app and the changes didnt save but yet i debugged wtf
i thought debugging auto-saves
 
it does
BUT
if you choose build and debug
if you just debug then it debugs the last stable build
although build & debug is default
You would have to change that in config for that to happen, which I assume is unlikely
 
ugh i lost my code
ugh i really dont want to do it again
 
For the future, just molest Ctrl + Shift + S as often as possible :D
 
Caution, @KamilSolecki's suggestion saves all open files.
including the solution file itself if it exists.
 
@Sometowngeek btw, does it work like you wanted it to? (the code)
 
11:22 PM
@KamilSolecki yeah it does.
Drat... don't remember the shortcuts.
Thank you for putting that together. I'm still trying to understand how it works.

I think what's throwing me off is the Grid.
 
What about it?
 
and XAML in general.
 
tell me what you dont get, Ill explain
 
XAML is new to me, so I'm trying to understand it. With the Grid, I don't know what goes where.
 
Are WPF questions okay here?
 
11:24 PM
@NickAlexeev sure
 
You could...
If it's C# related :D
 
@Sometowngeek okay, so lets start from the beggining
 
I don't think we'll bite too hard if it's VB
 
Window is obvious
 
11:25 PM
Grid is basically a layout control
It could be any of the layout controls, really
Grid is just the most flexible of them all, and in that situation - the best
Layout controls have one thing in common
 
I'd like to create a WPF command. But all tutorials say that I need to create a static class for that. At the same time, static is ill advised from testability standpoint. Is there a way to create a custom WPF command without static ?
 
@NickAlexeev you mean Command as in ICommand?
 
@KamilSolecki Not sure... The kind of command that's described in this article.
 
@Sometowngeek they all can host children, meaning that grid can contain a multum of other elements
@NickAlexeev are you working with MVVM?
 
@KamilSolecki I'm working towards MVVM. Learning.
 
11:28 PM
Cause I dont see the point of putting all commands into a static class @NickAlexeev
Usually commands go into their respectable ViewModels
 
@KamilSolecki How could I find an example for that?
 
well lets start from the beggining @NickAlexeev
first
what is going to be your use for commands
because u linked a routedUICommand, which isnt what I was talking about
 
@KamilSolecki Menu and toolbar actions.
 
Then I reccomend you to make your life eaiser @NickAlexeev
and use RelayCommand from MVVMLight or DelegateCommand from Prism
 
11:31 PM
It threw me off when I saw the code block for buttons underneath the code block for DisplayViewModel
But I think I got it because the code block for the DVM has Grid.Row="1"
 
Exactly that. For cleaniness, Id normally pop that top bar code over the other
the way u said it
 
@KamilSolecki What's the principle of operation of that?
 
@NickAlexeev better link: mutzl.com/tag/mvvm-light
The idea is
That in your View
you have (for example):
<Button Margin="10" x:Name="ButtonHome" Command="{Binding Path=ShowHomeViewCommand}">
 
@KamilSolecki Ok I think I got it for now. I think.... I'm going to try it out in my solution and I'll let you know when I run into issues.
 
The Whole window in which the Button is has a ViewModel as DataContext (so the button inherits it from its parent)
in the viewModel u have the implementation for the command, as such:
public ICommand ShowHomeViewCommand { get { return new RelayCommand(setHomeViewModel, () => true); } }
setHomeViewModel can be replaced with any method you want.
 
11:36 PM
ok
 
So basically: you click button -> command is fired to VM, and the command executes a function @NickAlexeev
 
@KamilSolecki I see. But ShowHomeViewCommand could return my own command, in case I don't want to make my life easy.
 
I dont see a point of a command returning a command :D
 
Even IRL, it's a little odd for a command to return a command :P
 
@NickAlexeev is that what you meant? or can you rephrase?
 
11:38 PM
My stomach roars for food. Would it be cool if I grabbed food? Or will you be on tomorrow?
 
i jsut ate a bowl of porridge bigger than my head
 
Dang...
Vacuum style?
 
@Sometowngeek go get food :) I'm gonna play a game of lol rn
 
You play League of Legends? :D
 
Y, eune
 
11:40 PM
Damn... I forgot you're in EU region...
It would be fun to spectate a game
alrighty... bbl
 

« first day (2413 days earlier)      last day (2536 days later) »