Exemplo n.º 1
0
        private FileInfoArray LoadFileInformations()
        {
            SetStatus(Properties.Resources.LoadingFileinformation);
            Uri adr;

            while (true)
            {
                try
                {
                    adr = new Uri(new Uri(address), "Bootstrapper.svc/GetFileInfos");
                    var filesBuffer = GetFileInfos(adr);
                    if (!string.IsNullOrEmpty(filesBuffer))
                    {
                        return(filesBuffer.FromXmlString <FileInfoArray>());
                    }
                }
                catch (UriFormatException)
                {
                }

                // Retry
                var dlg = new AddressDialog();
                dlg.ShowDialog();
                address = Properties.Settings.Default.Address;
            }
        }
Exemplo n.º 2
0
        private void Bootstrapper_Load(object sender, EventArgs e)
        {
#if INI50
            this.address = Program.Args.Length > 0 ? Program.Args[0] : "http://db-server/";
#else
            this.address = Program.Args.Length > 0 ? Program.Args[0] : Properties.Settings.Default.Address;
#endif

            if (string.IsNullOrEmpty(address))
            {
                var dlg = new AddressDialog();
                dlg.ShowDialog();
                address = Properties.Settings.Default.Address;
            }

            thread.Start();
        }
Exemplo n.º 3
0
        private void Bootstrapper_Load(object sender, EventArgs e)
        {
#if INI50
            this.address = Program.Args.Length > 0 ? Program.Args[0] : "http://db-server/";
#else
            this.address = Program.Args.Length > 0 ? Program.Args[0] : Properties.Settings.Default.Address;
#endif

            if (string.IsNullOrEmpty(address))
            {
                var dlg = new AddressDialog();
                dlg.ShowDialog();
                address = Properties.Settings.Default.Address;
            }

            thread.Start();
        }
Exemplo n.º 4
0
        private FileInfoArray LoadFileInformations()
        {
            SetStatus(Properties.Resources.LoadingFileinformation);
            Uri adr;
            while (true)
            {
                try
                {
                    adr = new Uri(new Uri(address), "Bootstrapper.svc/GetFileInfos");
                    var filesBuffer = GetFileInfos(adr);
                    if (!string.IsNullOrEmpty(filesBuffer))
                    {
                        return filesBuffer.FromXmlString<FileInfoArray>();
                    }
                }
                catch (UriFormatException)
                {
                }

                // Retry
                var dlg = new AddressDialog();
                dlg.ShowDialog();
                address = Properties.Settings.Default.Address;
            }
        }
Exemplo n.º 5
0
 private void ShowAddressDialog()
 {
     var dlg = new AddressDialog();
     dlg.ShowDialog();
     address = Properties.Settings.Default.Address;
     SetAddress();
 }