void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.w = ((HRManagerClient.WkarDefSelectDialog)(target));
         return;
     }
     this._contentLoaded = true;
 }
예제 #2
0
        protected override ArrangeWork GetNewItemInstance()
        {
            WkarDefSelectDialog dlg = new WkarDefSelectDialog();

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