예제 #1
0
        public static Boolean showDialog(EDDiscoveryForm discoveryForm, out string systemName, out double radius)
        {
            ImportSphere prompt = new ImportSphere(discoveryForm);
            var          res    = prompt.ShowDialog(discoveryForm);

            systemName = prompt.txtExportVisited.Text;
            bool worked = Double.TryParse(prompt.txtsphereRadius.Text, out radius);

            if (!worked)
            {
                Forms.MessageBoxTheme.Show("Radius in wrong format", "Spehere error");
            }

            return(res == DialogResult.OK && worked);
        }
예제 #2
0
        public static Boolean showDialog(EDDiscoveryForm discoveryForm, out string systemName, out double radius, Form owner)
        {
            owner = owner ?? discoveryForm;

            ImportSphere prompt = new ImportSphere(discoveryForm);

            prompt.Icon = owner.Icon;

            EDDTheme.Instance.ApplyToFormStandardFontSize(prompt);

            var res = prompt.ShowDialog(owner);

            systemName = prompt.txtExportVisited.Text;
            radius     = prompt.txtsphereRadius.Value;

            return(res == DialogResult.OK);
        }