protected override EmployeePostAdjust GetNewItemInstance()
        {
            var vm = new PostTransferAddViewModel(null);

            if (vm.Model == null)
            {
                return(null);
            }
            var dlg = new PostTransferAddDialog {
                DataContext = vm
            };

            if (dlg.ShowDialog())
            {
                return(vm.Model);
            }
            return(null);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.w = ((HRManagerClient.PostTransferAddDialog)(target));
                return;

            case 2:

            #line 20 "..\..\..\..\..\Content\EmployeeManagement\OnJobManagement\PostTransferAddDialog.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Submit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }