コード例 #1
0
 private void metroButton1_Click(object sender, EventArgs e)
 {
     ThreadPool.QueueUserWorkItem((object state) =>
     {
         try
         {
             var Update = new Regex(@"((?<!\d)((\d{2,4}(\.|年|\/|\-))((((0?[13578]|1[02])(\.|月|\/|\-))((3[01])|([12][0-9])|(0?[1-9])))|(0?2(\.|月|\/|\-)((2[0-8])|(1[0-9])|(0?[1-9])))|(((0?[469]|11)(\.|月|\/|\-))((30)|([12][0-9])|(0?[1-9]))))|((([0-9]{2})((0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))(\.|年|\/|\-))0?2(\.|月|\/|\-)29))日?(?!\d))").Match(System.Text.Encoding.UTF8.GetString(new System.Net.WebClient().DownloadData("https://bowlroll.net/file/95442")));
             if (Update.Value != Resource1.UpdateData)
             {
                 Class2.newopen.BeginInvoke(new MethodInvoker(() =>
                 {
                     MetroTaskWindow.ShowTaskWindow(Class2.newopen.Parent, "检测到更新", new TaskWindowControl2(), 10);
                 }));
             }
             else
             {
                 Class2.newopen.BeginInvoke(new MethodInvoker(() =>
                 {
                     MetroTaskWindow.ShowTaskWindow(Class2.newopen.Parent, "已经是最新版", new TaskWindowControl3(), 10);
                 }));
             }
         }
         catch (Exception)
         {
         }
     });
 }
コード例 #2
0
 public void RestartServicos()
 {
     if (Empresas.Configuracoes.Count == 0)
     {
         MetroFramework.MetroMessageBox.Show(this,
                                             "É necessário cadastrar e configurar a(s) empresa(s) que será(ão) gerenciada(s) pelo aplicativo.", "",
                                             MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     uninfeDummy.opServicos = uninfeOpcoes2.opRestartTasks;
     MetroTaskWindow.ShowTaskWindow(this, "", new NFe.UI.Formularios.UserControl2());
 }
コード例 #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            BringToFront();

            if (doPopUp)
            {
                const int timeout = 10;

                MetroTaskWindow.ShowTaskWindow("Update - Information", new PopUp(this), timeout);
            }
        }
コード例 #4
0
        //bool status = true;

        private void btnExit_Click(object sender, EventArgs e)
        {
            DialogResult dr = MetroFramework.MetroMessageBox.Show(this, "You Will Unable To Use Any Fuctions\nAre You Sure You Want to Skip the Log in", "Caution", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dr == DialogResult.Yes)
            {
                swipe(false);
                MetroTaskWindow.ShowTaskWindow(this, "No Log in Required", new GPUCalculatorTaskWindow(), 10);
            }
            else
            {
            }


            //status = false;

            //string stat = status.ToString()+"\n";
            //File.WriteAllText(Application.StartupPath + "..\\..\\..\\Files\\Status.txt", stat);
        }
コード例 #5
0
        private void ReplayCtrl_MouseClick(object sender, MouseEventArgs e)
        {
            try
            {
                if (SettingsManager.Settings.AdvancedGameInfo)
                {
                    gm = new AdvancedGameInfoControl();
                    ((AdvancedGameInfoControl)gm).LoadGame(stats, rep.MetaData, rep.PlayerInfos, bluewins);
                }
                else
                {
                    gm = new GameInfoControl();
                    ((GameInfoControl)gm).LoadGame(stats, rep.MetaData, rep.PlayerInfos, bluewins);
                }


                MetroTaskWindow.ShowTaskWindow(Program.MainFormInstance, rep.MetaData.gameKey.gameId.ToString(), gm, 60);
            }
            catch (Exception ex)
            {
                Logger.Instance.Log.Error("Failed to load game info Window", ex);
            }
        }
コード例 #6
0
 private void tbRestartServico_Click(object sender, EventArgs e)
 {
     uninfeDummy.opServicos = uninfeOpcoes2.opRestartServico;
     MetroTaskWindow.ShowTaskWindow(this, "", new NFe.UI.Formularios.UserControl2());
 }
コード例 #7
0
 private void metroButton1_Click(object sender, EventArgs e)
 {
     MetroTaskWindow.ShowTaskWindow(this, "SubControl in TaskWindow", new TaskWindowControl(), 10);
 }
コード例 #8
0
 private void mtUploadSch_Click(object sender, EventArgs e)
 {
     MetroTaskWindow.ShowTaskWindow(this, "Upload Via", new UploadScheduleTaskWindow(), 10);
 }
コード例 #9
0
 private void mtSchedule_Click(object sender, EventArgs e)
 {
     MetroTaskWindow.ShowTaskWindow(this, "Upload Via", new LecCheckSchTaskWindow(), 10);
 }