Tuesday, May 17, 2011

Hiv Rapid Test Accuracy 3 Months

Appeal decisions and notices of public bodies

Legal company "Golden Shield" Donetsk successfully represents the interests of their clients in an appeal against the decision - Notification of tax and pension bodies, as in pre-trial order, and in the courts of Donetsk and Donetsk region.
tax disputes are resolved the issues of interaction of a legal entity or physical faces businessman and tax services: the most frequently appealed to be untrue decision of the tax inspectorate.
Disputes with PFC are associated primarily with the unfounded accrued fines, penalties, the definition of arrears in respect of legal or natural person entrepreneur .
Settlement of tax and pension disputes can be performed for you by our company on an ongoing basis, allowing complex approach the question of interaction with government agencies. We choose wisely, and to institute legal way to protect your legitimate rights and interests before public authorities in Donetsk region.

Saturday, May 14, 2011

Retrieving Us Visa Interview Letter

[Oracle SPb] Seminar on the performance of Java.

Oracle is willing to invite a seminar on performance Java.

workshop is designed for developers of Java, interferes with work on performance. It is assumed that students have a good experience with Java, imagine what a virtual machine, garbage collectors, JIT-compiler.

The seminar reread the reports from the past JavaOne Moscow:

"Java Platform Performance BoF", Alexey Shipilov, Sergei Kuksenkohttp: / / www.blogger.com / img / blank.gif
"(The Art of) (Java) Benchmarking", Alexey Shipilov
"Java Memory Model", Sergei Kuksenko

In the remaining being held to discuss the themes of reports or related problems.

seminar is designed for 3-4 hours, including questions and answers

Joined: http://oracle.timepad.ru/event/7698

Friday, May 13, 2011

Kurdish Party Clothes

Silverlight five Markup Extension and Commanding

Last time, my college from my job told me that creation of ICommand implementation for every required element is very annoying for him and he would be happy if he could bind command (for ex. Button Click) directly to specific method.

As we know, there is not possible customize Markup Extension in Silverlight 4 because the IMarkupExtension interface has only internal access in this version.

Version 5 of Silverlight, extends ours horizons.

Below, I will show how we can achive our goal.

 using System; 
using System.Windows;
using System.Windows.Input;
using System.Xaml;
using Microsoft.Practices.Prism.Commands;

namespace CommandingSL5
{
public class Commanding : IMarkupExtension<ICommand>
{
public string MethodName { get; set; }

public ICommand ProvideValue(IServiceProvider serviceProvider)
{
if (!String.IsNullOrEmpty(MethodName))
{
if (serviceProvider == null)
return null;

var rootService = (IRootObjectProvider)serviceProvider.GetService(typeof(IRootObjectProvider));
var root = rootService.RootObject as FrameworkElement;
if (root != null)
{
if (root.DataContext != null)
{
var method = root.DataContext.GetType().GetMethod(MethodName);
if (method != null)
{
return new DelegateCommand(() => method.Invoke(root.DataContext, null));
}
}
}
}
return null;
}
}
}

Interface IServiceProvider gives us possibility to get specific service which allows us access to target element (where was used our custom Markup Extension) or root element which is our View with associated ViewModel by property DataContext.

IRootObjectProvider : provide a reference to the Root object of the VisualTree which the element is part of
IXamlTypeResolver : is able to resolve the name of the tags in the markup to the corresponding type.
IProvideValueTarget : gets a reference to the property and the elements which the markup extension is assigned

(Source: Andrea Boschin Blog )

As we see, there is no problem to using more complex methods because I use .NET Reflection which gives me many possibilities.

Usage:
 <UserControl x:Class="CommandingSL5.MainPage"  
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:c="clr-namespace:CommandingSL5"
mc:Ignorable="d">

<UserControl.DataContext>
<c:MainPageViewModel />
</UserControl.DataContext>


<Grid x:Name="LayoutRoot" Background="White">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="150" />
</Grid.ColumnDefinitions>

<TextBox Text="{Binding MethodAText}"
Margin="5,5" />
<Button Content="Execute TestMethod A"
Command="{c:Commanding MethodName=TestMethodA}"
Margin="5,5"
Grid.Column="1"/>
</Grid>
</UserControl>


and also our ViewModel:

 using System.ComponentModel; 

namespace CommandingSL5
{
public class MainPageViewModel : INotifyPropertyChanged
{
#region Fields
private string _methodAText;
#endregion

#region Properties
public string MethodAText
{
get { return _methodAText; }
set
{
_methodAText = value;
RaisePropertyChanged("MethodAText");
}
}
#endregion

#region Methods
public void TestMethodA()
{
MethodAText = "TestMethodA executed !";
}
#endregion

#region INotifyPropertyChanged Implementation
public event PropertyChangedEventHandler PropertyChanged;

public void RaisePropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
handler(this, new PropertyChangedEventArgs(propertyName));
}
# Endregion

}}