void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.w = ((HRManagerClient.VacationPlanSelectDialog)(target));
         return;
     }
     this._contentLoaded = true;
 }
        protected override VacationPlan GetNewItemInstance()
        {
            VacationPlanSelectDialog dlg = new VacationPlanSelectDialog();

            if (dlg.ShowDialog())
            {
                var result = dlg.SelectedPlan.Clone();
                dlg.SelectedPlan.Department    = null;
                dlg.SelectedPlan.Employee      = null;
                dlg.SelectedPlan.OperatingPost = null;
                return(result);
            }
            return(null);
        }