Exemplo n.º 1
0
 private void ReporteNomina_Load(object sender, EventArgs e)
 {
     if (splash.IsSplashFormVisible.Equals(true))
     {
         splash.CloseWaitForm();
     }
 }
 private void SucursalesBancarias_Load(object sender, EventArgs e)
 {
     this.LlenaTabla();
     if (splash.IsSplashFormVisible.Equals(true))
     {
         splash.CloseWaitForm();
     }
 }
Exemplo n.º 3
0
 public void ShowWaitForm()
 {
     if (splash.IsSplashFormVisible)
     {
         splash.CloseWaitForm();
     }
     splash.ShowWaitForm();
 }
Exemplo n.º 4
0
        static void Main()
        {
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
            Application.EnableVisualStyles();

            Application.SetCompatibleTextRenderingDefault(false);

            RegisterFrm   registerFrm = null;
            SimpleLoading loadingfrm  = new SimpleLoading(registerFrm);
            //将Loaing窗口,注入到 SplashScreenManager 来管理
            SplashScreenManager loading = new SplashScreenManager(loadingfrm);

            //判断是否已经有实例在运行
            Process instance = RunningInstance();

            if (instance == null) //没有实例在运行
            {
                loading.ShowLoading();
                //try catch 包起来,防止出错
                try
                {
                    CheckoutModel checkoutModel = new CheckoutModel();
                    string        a = string.Empty, b = string.Empty;
                    checkoutModel.res = RegeditTime.InitRegedit(ref a, ref b, checkoutModel.path, checkoutModel.registerCodeName);

                    checkoutModel.sericalNumber = a;
                    checkoutModel.registerCode  = b;

                    LogHelper.WriteLine("程序主入口: 注册结果:" + checkoutModel.res + ",激活码:" + checkoutModel.sericalNumber + ",注册码:" +
                                        "" + checkoutModel.registerCode + "");

                    loading.CloseWaitForm();

                    registerFrm = new RegisterFrm(checkoutModel);
                    registerFrm.ShowDialog();//显示注册激活窗体

                    if (registerFrm.DialogResult == DialogResult.OK)
                    {
                        Application.Run(new HomeForm(checkoutModel, registerFrm.json));
                    }
                }
                catch (Exception e)
                {
                    loading.CloseWaitForm();
                    /*可选处理异常*/
                    LogHelper.WriteLine("程序主入口:" + e.Message.ToString());
                }
            }
            else //已经有一个实例在运行
            {
                //显示窗口
                ShowWindowAsync(instance.MainWindowHandle, 1);
                //窗口显示在最前端
                SetForegroundWindow(instance.MainWindowHandle);
            }
        }
