Ejemplo n.º 1
0
        private void FrmSettings_Load(object sender, EventArgs e)
        {
            //Load the saved SaveGame folder path.
            try
            {
                TxtboxSaveGameFolderPath.Text = Global.ReadSettings().Item1;
                TxtboxGamePath.Text           = Global.ReadSettings().Item2;
                BtnSave.Select();
            }

            catch
            {
                MessageBox.Show("There was an error while loading settings. " +
                                "Please try again.", "Load error",
                                MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
        private void TrnInvoicePrint_Load(object sender, EventArgs e)
        {
            grpSort.Text = "Invoice Type";
            //Commented by Shrey on 05/08/2011
            //rbnSort1.Text = "Full Set";
            //rbnSort2.Text = "Buyer's Copry";
            //rbnSort3.Text = "Duplicate Copy";
            //rbnSort4.Text = "Office Copy";
            //rbnSort1.Checked = true;

            //Added by Shrey Kejriwal on 05/08/2011
            chkBox1.Text = "Buyer's Copy";
            chkBox2.Text = "Duplicate Copy";
            chkBox3.Text = "Office Copy";

            grpSort1.Text      = "Print Type";
            rbnSort1_1.Text    = "None";
            rbnSort1_2.Text    = "Print with Letter Head";
            rbnSort1_1.Checked = true;

            //-----------------------------------------------------------------------------------------------------
            if (InvoiceNO.Trim() != "" || SerialNo.Trim() != "" || MobileNo.Trim() != "" || EmailID.Trim() != "")
            {
                grpInvoiceDetails.Visible = true;
            }
            else
            {
                grpInvoiceDetails.Visible = false;
            }
            //-----------------------------------------------------------------------------------------------------
            if (InvoiceNO.Trim() != "")
            {
                lblInvoiceNo.Text = InvoiceNO;
            }
            else
            {
                lblInvoiceNo.Text = "";
            }
            //-----------------------------------------------------------------------------------------------------
            //-----------------------------------------------------------------------------------------------------
            if (SerialNo.Trim() != "")
            {
                lblOfflineSerialNumber.Text = SerialNo;
            }
            else
            {
                lblOfflineSerialNumber.Text = "";
            }
            //-----------------------------------------------------------------------------------------------------
            //-----------------------------------------------------------------------------------------------------
            if (MobileNo.Trim() != "")
            {
                lblMobileNo.Text = MobileNo;
            }
            else
            {
                lblMobileNo.Text = "";
            }
            //-----------------------------------------------------------------------------------------------------
            //-----------------------------------------------------------------------------------------------------
            if (EmailID.Trim() != "")
            {
                lblEmailId.Text = EmailID;
            }
            else
            {
                lblEmailId.Text = "";
            }
            //-----------------------------------------------------------------------------------------------------


            BtnSave.Select();
        }