private void FrmInvoiceSetting_Load(object sender, EventArgs e) { txtInvoiceFormat.Text = AppInit.GetTextBoxApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_invoiceformate.ToString()); txtChallanFormat.Text = AppInit.GetTextBoxApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_challanformat.ToString()); cmbCopy.Text = AppInit.GetTextBoxApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_DefaultCopyTag.ToString()); chkInvoiceTaxOnTotalLevel.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_invoiceTaxonTotalLevel.ToString()); chkItemHelp.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_invoiceItemHelp.ToString()); chkShippingDetails.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_EnableShippingDetail.ToString()); chlOtherAddField.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_EnableOth1Add.ToString()); chkPrintChallanEnable.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_EnablePrintChallan.ToString()); chk_bf_freight.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_Enable_bf_freight.ToString()); chk_bf_additional.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_Enable_bf_additional.ToString()); chk_bf_discount.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_Enable_bf_discount.ToString()); var lqry = dbx.BookMsts.ToList(); foreach (var item in lqry) { int rowId = gvBook.Rows.Add(); gvBook.Rows[rowId].Cells["BookId"].Value = item.BookId; gvBook.Rows[rowId].Cells["BookName"].Value = item.BookName; gvBook.Rows[rowId].Cells["BookTitle"].Value = item.BookTitle; gvBook.Rows[rowId].Cells["InvNo"].Value = item.InvNo; gvBook.Rows[rowId].Cells["Prefix"].Value = item.Prefix; gvBook.Rows[rowId].Cells["IsActive"].Value = item.IsActive; gvBook.Rows[rowId].Cells["IsDefault"].Value = item.IsDefault; } }
private void FrmBackup_Load(object sender, EventArgs e) { if (isPormteMode) { pnlAskPromte.Visible = true; pnlPathOption.Visible = false; lblPromptMsg.Text = "Want to generate backup now ? \nAt the location " + AppInit.AppInfo.BackupPath + ""; } else { pnlAskPromte.Visible = false; pnlPathOption.Visible = true; txtpath.Text = AppInit.AppInfo.BackupPath; chkAskMe.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Enum_AskBackupWhenCloseSoftware.ToString()); } }