Exemplo n.º 5
0
 private void Item_ItemClick(object sender, TileItemEventArgs e)
 {
     if (e.Item.Tag != null || File.Exists(e.Item.Tag.ToString()))
     {
         splashManager.ShowWaitForm();
         XSheetMain xshet = new XSheetMain(e.Item.Tag.ToString());
         this.Hide();
         xshet.Owner = this;
         splashManager.CloseWaitForm();
     }
 }
 //public void SetDeptCode()
 //{
 //    try
 //    {
 //        if (AppContext.AppConfig.deptCode == "1030400")
 //        {
 //            if (AppContext.AppConfig.deptCode != "1040300,1030400,1030601,1030602,1030603,1030604")
 //            {
 //                var map = new ExeConfigurationFileMap()
 //                { ExeConfigFilename = Environment.CurrentDirectory +
 //                        @"\Xr.RtScreen.exe.config" };
 //                var config = ConfigurationManager.OpenMappedExeConfiguration(map, ConfigurationUserLevel.None);
 //                config.AppSettings.Settings["deptCode"].Value = "1040300,1030400,1030601,1030602,1030603,1030604";
 //                config.Save();
 //                ConfigurationManager.RefreshSection("appSettings");
 //                AppContext.Load();
 //            }
 //        }
 //    }
 //    catch (Exception ex)
 //    {
 //        Log4net.LogHelper.Error("设置科室编码错误信息:" + ex.Message);
 //    }
 //}
 #endregion
 #region 获取主键
 /// <summary>
 /// 获取主键
 /// </summary>
 public void GetDoctorAndClinc()
 {
     try
     {
         var urls = string.Empty;
         if (AppContext.AppConfig.StartupScreen != "1" && AppContext.AppConfig.StartupScreen != "4")
         {
             urls = AppContext.AppConfig.serverUrl + InterfaceAddress.screenLogin + "?hospitalCode=" + AppContext.AppConfig.hospitalCode + "&deptCode=" + AppContext.AppConfig.deptCode + "&clinicName=" + AppContext.AppConfig.clinicName;
         }
         else
         {
             urls = AppContext.AppConfig.serverUrl + InterfaceAddress.screenLogin + "?hospitalCode=" + AppContext.AppConfig.hospitalCode + "&deptCode=" + AppContext.AppConfig.deptCode;
         }
         var datass = HttpClass.httpPost(urls);
         var objTss = JObject.Parse(datass);
         if (string.Compare(objTss["state"].ToString(), "true", true) == 0)
         {
             var list = objTss["result"].ToObject <List <StardIsFrom> >();
             HelperClass.hospitalId = list[0].hospitalId;
             HelperClass.deptId     = list[0].deptId;
             if (list[0].clinicId == null)
             {
                 HelperClass.clincId = string.Empty;
             }
             else
             {
                 HelperClass.clincId = list[0].clinicId;
             }
         }
         else
         {
             loading.CloseWaitForm();
             MessageBoxUtils.Show(objTss["message"].ToString(), MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1, null);
             Close();
         }
     }
     catch (Exception ex)
     {
         loading.CloseWaitForm();
         MessageBoxUtils.Show("程序启动出现错误,请检查后重启", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1, null);
         Log4net.LogHelper.Error("叫号获取科室和医院主键错误信息:" + ex.Message);
         Close();
     }
     finally
     {
         loading.CloseWaitForm();
     }
 }
Exemplo n.º 7
0
        public AgregarCliente(SplashScreenManager splashScreenManager)
        {
            try
            {
                splash = splashScreenManager;
                InitializeComponent();


                // This line of code is generated by Data Source Configuration Wizard
                // Fill a SqlDataSource
                sqlDataSource1.Fill();
                // This line of code is generated by Data Source Configuration Wizard
                // Fill a SqlDataSource
                sqlDataSource1.Fill();
                // This line of code is generated by Data Source Configuration Wizard
                // Fill a SqlDataSource
                sqlDataSource1.Fill();
                // This line of code is generated by Data Source Configuration Wizard
                // Fill a SqlDataSource
                sqlDataSource1.Fill();
                // This line of code is generated by Data Source Configuration Wizard
                // Fill a SqlDataSource
                sqlDataSource1.Fill();
            }catch (Exception e)
            {
                if (splash.IsSplashFormVisible.Equals(true))
                {
                    splash.CloseWaitForm();
                }
                XtraMessageBox.Show(e.Message);
            }
        }
Exemplo n.º 8
0
        //private void btnGetData_Click(object sender, EventArgs e)
        //{

        //    using (var context = new DataModelEntities())
        //    {
        //        var data = context.Web_ItemLibrary
        //            .Where(o => o.IsDelete.ToString().Equals("0"))
        //            .OrderByDescending(o => o.CreateDate)
        //            .ToList();

        //        MessageBox.Show($"DataCount:{data.Count()}");
        //        Debug.WriteLine("DataCount:" + data.Count());

        //    }

        //}

        private void btnStart_Click(object sender, EventArgs e)
        {
            SimpleLoading loadingfrm = new SimpleLoading(this);
            //将Loaing窗口,注入到 SplashScreenManager 来管理
            SplashScreenManager loading = new SplashScreenManager(loadingfrm);

            loading.ShowLoading();
            using (var context = new DataModelEntities())
            {
                var data = context.Web_ItemLibrary
                           .Where(o => o.IsDelete.ToString().Equals("0"))
                           .OrderByDescending(o => o.CreateDate)
                           .ToList();

                if (data.Any())
                {
                    loading.CloseWaitForm();
                }
            }


            return;


            Task task = Task.Run(() =>
            {
                TitleImgCopy();
            });

            btnStart.Enabled = task.IsCompleted;
        }
