private void btnPerformLiquidation_Click(object sender, RoutedEventArgs e) { try { int Batch_Id = 0; Batch_Id = Convert.ToInt32(cboBatchNo.SelectedValue.ToString()); if (Batch_Id > 0) { if (cboBatchNo.SelectedIndex == 1) { CLiquidationDetailsProfitShare liquidationDetailsPS = new CLiquidationDetailsProfitShare(Batch_Id); liquidationDetailsPS.Owner = MessageBox.parentOwner; liquidationDetailsPS.ShowDialog(); LoadBatchNoCombo(); } else { MessageBox.ShowBox("MessageID498", BMC_Icon.Information); return; } } else { MessageBox.ShowBox("MessageID499", BMC_Icon.Information); return; } } catch (Exception ex) { ExceptionManager.Publish(ex); } }
private void btnPerformLiquidation_Click(object sender, RoutedEventArgs e) { try { int Batch_Id=0; Batch_Id = Convert.ToInt32(cboBatchNo.SelectedValue.ToString()); if (Batch_Id > 0) { if (cboBatchNo.SelectedIndex == 1) { CLiquidationDetailsProfitShare liquidationDetailsPS = new CLiquidationDetailsProfitShare(Batch_Id); liquidationDetailsPS.Owner = MessageBox.parentOwner; liquidationDetailsPS.ShowDialog(); LoadBatchNoCombo(); } else { MessageBox.ShowBox("MessageID498", BMC_Icon.Information); return; } } else { MessageBox.ShowBox("MessageID499", BMC_Icon.Information); return; } } catch (Exception ex) { ExceptionManager.Publish(ex); } }