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: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-08-01
[18:28]<drdyrrr_>awilkins, use the Class Diagram tool to check out the relationships visually :)
[18:28]<gjrvcxnne>like, TreeView.AddRange simply iterates throught the nodes and calls Add for each node
[18:28]<zyccus>anyone know if there's a way to get %USERPROFILE%, given a user name? I know it's {system drive}:\Documents and Settings\{username} on XP and different on Vista... but it'd be useful to have an API to get it... or a canonical way
[18:28]<azyfm>what else would it do?
[18:29]<gjrvcxnne>use a better method to faster add a large set of nodes
[18:29]<azyfm>%APPDATA%
[18:29]<rnzrnf_->can sb help me with connecting with the mono security-library to openssl using dhe/dss? The connection always fails with a strange error
[18:29]<rnzrnf_->http://nomorepasting.com/paste.php?pasteID=66103 <-- here is the debug
[18:29]<gjrvcxnne>the code for Add is very redundant, AddRange could be modified for better speed
[18:29]<gjrvcxnne>There are things done in Add, that only need to be done once if you are adding more than one node
[18:29]<gjrvcxnne>(for example)
[18:30]<zyccus>damieng_: how's your brain age?
[18:30]<gjrvcxnne>yet, it does it for every node... slowing down the addition of multiple nodes by a LARGE amount
[18:30]<drdyrrr_>rikkus 21 atm
[18:30]<zyccus>damieng_: very good!
[18:30]<pzynsv-jp-psy>ok time for the pub
[18:30]<pzynsv-jp-psy>later d00ds
[18:30]<rwyfcygs>20 bwaghaga
[18:31]<azyfm>You should be putting multiple adds in Begin|EndUpdate blocks, anyway
[18:31]<rwyfcygs>(and I'm 32)
[18:31]<rrd2uppnw>in that link StaZ[work] posted yesterday (http://www.c-sharpcorner.com/UploadFile/rmcochran/elegant_dal05212006130957PM/elegant_dal.aspx?ArticleID=b9f94d24-6933-48e7-9c16-879ba906d28b) there is an abstract class MapperBase<T> which has a protected method that takes a IDataRecord as a parameter. But they actually pass it an IDataReader?
[18:31]<zyccus>damieng_: 29 here :|
[18:31]<drdyrrr_>Presumably AddRange does the Begin and End stuff
[18:31]<drdyrrr_>I'm 32 too.
[18:31]<drdyrrr_>not managed to hit 20 yet although the gf has
[18:31]<gjrvcxnne>Arild: they are... it doen't help
[18:31]<rwyfcygs>Got Big Brain Academy, that's fricking hard
[18:32]<drdyrrr_>but then she's 22 so she has no excuse.
[18:32]<gjrvcxnne>damieng: and no, addrange doesn't do beginupdate
[18:32]<drdyrrr_>suspendlayout?
[18:32]<gjrvcxnne>doesn't do that either
[18:32]<gjrvcxnne>at least i don't think it does... i honestly don't remember if it suspends the layout
[18:32]<azyfm>SuspendLayout wouldn't do much, I think
[18:32]<azyfm>a TreeView doesn't really have child controls
[18:33]<drdyrrr_>yeah it's a heirarchy
[18:33]<gjrvcxnne>Arild: i assume he menat suspend the layout of it's parent control
[18:33]<gjrvcxnne>wtf does that mean
[18:33]<azyfm>AddRange does Being/EndUpdate
[18:34]<gjrvcxnne>u sure? (i'm checking right now....)
[18:34]<azyfm>I check*ed* right now
[18:34]<gjrvcxnne>(even if it does, it's still horrendously slow)
[18:34]<azyfm>and it doesn't call Add for every node, it calls AddInternal
[18:34]<gjrvcxnne>(I was checking mono source :-/).... could be different
[18:35]<gjrvcxnne>then yeah, that was the difference lol
[18:35]<svzz[wjzc]>jaybuffe1 i pass a SqlDataReader into that
[18:35]<drdyrrr_>there is no Treeview.AddRange or TreeNode.AddRange afaics
[18:35]<gjrvcxnne>well, Mono must be uberduber slow
[18:35]<azyfm>TreeNodeCollection.AddRange
[18:35]<svzz[wjzc]>jaybuffe1 this pattern is just made to support any kind of database
[18:35]<`d0>:o
[18:35]<`d0>I am going to eat some cheeze
[18:36]<gjrvcxnne>Arild: where do you check ur source at?
[18:36]<drdyrrr_>it only does begin/end if adding more than 200 nodes.
[18:36]<gjrvcxnne>Arild: can you see the source for AddInternal?
[18:36]<gwaglvyjg>Use reflector
[18:36]<azyfm>*cough*Reflector*cough*
[18:36]<gjrvcxnne>lol
[18:37]<drdyrrr_>or the sscli 2.0
[18:37]<drdyrrr_>if you want comments
[18:37]<azyfm>no TreeView there
[18:37]<azyfm>the SSCLI doesn't have S.W.F
[18:37]<gwaglvyjg>Oh
[18:38]<drdyrrr_>doh
[18:38]<drdyrrr_>you can tell i've been on holiday
[18:40]<gjrvcxnne>ummm
[18:40]<gjrvcxnne>yeah, my .net source is differenc somehow
[18:40]<gjrvcxnne>at least i don't think it does... i honestly don't remember if it suspends the layout
[18:40]<gjrvcxnne>dher
[18:41]<gjrvcxnne>public virtual void AddRange(TreeNode[] nodes)
[18:41]<gjrvcxnne>{
[18:41]<gjrvcxnne> if (nodes == null)
[18:41]<gjrvcxnne> {
[18:41]<gjrvcxnne> throw new ArgumentNullException("nodes");
[18:41]<gjrvcxnne> }
[18:41]<gjrvcxnne> foreach (TreeNode node1 in nodes)
[18:41]<gjrvcxnne> {
[18:41]<gjrvcxnne> this.Add(node1);
[18:41]<gjrvcxnne> }
[18:41]<gjrvcxnne>}
[18:43]<gjrvcxnne>Arild: where did you see AddInternal?
[18:43]<azyfm>Reflector
[18:44]<azyfm>and I say again: SuspendLayout wouldn't do anything since there are no layout-related events fired when you add anode
[18:44]<znmnzz>hey
[18:44]<gjrvcxnne>arild: i'm using the reflectoe
[18:45]<gjrvcxnne>i don't see it
[18:45]<znmnzz>anyone here making current use of ironpython?
[18:45]<azyfm>the 2.0 S.W.F DLL
[18:45]<znmnzz>i live and breath 1.1 at the moment so i haven't install it
[18:45]<gjrvcxnne>Arild: i never said suspend layout would do anything....
[18:45]<znmnzz>and try it out
[18:45]<znmnzz>it's already at RC1, so being the last one to try things out this is probably late enough
[18:45]<azyfm>the 2.0 FX lives happily SxS with the 1.0 FX
[18:45]<gjrvcxnne>ah, i still use 1.0 mostly
[18:46]<sdnffdxdlld>ffs :S the combobox has the same problem with changing the disabled background colour :(
[18:47]<drdyrrr_>hmmm.... thats weird.
[18:47]<drdyrrr_>the whole of gchandlecookietable is missing from sscli 2.0
[18:48]<drdyrrr_>the file is blank apart from the MS copyright header
[18:48]<azyfm>mmm, cookies
[18:48]<azyfm>the SSCLI uses a different GC, I think
[18:56]<cjmgrug>its wierd.. from the day i've understood the Singleton pattern... i find a lot of things fit in that pattern... sometimes i wonder whether i'm overusing it..