Exemplo n.º 9
0
 private void DescargarArchivos_Load(object sender, EventArgs e)
 {
     //lookUpCliente.Properties.KeyMember = "ID";
     //lookUpEmpresa.CascadingOwner = lookUpCliente;
     //lookUpEmpresa.Properties.CascadingMember = "ResumenNominaIDCliente";
     splash.CloseWaitForm();
 }
Exemplo n.º 10
0
        private void ExportAllData(string text)
        {
            string selectedPath            = string.Empty;
            FolderBrowserDialog fileDialog = new FolderBrowserDialog();

            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                selectedPath = fileDialog.SelectedPath;
            }

            if (string.IsNullOrEmpty(selectedPath) == true)
            {
                return;
            }
            string folderPath = string.Empty;

            using (var ssm = new SplashScreenManager(this, typeof(SysWaitForm), true, true))
            {
                ssm.ShowWaitForm();
                ssm.SetWaitFormDescription("正在" + text + "保存...");
                folderPath = Path.Combine(selectedPath, "ExportpData");
                this.ExportDataToPath(folderPath);
                ssm.CloseWaitForm();
                MessageBox.Show(this, "全部数据" + text + "成功!文件夹名:ExportpData", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            Process.Start(folderPath);
        }
Exemplo n.º 11
0
 public void CloseWaitForm()
 {
     if (ssm.IsSplashFormVisible)
     {
         ssm.CloseWaitForm();
     }
 }
Exemplo n.º 12
0
 private void BancosEmpresa_Load(object sender, EventArgs e)
 {
     if (splash.IsSplashFormVisible.Equals(true))
     {
         splash.CloseWaitForm();
     }
 }
Exemplo n.º 13
0
 protected void AfterOperation()
 {
     if (_splash.IsSplashFormVisible && _ativo)
     {
         _splash.CloseWaitForm();
     }
 }
Exemplo n.º 14
0
        public AgregarEmpresa(bool listado, SplashScreenManager screenManager)
        {
            splash = screenManager;
            InitializeComponent();

            // This line of code is generated by Data Source Configuration Wizard
            // Fill a SqlDataSource
            sqlDataSource1.Fill();
            // This line of code is generated by Data Source Configuration Wizard
            // Fill a SqlDataSource
            sqlDataSource1.Fill();
            // This line of code is generated by Data Source Configuration Wizard
            // Fill a SqlDataSource
            sqlDataSource1.Fill();
            // This line of code is generated by Data Source Configuration Wizard
            // Fill a SqlDataSource
            sqlDataSource1.Fill();
            // This line of code is generated by Data Source Configuration Wizard
            // Fill a SqlDataSource
            sqlDataSource1.Fill();

            //XtraMessageBox.Show(listado.ToString());
            listadoEmpresas = listado;
            splash.CloseWaitForm();
        }
Exemplo n.º 15
0
        private void HistoryForm_Load(object sender, EventArgs e)
        {
            this.label1.Text = modelTets.propName + "检测项折线图";
            SimpleLoading loadingfrm = new SimpleLoading(this);
            //将Loaing窗口,注入到 SplashScreenManager 来管理
            SplashScreenManager loading = new SplashScreenManager(loadingfrm);

            loading.ShowLoading();
            try
            {
                if (modelTets.propName == "中医体质辨识")
                {
                    this.pal_home_fill_fill_fill_top.Visible = false;
                }
                MySendDataTableData += this.ucTestGridTable1.BindingData;
                SetCartesianChartData();
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message.ToString());
            }
            finally
            {
                loading.CloseWaitForm();
            }
        }
