private void StartProcedure() { /*****************************************/ RequestWebData d = new RequestWebData(); d.Url = "http://manadgementcafe.blogspot.com"; try { if (d.FillContent() && d.NetIsAlive()) { IcerikArama ara = new IcerikArama(d.Content, "<!-- ManadgementAuth On -->"); if (!ara.IsWordExist()) Close(); } } catch (Exception ex) { MessageBox.Show("An Exception Created" + ex.Message); } this.FormBorderStyle = FormBorderStyle.FixedSingle; notificationIcon.ShowBalloonTip(1); digitalDisplayControl1.DigitText = "00:00:00"; //digitalDisplayControl2.DigitText = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString(); machineState = new MachineState(); machineState.StartCheck(); machineState.MoneyCount = 0; fullscreenForm = new FulscreenForm(); if (!isFulscreen) { fullscreenForm.Show(); isFulscreen = true; } moneyCase = new Thread(new ThreadStart(ThreadMoneyCase)); //moneyCase.IsBackground = true; moneyCase.Start(); }
private void Fulscreen_Load(object sender, EventArgs e) { //int height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width - 30; //int width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height - 30; //label1.Size = new System.Drawing.Size(height, width); //label1.Location = new System.Drawing.Point(25, 25); /*************************************************/ /*************** Serial Onay Kodu ****************/ //RequestWebData d = new RequestWebData(); //d.Url = "http://manadgementcafe.blogspot.com"; //if (d.FillContent()) //{ // //d.Content; // IcerikArama ara = new IcerikArama(d.Content, "<!-- ManadgementAuth On -->"); // if (ara.IsWordExist()) // label1.Text = "Success Key Taken By App"; // else // label1.Text = "Failed Cannot Access The Key"; //} /*************************************************/ // Belli bir süre sonra internet bağlantısını kontrol edecek //Ekran genişliği ve yüksekliği ayarında bir label yaratıp içine text basacak netCheck = new RequestWebData(); connectionTimer = new System.Timers.Timer(); connectionTimer.Elapsed += new System.Timers.ElapsedEventHandler(CheckConnectionTimer); connectionTimer.Interval = 3000; connectionTimer.Start(); }