private void btnProfitShare_Click(object sender, RoutedEventArgs e) { try { var objProfitShare = new CProfitShare(objCommonLiquidation); objProfitShare.Owner = this; objProfitShare.ShowDialog(); this.objCommonLiquidation = objProfitShare.objCommonLiquidation; LoadLiquidationDetails(); } catch (Exception ex) { ExceptionManager.Publish(ex); } }