Exemplo n.º 16
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            Stopwatch watch = new Stopwatch();

            watch.Start();

            this.btnStart.Enabled = false;

            List <Web_ItemLibrary> allData = new List <Web_ItemLibrary>();

            SimpleLoading       loadingfrm = new SimpleLoading(this);
            SplashScreenManager loading    = new SplashScreenManager(loadingfrm);

            loading.ShowLoading();

            //临时数据
            //  8a8632fe-fcb0-4e56-b4b9-7bc965885994  =  https://www.pic.jzbl.com/ItemFiles/0d54bf62-e42b-460b-aab4-7e6bd1990221/8a8632fe-fcb0-4e56-b4b9-7bc965885994/6367115379197304639880898.jpg  直接得到原图
            //  91fbcff0-304c-4fa6-b3d7-3f6662cd609a  =  https://www.pic.jzbl.com/ItemFiles/8b166b7c-d1cf-47b2-806a-3a81ee78b6e3/91fbcff0-304c-4fa6-b3d7-3f6662cd609a/6368089569974537847086484_small.jpg  去_small得到原图

            //  3a966d22-56ba-4d23-9ab5-0355523d1604  =  https://www.pic.jzbl.com/itemFiles/6760efac-e98b-4539-adf3-a842280803dd/2019-09-21/3a966d22-56ba-4d23-9ab5-0355523d1604/i/s/ca4e0b991569072379.jpg  去/s/ 得到原图

            //  9a599ffe-039c-4886-a28c-1936b5e4e5eb  =  https://www.pic.jzbl.com/itemFiles/8e5dc0f7-ed86-4d3c-89db-3a8593f6a2d7/2020-03-02/9a599ffe-039c-4886-a28c-1936b5e4e5eb/i/s/950b1f8a1583157228.jpg  去/s/ 加ori_ 得到原图
            //string[] tdata = { "8a8632fe-fcb0-4e56-b4b9-7bc965885994", "91fbcff0-304c-4fa6-b3d7-3f6662cd609a", "3a966d22-56ba-4d23-9ab5-0355523d1604"}; //"9a599ffe-039c-4886-a28c-1936b5e4e5eb"
            string[] tdata = { "8a8632fe-fcb0-4e56-b4b9-7bc965885994", "3a966d22-56ba-4d23-9ab5-0355523d1604" }; //"9a599ffe-039c-4886-a28c-1936b5e4e5eb"



            using (var context = new DataModelEntities())
            {
                //排除
                //allData = context.Web_ItemLibrary
                //    .Where(o => o.IsDelete == 0 && !string.IsNullOrEmpty(o.ItemContentBefore))
                //    // .Take(50)
                //    .OrderByDescending(o => o.CreateDate)
                //    .ToList();
                allData = context.Web_ItemLibrary
                          .Where(o => tdata.Contains(o.ItemId))
                          .OrderByDescending(o => o.CreateDate)
                          .ToList();

                if (allData.Any())
                {
                    loading.CloseWaitForm();
                }
            }
            gjxm = allData.Count;

            this.tsslgyxm.Text = $"共计项目:{gjxm},有效项目{0}";
            this.tsslgj.Text   = 0.ToString();

            this.ContentImgUploadToOSS(allData, watch);

            //Task task = Task.Run(() =>
            //{
            //    this.ContentImgUploadToOSS(allData, watch);
            //    //this.ContentImgDataCopy(allData, watch);
            //});

            // this.btnStart.Enabled = task.IsCompleted;
        }
Exemplo n.º 17
0
        private void UserSelectForm_Load(object sender, EventArgs e)
        {
            ucDatePickerExt1.CurrentTime = DateTime.Now.AddMonths(-1);
            ucDatePickerExt2.CurrentTime = DateTime.Now;
            SimpleLoading       loadingfrm = new SimpleLoading(this);
            SplashScreenManager loading    = new SplashScreenManager(loadingfrm);

            loading.ShowLoading();
            try
            {
                homeForm                = (HomeForm)this.Owner.Owner;
                readIdCardFrm           = (ReadIdCardFrm)this.Owner;
                MySendDataUserInfoData += this.ucTestGridTableCustom1.BindingUserInfoData;
                BindingData();
                SetDataGridtableData();
            }
            catch (Exception ex)
            {
                LogHelper.WriteLine("UserSelectForm: " + ex.Message.ToString());
            }
            finally
            {
                loading.CloseWaitForm();
            }
        }
Exemplo n.º 18
0
 public static void StopWait()
 {
     if (splashManager.IsSplashFormVisible)
     {
         splashManager.CloseWaitForm();
     }
 }
