void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.w = ((HRManagerClient.WkarDefSelectDialog)(target)); return; } this._contentLoaded = true; }
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); }