コード例 #1
0
 public FrmQueueAdd(BangnaQueueControl bqc)
 {
     InitializeComponent();
     //MessageBox.Show("33333", "");
     this.bqc = bqc;
     initConfig();
 }
コード例 #2
0
ファイル: FrmCall.cs プロジェクト: eploentham/bangna_queue_tv
 public FrmCall(BangnaQueueControl bqc)
 {
     this.bqc = bqc;
     if (bqc.chkAppExit)
     {
         Close();
     }
     initConfig();
 }
コード例 #3
0
 public FrmQueueDate(BangnaQueueControl bqc)
 {
     this.bqc = bqc;
     if (bqc.chkAppExit)
     {
         //MessageBox.Show("1111", "");
         Close();
     }
     initConfig();
 }
コード例 #4
0
 public FrmQueueNext(BangnaQueueControl bqc)
 {
     InitializeComponent();
     this.bqc = bqc;
     if (bqc.chkAppExit)
     {
         Close();
     }
     initConfig();
 }
コード例 #5
0
ファイル: Form1.cs プロジェクト: eploentham/bangna_queue_tv
        public Form1(BangnaQueueControl bqc)
        {
            InitializeComponent();
            this.bqc = bqc;

            conn            = bqc.conn;
            timer1          = new Timer();
            timer1.Tick    += new EventHandler(OnTimedEvent);
            timer1.Interval = 1000;
            timer1.Start();
        }
コード例 #6
0
ファイル: Program.cs プロジェクト: eploentham/bangna_queue_tv
        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));
            }
        }
コード例 #7
0
 public FrmQueueCaller(BangnaQueueControl bqc)
 {
     this.bqc = bqc;
     initConfig();
 }
コード例 #8
0
 public FrmQueueConfig(BangnaQueueControl bqc)
 {
     InitializeComponent();
     this.bqc = bqc;
     initConfig();
 }