Example #1
0
        private void btn_print_Click(object sender, EventArgs e)
        {
            btn_print.Enabled = false;
            label3.Visible    = false;
            label4.Visible    = false;
            label23.Visible   = false;
            label24.Visible   = false;

            label5.Visible       = true;
            label1.Visible       = true;
            button2.Visible      = true;
            button3.Visible      = true;
            progressBar1.Visible = true;
            PrintWatch.Start();
            PicsbgWorker.RunWorkerAsync();
        }
Example #2
0
        public Print(Form gallery, Form wifiHelp, Form animation, Form waiter, int SelectedImagesCount)
        {
            InitializeComponent();
            PrintWatch.Stop();
            SelectedImages      = new List <string>();
            galleryFormObject   = gallery;
            wifiHelpFormObject  = wifiHelp;
            AnimationFormObject = animation;
            waiterObject        = waiter;
            button2.Visible     = false;
            button3.Visible     = false;
            label5.Visible      = false;
            label1.Visible      = false;
            selectedImagesCount = SelectedImagesCount;

            //fullscreen
            this.TopMost         = true;
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState     = FormWindowState.Maximized;

            string checkUnicode = "2714"; // ballot box -1F5F9
            int    value        = int.Parse(checkUnicode, System.Globalization.NumberStyles.HexNumber);

            label24.Text         = ConfigurationManager.AppSettings["PrintReady1Eng"];
            label4.Text          = ConfigurationManager.AppSettings["PrintReady1Hindi"];
            label6.Text          = ConfigurationManager.AppSettings["BillInfo"];
            label13.Text         = ConfigurationManager.AppSettings["PrintSizeText"];
            label14.Text         = Globals.PrintSelection.ToString(); //ConfigurationManager.AppSettings["PrintSizeValue"];
            label8.Text          = ConfigurationManager.AppSettings["CostValue" + Globals.PrintSelection.ToString()];
            label6.Text          = ConfigurationManager.AppSettings["NoOfPicsText"];
            label_PicsCount.Text = ConfigurationManager.AppSettings["NoOfPicsInitialValue"];
            label11.Text         = ConfigurationManager.AppSettings["AmountText"];
            label12.Text         = ConfigurationManager.AppSettings["AmountInitialValue"];
            label9.Text          = ConfigurationManager.AppSettings["GSTValue"];
            label16.Text         = ConfigurationManager.AppSettings["TotalText"];
            label15.Text         = ConfigurationManager.AppSettings["TotalValue"];
            tb.BackColor         = Color.FromName(ConfigurationManager.AppSettings["AppBackgndColor"]);
            UpdateBillDetails(selectedImagesCount);
        }