« first day (2024 days earlier)      last day (2923 days later) » 

6:00 PM
There I typed in the userPWD from the publish Information and the Password / (also tried to let it blank)
the username^^
@misha130
 
this isnt how my help looks
is this app services maybe?
 
How can you open a ViewModel from another ViewModel
like
MyViewModel mvm = new MyViewModel();
it is possible? Respecting MVVM?
 
6:18 PM
@Antoine you cann pass your viewmodel as a parameter
 
Matthias can you explain better? I'm doing a webservice request
 
 public ViewModel(OtherViewModel otherViewmodel)
        {

        }
 
if that webservice is ok I want to open a newViewModel
public class MainViewModel{

public login(){
var result = xpto.webservice();
if(result == OK){ NewViewModel nvm = NewViewModel()}
}
}
 
Hello
just a quick question of my understanding: when C# talks about roslyn as a compiler as a service, isnt it the same as llvm/clang for c++?
 
@MatthiasHerrmann see my answer plz. Represents the behaviour I want to implement
 
6:22 PM
@Serthy what do you mean by 'the same'?
 
like in 'the same principle'? as you could also use the clang source in your projects etc and use its compiler capabilities. I just trying to understand what compiler as a service makes it so much kind of special
besides the fact that its a hell lot easier/faster and more kind of dynamic in c# to hook things up this way
 
@Antoine You want to bind on that page to the new viewmodel?
You can add the new viewmodel to the page resources and Change the datacontext of your page to it
 
@MatthiasHerrmann I know how to change pages in XAML(using datacontext) but I want to do that in a function in the ViewModel
 
@Antoine w8 a sec, I'm trying to implement that in visual studio
 
@MatthiasHerrmann Thanks man :)
 
Sie
6:32 PM
Probably a stupid question but I am struggling to understand this. The compiler is complaining that an object ref. is needed for a non-static method. How do I give it the reference?
 
@Antoine still on it I guess I Need 5 more minutes
 
@MatthiasHerrmann still here :)
 
@Sie post a code snippet
 
