Beispiel #1
0
        public Catalogador(FrmPrincipal form)
        {
            this.form = form;

            diretorioOrdem = new DiretorioOrdem();

            listaAbas           = new List <Aba>();
            listaExtensoes      = new List <Extensao>();
            listaDiretorioPai   = new List <Diretorio>();
            listaDiretorioFilho = new List <Diretorio>();
            listaArquivos       = new List <Diretorio>();

            form.SPPesquisa.Child2.Visible = false;

            form.GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.Watch);
            FrmSplash          frmSplash          = new FrmSplash();
            FrmSplashProgresso frmSplashProgresso = new FrmSplashProgresso(frmSplash);

            frmSplash.Show();

            CarregarDados(frmSplashProgresso, true, true);
            CarregarAbas();
            tabPanelMudou();

            frmSplash.Hide();
            frmSplash.Destroy();

            form.GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.Arrow);
        }
        public Catalogador(FrmPrincipal form)
        {
            this.form = form;

            diretorioOrdem = new DiretorioOrdem();

            listaAbas           = new List <Aba>();
            listaExtensoes      = new List <Extensao>();
            listaDiretorioPai   = new List <Diretorio>();
            listaDiretorioFilho = new List <Diretorio>();
            listaArquivos       = new List <Diretorio>();

            form.spPesquisa.Panel2Collapsed = true;

            form.Cursor = Cursors.WaitCursor;
            FrmSplash          frmSplash          = new FrmSplash();
            FrmSplashProgresso frmSplashProgresso = new FrmSplashProgresso(frmSplash);

            frmSplash.Show();
            frmSplash.Update();
            CarregarDados(frmSplashProgresso, true, true);
            CarregarAbas();
            tabPanelMudou();

            frmSplash.Close();
            frmSplash.Dispose();

            form.Cursor = Cursors.Default;
        }