Showing posts with label net. Show all posts
Showing posts with label net. Show all posts
Friday, April 7, 2017
NET lacks action cant keep up with Swing
NET lacks action cant keep up with Swing
Microsoft has really not understood the concept behind the GUI design pattern Model View Control (MVC). As I understand .NET can not connect GUI controls to functionality (logic) objects (that would be linking View to Control). Ive asked this question on common .NET sites, usenet groups and it seems that they missed out on this part totally. To me, it shows that the .NET Forms project was really rushed and misses major parts that Swing has had for 8 years.
What I am talking about, is that Java Swing has Action classes that can be linked to GUI controls, which means that the GUI control uses the Action object when it has been activated (clicked for buttons, menu items, combo boxes, lists and even tree controls) . This Action class contains only the logic (Control) and nothing else; when activated from a GUI control it will perform its functionality. The drawback with this approach that every major action needs their own class, which generate many more classes. But the benefit is that you can have several buttons/menu items, that uses ONE class to do a certain functionality. It helps during maintenance, where I am right now. This is nice, when a certain Action is disabled (for instance Save is disabled when the user doesnt have an active document); because it will notify ALL controls that is connected to the Action object. So the developer does not have to care which dialogs/forms/menu that are visible and must be disabled, etc. It is just one simple method call, and that is the beauty of it.
Another nice thing with it, is that the Action class contains most of the important properties for a control:
* A name (for buttons) (can be localised)
* A short description (read tool tip) (can be localised)
* A key accelerator, for short cut keys
* An icon (next to the text in buttons and menu items)
* An mnemonic key
So when I need to create a button and menu item, all I do is:
anAction = new FileSaveAction();
JButton button = new JButton(anAction);
mainFramePanel.add(button);
JMenuItem menu = new JMenuItem(anAction);
mainFrame.getJMenuBar().getMenu(0).add(anAction);
anAction.setEnabled(false);
//.. user opens a new document
anAction.setEnabled(true);
The above code will create a button in the main frame panel, and a menu item. They will have the same text, the same icon, the same tool tip AND both are disabled at the same time. When the user opens a new document it is just one method call to enable both controls. Magic, isnt it? Or is it just properly designed?
At my current project, which is a huge .NET project, they have many menu items and buttons that each of them needs to be enabled/disabled when some functionality is disabled. That generates alot of excess code that isnt needed and is hell to maintain. Since the application is localised in 5 different languages, the developer needs to code enable/disable functionality for least 2 GUI controls. And this means that each control needs 5 different localisations which needs to be set. Talk about unnecessary and unwanted work.
Available link for download
Wednesday, February 8, 2017
NBA All Net Hack
NBA All Net Hack

Yes! We now release the latest piece of work from our professional team of developers, the NBA All Net Hack! Are you ready to be the best at the game using it?

We didnt know we have so many basketball fans here, until we started to read the emails from the past days. We found many in which you asked as if we can make a software for this game, NBA All Net. After long discussions, the answer was yes, so we started to work at it, and now it is ready!
Get the NBA All Net Hack right now from one of the three Download buttons you will find at the end of this article. This is the first step.
Then, open it and connect your device to our hack tool. Do not worry! It doesnt matter what device you have or what version, this software we provide is usable on every of them! Press the "Detect Device" button.
The NBA All Net Hack is easy to use. Youll see that by yourself after you download and install it. After you have connected your device to it, all you need to do is to select what you want to do with it.
Using NBA All Net Hack you will have the possiblity to get every item you need in-game in an unlimited quantity! Isnt it great? We say it is.

For example, with the hack tool which we are giving for free, you will get unlimited gold and unlimited diamonds. You will also have unlimited energy and unlimited stamina! But, lets not forget about another important thing you will get if you use the NBA All Net Hack: unlimited fun! If all those havent convinced you yet, just think that you will get them by simply pressing some buttons and select a few values. In just seconds, you will have them. Everybody else have to work for them, but you will have them right away.
Use your skills and knoledge about this great sport and play as Kobe Bryant, Kevin Durant or others, together with this NBA All Net Hack and you will be the best at the game!
Dont forget that here, we think about protection. So, this hack tool also has functions which keep your safety while using it. Functions like Use Proxy or Anti-ban Protection Plugin will prevent you or your account from to be banned.
So, you have everything at your disposal to rock at this game in this NBA All Net Hack. What keeps you from getting it now?

Available link for download
Subscribe to:
Posts (Atom)