Sie
:30273902             private void button_Click(object sender, RoutedEventArgs e)
            {
                IMeasuringDevice_Helper.MetricValueGenerator();
            }

            private int limit;

            public void MetricValueGenerator()
            {
                List<int> MetricValueGenerated = new List<int>();

                Random rnd = new Random();
                int rndINT = rnd.Next(1, 10);

                if (limit != 10)
                {
                    //do crap
 
nice do crap comment
 
Sie
6:37 PM
Lol. Still need to implement the looping function.
 
is IMeasuringDevice_Helper an object?
is it the same class as the button click?
 
Sie
@misha130 No it's not. The button click event is in the MainWindow.cs class and the other method is it's own class.
 
@Serthy oh I see, well yes I suppose so
 
Sie
I think this may work...
 
is IMeasuringDevice_Helper an interface?
 
6:39 PM
@Antoine got it
 
well since its a helper class you could just make IMeasuringDevice_Helper a static class
 
'compiler as a service' means like, you can hook into the compilation as it runs and get out structural information about the program
 
Sie
@misha130 No. I don't really understand the purpose of interfaces. As far I know they are for storing values and such. Still need to learn more about them.
66
A: How do I call a non-static method from a static method in C#?

tvanfossonYou'll need to create an instance of the class and invoke the method on it. public class Foo { public void Data1() { } public static void Data2() { Foo foo = new Foo(); foo.Data1(); } }

 
@MatthiasHerrmann i'm curious to see your approach :)
 
I am asking because ISomeClassName is usually an interface
you can do new IMeasuringDevice_Helper().Metric..
 
6:41 PM
@Serthy it's mainly useful for doing code analysis and refactorings. It exposes several tree like models of different code elements, at the lowest level is the lexical stuff so you'd get an object graph of whitespace symbol symbol operator whitespace.... etc
 
@Antoine just implementing a simple layout so you can see the result
 
Sie
@misha130 Truth be told I put this off till the last minute and am trying to cobble together something that works marginally well.
 
So you can use that to produce formatting hints etc. Then you get a syntax tree which has semantic meaning, so you can recognise references to types from other assemblies and so on
 
its fine either way you dont have a lot of work here
do you know how objects and static works?
 
@Serthy I forget the names of these things. I've watched quite a long pluralsight course on it, never used it
 
Sie
6:43 PM
@misha130 More or less ya.
 
static classes/methods are functions you can do without creating reference to them cause the reference exists on runtime
 
Sie
So basically pre-existing functions?
 
and objects as in the keyword new (mostly) is the creation of a reference so then you can use it in various places and have a difference reference each time
something like that
do you think you understand now what the compiler wants?
 
Hola! How am I able to use the return value of datagridView? (System.Data.Common.DbDataAdapter.Fill returned 0 int)
 
Sie
@misha130 Kind of. Since this is a pre-existing method I made I assume it wants them both to be static?
 
6:47 PM
yes
but its more like how you wrote it
you went directly to the class without creating an object
so it assumes its supposed to be static
 
Sie
Well the if statement to handle the looping doesn't work when I make the method static. How do I get around that?
 
do new IMeasuringDevice_Helper()
 
Sie
Ok.
 
@Antoine I created the auth viewmodel on Startup, but you can of Course also add it on the fly
 
6:50 PM
@MatthiasHerrmann I will see, and after I will learn how to send data between the ViewModels and to create the concept of Authentication.
@MatthiasHerrmann its a big battle :( still learning the architecture and having such difficult stuff to do. But it has to be done :(
:)*
 
@Antoine like you can give the page as a Parameter to the viewmodel, and than add a new viewmodel to the page.resources if the user authenticated succesfully, after that you can Change the datacontext
 
Anyone?
 
@Global ask your question more clearly and maybe people will respond.
I for one have no idea what you're asking
 
what kind of mvvm framework there is even on C#?(except nancy)
 
@MatthiasHerrmann I can't open the file you sent :s
 
6:55 PM
@misha130 Caliburn, Prism, MVVMLite
 
Sie
@misha130 So I did that. Now what? It doesn't seem like I can use an if statement inside the method.
 
Prism is the light effect in pink floyd's dark of the moon album
and Caliburn is the guy in shakespear play
also a death metal band
 
@MatthiasHerrmann it says unavailable
 
so unpopular even google wont hook me up
 
@misha130 that's Caliban
 
6:57 PM
OK tom. I need to use the return value from (dataGridView1.DataSource = data;)
wether the int value is 0 or more
 
good call
 
@Global what return value?
 
@Sie post what you did
 
That's a statement. It doesn't have a return value
 
Sie
Just a sec.
 
6:57 PM
In locals it says "‡ System.Data.Common.DbDataAdapter.Fill returned 2 int"
 
@Antoine You can't download or open it?
 
open it. I alreadydownloaded
 
How am I able to use this as a return value?
 
@Global the return value of Fill is the amount of rows added
 
@Misha130 Yes. The user is searching for data in database by datagridview.
 
7:00 PM
@misha130 yeah but you don't call Fill() yourself I don't think. @Global can't you just use DataGridView.RowCount?
 
And if it's no result then dbDataAdapter.Fill returns 0
 
Why do you specifically want the return value of that method?
 
Oh, hm. I didn't think you called Fill explicitly
 
I always called Fill as I remember (it was maybe 9 years ago)
 
7:01 PM
apparently you do, so just...use that value?
I assumed that the question meant it was something more complicated than that
 
Hello everyone
any expert on registration-free "COM"?
 
@Antoine, just create a new - empty uwp, call it VM, and add the Folder ViewModel and copy and paste the Code from my mainpage files
by adding the ViewModel Folder I mean copy and paste it
 
@MatthiasHerrmann I will try
 
@Global ok, so I don't see what the problem is
 
7:05 PM
my B.tlb depends on A.tlb and i need to somehow tell this in the manifest file
 
Assuming your code calls Fill(), just use that value?
 
@Tom Im trying but method complaining of no path returns a value
 
@Global that doesn't sound like anything to do with the problem
You have a method with a return type declared that doesn't return anything
 
@Tom I was thinking that I could declare an int searchResult = DataGridView.RowCount
 
Tom, man, I just wanna tell you
that azure is shit
 
7:08 PM
@Global you could also do that
 
and I was a fanboy, and I have seen the light
 
@misha130 I am frequently frustrated with it. Nothing is finished!
 
and nothing will ever be finished because they are endlessly trying to maintain 3 systems
extendability amounts to 0, its just a wreck
the only that it has going for it is that its free
 
@Tom But I receieve error ( not all code paths return a value), and if I declare the outside my try/catch, then i recieve (does not exist in the current context)
 
Erm
@Global well, the error is telling you what the problem is
 
7:12 PM
do a throw exception in the catch zone?
 
@Tom So I need to declare two return then? Because none of em is working
 
@misha130 just got the api working
 
@Global you have to return something from every branch in the method
 
@Matthias your api is mobile services legacy in the end?
 
@misha130 ty for your help, I created a database on the new Portal and created the mobile Service on the old one
 
7:14 PM
so you created a legacy one
ok
 
that is fucked up @MatthiasHerrmann
 
@Tom Oh, I see.. Thank you. So what do you suggest return in try/catch statements? Because all I want to return is the searchid
Removed them and it worked fine
 
@misha130 The old Portal didn't allow me to create a new database when creating a new "mobile Service"
 
but it has an option to create a database when creating a mobile service...
 
7:16 PM
@Global what's a searchid?
and what does that have to do with the number of rows?
 
@misha130 yep it does, but then it failed when I wanted to do that in one step
 
@Tom that's my return . int searchid = DataGridView.RowCount
return searchid;
 
@Global wow that naming is erm...not obvious
 
@Tom I know.. I will change it
searchresult *
 
7:18 PM
I'm not sure what to tell you. What's the right value to return when the table couldn't be filled, for example?
 
I would honestly log the error and throw an exception
 
Always return searchResult
Really?
 
@Global what if there isn't one?
 
I dont want something that doesn't work to seem like its working
 
It's 0 Tom
 
7:19 PM
@Global return that then
 
In a new variable then?
 
return 0;?
 
Wow.. Thanks guys
Starting to understand now :)
 
@MatthiasHerrmann still not working. Can you export again plz?
 
 
1 hour later…
8:38 PM
visual studio refuses to load symbols for one of my projects
I pushed them to MyGet and configured the symbol server URL for my feed on MyGet
yet the modules panel says no symbols were found
myget.org/F/ci/symbols/Txt/2.0.0-CI00195 clearly the symbols are there
this DNX stuff not working is starting to piss me off
 
why does it care for pdb?
debugging i guess? kind of weird though
havent got a clue about this :^), have fun
 
have you ever used javascript .map files?
pdbs are the same thing for compiled code
 
yea I figured so
 
a symbol package contains all the source code and a PDB file that helps the debugger find the source code for the compiled code that it's debugging
but in my case visual studio refuses to accept my PDB file
 
yea I am just a bit slow on the understanding, I know how the debugger works
 
8:53 PM
and I'm about 99% sure it's because I'm using DNX
so that leaves 1% chance that I fucked up something in how I generate PDB files
 
cant ya just generate them on 4.6 and test?
 
I don't know if I can test it
 
I am going to wait another month before doing a dnx project
the lack of documentation on their website is a red flag mate
 
well DNX will be gone soon
so it's not even worth trying it now
 
8:56 PM
whys that
 
because DNX was built around web applications but then they finally realized that people don't only write web applications
so they came up with something new that will replace DNX in RC2
 
I dont really care I just want cross platform
THAT WORKS
 
it's like dnx.exe except it's called dotnet.exe
 
eh..sounds great
thanks microsoft...
 
and it doesn't have cool things like a built in webserver
 
8:58 PM
thats ok I can always owin it
 
everything is a mess right now
people don't want to develop for DNX because it will be replaced
and people don't want to develop for dotnet because it's still alpha
 
well you dont really have to develop in this at all
this is just a rebuild to clean things (that wasn't really successful)
normal 4.6 .net is still kicking
 
well I have a couple of portable class libraries that I want to convert to .NET Core
since PCL will be obsolete too
 
I feel ya man
 
and it's kinda working now, but there are still things that behave strangely
 
9:02 PM
I just try to not write anything C# when its going to be portable
 
and it's pissing me off
 
you can always not debug at all
;^)
 
at one point I configured my project.json to output a PCL
which is kinda cool, but completely pointless
 
didnt rc1 just come out
a few weeks ago
 
january
 
9:04 PM
damn ok
 
rc1 has been around for 4 months
release date for rc2 hasn't even been announced yet
it's taking too long :(
 
to be honest I couldnt even launch dnvm on ubuntu
so yea...
maybe this is a good thing
 
I haven't even bothered trying to run anything on a non windows machine
getting it to work on a windows machine is difficult enough as it is
 
well yes considering i am just talking about the console tool
 
isn't dnvm just a bunch of shell scripts?
 
9:07 PM
yes
and it failed to install
so I couldn't do anything
 
oh right
I'd be surprised if dnvm failed to work after you installed it
which you can probably do manually
copy some scripts, chmod +x everything, add folders to your path
 
lack of documentations and motivation
and in due fairness I would have not a guaranteed working project if I did all of this
at some point it might have bombed
 
you mean after the first 15 minutes?
 
yea
 
hey
anyone know if textbock text can be defaulted to uppercase?
Win Phone 8.1
 
9:14 PM
no idea, sorry
 
Hi someone has an example of an MVVM login app working?
I already tried google but all the examples are not working
 
what should it login to?
 
to other view model
It's a LoginViewModel that should login to OtherViewModel
but implementing some bool or something
 
I made this datagridView inside public partial class Main : Form. But now I wanted to move it to my class functions. But I get error that says "the name "dataGridView1" does not exist in the current context
 
bloop
blam
 
9:25 PM
No pizza today.
I mean, the datagridview is GUI but does it really have to be in my partial class Main : Form =
 
@Global err...yes?
 
@StevenLiekens Can you help me?
 
Because that's the only method that's in my class Main, the rest are in functions
@Tom thought it would be better looking if able to move it all to functions instead. Don't want sql query etc in main.
 
dude I can't even help myself
 
user47589
Can I help you help yourself?
 
9:37 PM
it depends
how much do you know about symbol servers?
 
user47589
i know 3 things.
 
@Tom so I guess its the only way then?
 
good
you're hired
nuget pls
stop giving me timeouts
 
user47589
sacrifice a goat to the nuget gods.
 
9:53 PM
doesn't that shit run on azure?
how is it timing out on me?
ffffff
sweet, I got it to work
 

« first day (2024 days earlier)      last day (2923 days later) »