Exemplo n.º 19
0
        private void ReadIdCardFrm_Load(object sender, EventArgs e)
        {
            this.lbl_Address.Text                               =
                this.lbl_Agency.Text                            =
                    this.lbl_Birthday.Text                      =
                        this.lbl_Code.Text                      =
                            this.lbl_ExpireEnd.Text             =
                                this.lbl_ExpireStart.Text       =
                                    this.lbl_Folk.Text          =
                                        this.lbl_Gender.Text    =
                                            this.lbl_Names.Text = "";
            InitFont();
            SimpleLoading loadingfrm = new SimpleLoading(this);
            //将Loaing窗口,注入到 SplashScreenManager 来管理
            SplashScreenManager loading = new SplashScreenManager(loadingfrm);

            loading.ShowLoading();
            try
            {
                Start1("5211336");
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                loading.CloseWaitForm();
            }
        }
Exemplo n.º 20
0
 private void ucChauffeur_Load(object sender, EventArgs e)
 {
     try
     {
         ChargerGrid();
         spl.CloseWaitForm();
     }
     catch (Exception ex)
     {
         if (spl.IsSplashFormVisible)
         {
             spl.CloseWaitForm();
         }
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 21
0
 /// <summary>
 /// Закрыть форму ожидания загрузки
 /// </summary>
 public void CloseWaitForm()
 {
     if (ssManager.IsSplashFormVisible)
     {
         ssManager.CloseWaitForm();
     }
 }
Exemplo n.º 22
0
 private static void SplashDurdur(SplashScreenManager manager)
 {
     if (manager.IsSplashFormVisible)
     {
         manager.CloseWaitForm();
     }
 }
Exemplo n.º 23
0
 /// <summary>单击事件
 /// 单击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BarButtonItem_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         //获取左侧栏的name值
         string strPageName = e.Link.Item.Name;
         string strCaption  = e.Link.Caption;
         string strUrl      = e.Link.Item.Tag.ToString();
         if (StaticInfoHelper.IsOpen == 0)
         {
             SplashScreenManager.ShowWaitForm();
             SplashScreenManager.SetWaitFormCaption("正在努力打开");
             SplashScreenManager.SetWaitFormDescription("第一个页面加载稍微慢点,稍等一会");
             OpenForm(this, strPageName, strCaption, strUrl);
             SplashScreenManager.CloseWaitForm();
             StaticInfoHelper.IsOpen = 1;
         }
         else if (StaticInfoHelper.IsOpen == 1)
         {
             OpenForm(this, strPageName, strCaption, strUrl);
         }
         tabControl.Visible = MdiChildren.Length <= 0;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void switchUC(UserControl uc)
 {
     spl.ShowWaitForm();
     panelConf.Controls.Clear();
     uc.Dock = panelConf.Dock;
     panelConf.Controls.Add(uc);
     spl.CloseWaitForm();
 }
Exemplo n.º 25
0
 private void frm_AddChargeCompteClient_Load(object sender, EventArgs e)
 {
     try
     {
         spl.CloseWaitForm();
         ChargerGrid();
         if (data != null) this.SetData();               
     }
     catch (Exception ex)
     {
         if (spl.IsSplashFormVisible)
         {
             spl.CloseWaitForm();
         }
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 26
0
        public virtual void Submit(SplashScreenManager splash)
        {
            splash.ShowWaitForm();
            ImportDate = DateTime.Now;
            AgentNo    = string.Empty;
            OrderNo    = string.Empty;

            if (string.IsNullOrWhiteSpace(OrderNo2))
            {
                splash.CloseWaitForm();
                XtraMessageBox.Show("订单号不能为空", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (string.IsNullOrWhiteSpace(AgentNo2))
            {
                splash.CloseWaitForm();
                XtraMessageBox.Show("DPD单号不能为空", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            string str       = "0123456789";
            string aGawbSign = "";

            for (int i = AgentNo2.Length - 1; i >= 0; i += -1)
            {
                if (str.LastIndexOf(AgentNo2.Substring(i, 1)) != 0)
                {
                    aGawbSign = AgentNo2.Substring(i, 1);
                    break;
                }
            }

            if (string.IsNullOrWhiteSpace(aGawbSign))
            {
                //获取最后一位的值
                aGawbSign = AgentNo2.Substring(AgentNo2.Length - 2, 1);
            }

            string sqlStr = $"INSERT INTO tb_SFI_TrackNum (vchar_SFInum, vchar_AGnum, int_AGid, vchar_updateUser, dttm_updateDttm,char_AG_Syn_sign) VALUES ('{OrderNo2}','{AgentNo2}','{SelectedAgent.AGid}','{MainFrm.CurrentUser}',GETDATE(),'{aGawbSign}');";

            sqlStr = $"{sqlStr} select * from tb_SFI_TrackNum where int_AGid={SelectedAgent.AGid} AND CONVERT(varchar(10),tb_SFI_TrackNum.dttm_updateDttm,112) ='{ImportDate.ToString("yyyyMMdd")}';";
            IList <SFITrackNum> tracks = SQLHelper.GetObject <SFITrackNum>(sqlStr).ToList();

            LoadNewAddedTrackNos(sqlStr);

            splash.CloseWaitForm();
        }
Exemplo n.º 27
0
 private void EmpresasPagoAsimilados_Load(object sender, EventArgs e)
 {
     this.GetNextID();
     this.LlenaTabla();
     if (splash.IsSplashFormVisible.Equals(true))
     {
         splash.CloseWaitForm();
     }
 }
Exemplo n.º 28
0
 public static void CloseWaitForm()
 {
     try
     {
         ssmWait.CloseWaitForm();
         ssmWait = null;
     }
     catch { }
 }
 private void fmr_AddProprietaire_Load(object sender, EventArgs e)
 {
     try
     {
         spl.CloseWaitForm();
         if (data != null)
         {
             this.SetData();
         }
     }
     catch (Exception ex)
     {
         if (spl.IsSplashFormVisible)
         {
             spl.CloseWaitForm();
         }
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 30
0
        public static void ExportGridToWord(GridView GridControl1, SplashScreenManager splashScreenManager1)
        {
            try
            {
                SaveFileDialog saveFileDialog = new SaveFileDialog();
                saveFileDialog.Filter       = "Files(*.RTF)|*.RTF";
                saveFileDialog.AddExtension = true;
                saveFileDialog.DefaultExt   = ".RTF";


                if (saveFileDialog.ShowDialog() == DialogResult.OK && saveFileDialog.CheckPathExists)
                {
                    if (splashScreenManager1 != null)
                    {
                        splashScreenManager1.ShowWaitForm();
                        splashScreenManager1.SetWaitFormDescription("Exporting..Please Wait");
                    }
                    GridControl1.ExportToRtf(saveFileDialog.FileName);

                    if (splashScreenManager1 != null)
                    {
                        splashScreenManager1.CloseWaitForm();
                    }

                    if (MessageBox.Show(@"Do you wish to open the RTF file now?", @"Export to RTF", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                    {
                        Process proc = new Process();
                        proc.StartInfo.FileName = saveFileDialog.FileName;
                        proc.Start();
                    }
                }
            }
            catch (Exception ex)
            {
                if (splashScreenManager1 != null && splashScreenManager1.IsSplashFormVisible)
                {
                    splashScreenManager1.CloseWaitForm();
                }


                MessageBox.Show(ex.ToString());
            }
        }
 //TODO Comment
 public static bool CheckConnectTimeOutWait(SplashScreenManager splashScreenManager)
 {
     if (IsConnectedToInternet() == false)
     {
         splashScreenManager.ShowWaitForm();
         //TODO Set Constant
         splashScreenManager.SetWaitFormCaption("Checking the network connection!");
         splashScreenManager.SetWaitFormDescription(SEDConst.SET_PLEASE_WAIT);
         Thread.Sleep(7000);
         splashScreenManager.CloseWaitForm();
         if (IsConnectedToInternet() == false)
         {
             //TODO Set Constant
             XtraMessageBox.Show("Connect Timout. Checking the network connection...!",
                 SEDConst.MESSAGE_WARNING_DISCONNECTED);
             return false;
         }
         return true;
     }
     return true;
 }
Exemplo n.º 32
0
 /// <summary>
 ///  隐藏进度条
 /// </summary>
 /// <param name="manager">进度条</param>
 /// <param name="showForm">需要显示的窗体</param>
 /// <param name="hideForm">需要隐藏的窗体</param>
 /// Author  : Napoleon
 /// Created : 2015-02-26 20:33:22
 protected void HideManager(SplashScreenManager manager, Form showForm, Form hideForm)
 {
     hideForm.Hide();
     manager.CloseWaitForm();
     showForm.Show();
 }