Example #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;
            }
        }
Example #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();
        }
Example #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();
        }
Example #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;
            }
        }
Example #5
0
 private void ShowAddressDialog()
 {
     var dlg = new AddressDialog();
     dlg.ShowDialog();
     address = Properties.Settings.Default.Address;
     SetAddress();
 }