Example #1
0
 public FrmQueueAdd(BangnaQueueControl bqc)
 {
     InitializeComponent();
     //MessageBox.Show("33333", "");
     this.bqc = bqc;
     initConfig();
 }
Example #2
0
 public FrmCall(BangnaQueueControl bqc)
 {
     this.bqc = bqc;
     if (bqc.chkAppExit)
     {
         Close();
     }
     initConfig();
 }
 public FrmQueueDate(BangnaQueueControl bqc)
 {
     this.bqc = bqc;
     if (bqc.chkAppExit)
     {
         //MessageBox.Show("1111", "");
         Close();
     }
     initConfig();
 }
Example #4
0
 public FrmQueueNext(BangnaQueueControl bqc)
 {
     InitializeComponent();
     this.bqc = bqc;
     if (bqc.chkAppExit)
     {
         Close();
     }
     initConfig();
 }
Example #5
0
        public Form1(BangnaQueueControl bqc)
        {
            InitializeComponent();
            this.bqc = bqc;

            conn            = bqc.conn;
            timer1          = new Timer();
            timer1.Tick    += new EventHandler(OnTimedEvent);
            timer1.Interval = 1000;
            timer1.Start();
        }
Example #6
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            try
            {
                if (File.Exists("log.txt"))
                {
                    long length = new System.IO.FileInfo("log.txt").Length;
                    if (length >= 1024)
                    {
                        length = length / 1024;                     // kb
                    }
                    if (length >= 1024)
                    {
                        length = length / 1024;                     // mb
                    }
                    if (length >= 2)
                    {
                        File.Delete("log.txt");
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("error delete log.txt", "");
            }
            //MessageBox.Show("00000", "");
            BangnaQueueControl bqc = new BangnaQueueControl();
            Boolean            chk = bqc.BringWindowToFront();


            //Application.Run(new Form1());
            if (bqc.iniC.FrmQueueShow.Equals("1"))
            {
                //MessageBox.Show("11111", "");
                Application.Run(new FrmQueueNext(bqc));
            }
            else if (bqc.iniC.FrmQueueShow.Equals("2"))
            {
                //MessageBox.Show("11111", "");
                //new LogWriter("d", "Main bqc.iniC.FrmQueueShow 2 ");
                Application.Run(new FrmCall(bqc));
            }
            else
            {
                //MessageBox.Show("222222", "");
                //new LogWriter("d", "Main bqc.iniC.FrmQueueShow 0 ");
                Application.Run(new FrmQueueDate(bqc));
            }
        }
Example #7
0
 public FrmQueueCaller(BangnaQueueControl bqc)
 {
     this.bqc = bqc;
     initConfig();
 }
Example #8
0
 public FrmQueueConfig(BangnaQueueControl bqc)
 {
     InitializeComponent();
     this.bqc = bqc;
     initConfig();
 }