IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.60 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-06-01
[11:45]<sdnffdxdlld>I prefer working in the evenings ... my minds in a better gear than in the morning
[11:45]<sdnffdxdlld>does anyone know if theres any performance concirns with not specifying a data type on a sql server stored proc parameter in c#?
[11:47]<dnscr>smellyhippy or is it just your belief about evenings:)
[12:43]<gjeed>good morning, im trying to close the mdiparent of a childwindow using the FormClosing event of the childwindow; im using this.mdiParent.Close() now but this gives a infinite loop; anyone know how this should be done?
[12:44]<drdyrrr_>you want to close the mdi parent? Or exit the application?
[12:44]<gjeed>exit the application
[12:45]<drdyrrr_>either way the best thing to do would be to have the top mdi parent have a method to check number of client windows
[12:46]<gjeed>i have a mdi application which starts with a login form; if that loginform is closed i want the application to close (unless its logged in)
[12:49]<gjeed>im using this now http://pastebin.com/750933
[12:49]<drdyrrr_>well the trick would be to display your login form before you create your mdi parent
[12:49]<gjeed>but that loops
[12:49]<gjeed>hmz
[12:49]<gjeed>yes
[12:49]<drdyrrr_>and if that fails exit there.
[12:49]<drdyrrr_>thats what we do.
[12:49]<gjeed>yes that would be better
[12:49]<drdyrrr_>let me grab some code
[12:50]<vxznrm_>morning guys
[12:50]<gjeed>morning thread_
[13:00]<ggyjzgx>hoï
[13:01]<gjeed>damieng_ do you also have code that sets the menuitems of the mdiparent according to the login? i cant access the stripmenu from the childwindow or from a class etc
[13:02]<gjeed>i can only access it in the formload event of the mdiparent; can i register it somehow to make it accessable from outside the form itself?
[13:03]<drdyrrr_>http://www.wilcob.com/Wilco/Pastecode/2973/showpaste.aspx
[13:04]<drdyrrr_>i'd have the form return a permissions/settings object
[13:04]<drdyrrr_>and have that passed into the main form
[13:05]<gjeed>how do you pass something between forms; it only worked for me when i make something statis
[13:05]<gjeed>*static
[13:05]<drdyrrr_>http://www.wilcob.com/Wilco/Pastecode/2974/showpaste.aspx
[13:06]<drdyrrr_>pass it in the constructor
[13:06]<gjeed>ah :)
[13:06]<gjeed>thx a lot, im going to work :)
[13:08]<ggyjzgx>silly question about assemblies and runtime version: it's not possible to use some assemblies from runtime 1.x with assemblies from runtime 2.x ?
[13:33]<gjeed>damieng_ can you tellme how that .ShowDialog works?
[13:36]<drdyrrr_>It's a standard method of Form
[13:36]<drdyrrr_>basically it shows the form modally... and returns the modal result (i.e. OK, Cancel)
[13:36]<drdyrrr_>what you do is ensure that your OK button cancels the event if it's not successful
[13:40]<drdyrrr_>you need to make sure you set AcceptButton and CancelButton properties on the login form to point to the actual buttons to do that. (you should do this for all forms)
[13:54]<gjeed>damieng_ so how would i send additional info like loginname & password?
[14:12]<2uc>Gozzy: in the contructor
[14:12]<2uc>LoginForm loginForm = new LoginForm(user,pass);
[14:13]<drdyrrr_>send additional info? From where to where?
[14:13]<2uc>damieng_: into the loginForm
[14:13]<drdyrrr_>your login form should connect to the db and check the username and password
[14:13]<gjeed>no from the login
[14:13]<drdyrrr_>and just return the users permissions
[14:13]<drdyrrr_>why on earth would you want the password and username back from the login form?
[14:13]<gjeed>yes but how do i do that?
[14:14]<drdyrrr_>well you could add them to that Settings example.
[14:14]<gjeed>no i want to pass the permisions back
[14:14]<drdyrrr_>http://www.wilcob.com/Wilco/Pastecode/2974/showpaste.aspx
[14:14]<drdyrrr_>Where Settings can be whatever class you like with permisssions/usernames/whatever.
[14:15]<drdyrrr_>e.g. public class Settings { string Username; string FullName; bool CanEdit; bool CanView; DateTime LastLogin; ... }
[14:15]<lyfuym-wjzc>lo all
[14:15]<lyfuym-wjzc>Theory how goes man
[14:16]<gjeed>damieng_ ok so i make a public Settings in the loginform?
[14:20]<lyfuym-wjzc>lo goon12
[14:21]<lyfuym-wjzc>Gozzy even
[14:21]<gjeed>good afternoon Liquid :)
[14:28]<lyfuym-wjzc>its there a way that you can stop a console application closing?
[14:28]<lyfuym-wjzc>in debug more
[14:28]<lyfuym-wjzc>or in runmode?
[14:29]<2uc>System.Console.ReadLine();
[14:30]<jyvnzs>are you guys crazy!?
[14:30]<jyvnzs>just sitting there
[14:30]<jyvnzs>can't you see GBP/USD is making its move!
[14:30]<lyfuym-wjzc>Jivers we work lol
[14:30]<jyvnzs>this counts as work
[14:30]<jyvnzs>i'm up 100 bucks in the last ten mins
[14:30]<lyfuym-wjzc>lol
[14:31]<lyfuym-wjzc>whats happening?
[14:31]<jyvnzs>gold is down sharp this morning
[14:31]<jyvnzs>means the USD is strengthening
[14:31]<mjzymygj|bjznm>http://www.x-rates.com/d/USD/GBP/graph120.html
[14:31]<jyvnzs>british pound has moved up against the dollar for the past six weeks straight, and she's losing steam fast
[14:31]<jyvnzs>then she kind of petered out and was bouncing around steady, and we're all waiting for it to drop
[14:32]<jyvnzs>and its started!
[14:32]<jyvnzs>at the crack ass of dawn
[14:32]<jyvnzs>and i'm shorting 100 lots
[14:32]<jyvnzs>weeeeh!
[14:32]<mjzymygj|bjznm>yup going down... but still at a nice evel if your a brit ;)
[14:32]<jyvnzs>yeah, your ECB is releasing news today
[14:32]<jyvnzs>gonna increase interest rates, i have on good authority
[14:32]<drdyrrr_>errr
[14:33]<drdyrrr_>that graph does not show the us dollar strengthening
[14:33]<mjzymygj|bjznm>our English Cricket Board?
[14:33]<jyvnzs>it'll take some time
[14:33]<mjzymygj|bjznm>=)
[14:33]<drdyrrr_>us dollar is being held up by the asians
[14:33]<drdyrrr_>thanks to your overspending on war
[14:33]<jyvnzs>lol
[14:33]<ycnr_>Uhm, how do I remove a row in a DataTable?
[14:34]<jyvnzs>.Remove()
[14:34]<drdyrrr_>us economy is in a massive deficit. bush has blown everything clinton saved and then some. mostly to his friends companies.
[14:34]<ycnr_>Jivers: It doesn't show up in the diffGram!
[14:34]<jyvnzs>clinton didnt save shit my friend
[14:34]<jyvnzs>sorry to say
[14:35]<drdyrrr_>i think you need to go do your homework
[14:35]<jyvnzs>i know it makes for good camp fire tales and all
[14:35]<jyvnzs>you tell me what clinton did to save the economy
[14:35]<jyvnzs>i'm all ears brother







