예제 #1
0
        public SkipperMDI(string path, string version, string aboutLicense)
        {
            _version      = version;
            _aboutLicense = aboutLicense;
            Splash s = new Splash(_version, _aboutLicense);

            s.ShowDialog();
            InitializeComponent();
            mainDP.ActiveAutoHideContent = null;
            mainDP.Name = "mainDP";
            mainDP.BringToFront();
            BusyDialogManager.SetParent(this);
            BusyDialogManager.Hide();
            this.Text = "VisualSail " + _version;
            this.Show();
            saveFD.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            openFD.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

            if (path.EndsWith(".sail"))
            {
                _loadedFile = path;
                TryLoadFile();
            }
            else
            {
                //setting this value invokes special code in LoadFile() which
                //will try to import it
                List <string> files = new List <string>();
                files.Add(path);
                NewFromGpsFiles(files);
            }
        }
예제 #2
0
 public SkipperMDI(string path,string version,string aboutLicense)
 {
     _version = version;
     _aboutLicense = aboutLicense;
     Splash s = new Splash(_version, _aboutLicense);
     s.ShowDialog();
     InitializeComponent();
     mainDP.ActiveAutoHideContent = null;
     mainDP.Name = "mainDP";
     mainDP.BringToFront();
     BusyDialogManager.SetParent(this);
     BusyDialogManager.Hide();
     this.Text = "VisualSail " + _version;
     this.Show();
     saveFD.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
     openFD.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
     
     if (path.EndsWith(".sail"))
     {
         _loadedFile = path;
         TryLoadFile();
     }
     else
     {
         //setting this value invokes special code in LoadFile() which 
         //will try to import it
         List<string> files = new List<string>();
         files.Add(path);
         NewFromGpsFiles(files);
     }
 }
예제 #3
0
 public SkipperMDI(string version,string aboutLicense)
 {
     _version = version;
     _aboutLicense = aboutLicense;
     Splash s = new Splash(_version, _aboutLicense);
     s.ShowDialog();
     InitializeComponent();
     mainDP.ActiveAutoHideContent = null;
     mainDP.Name = "mainDP";
     mainDP.BringToFront();
     BusyDialogManager.SetParent(this);
     BusyDialogManager.Hide();
     this.Text = "VisualSail " + _version;
     this.Show();
     saveFD.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
     openFD.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
     ShowGettingStarted();
 }
예제 #4
0
        public SkipperMDI(string version, string aboutLicense)
        {
            _version      = version;
            _aboutLicense = aboutLicense;
            Splash s = new Splash(_version, _aboutLicense);

            s.ShowDialog();
            InitializeComponent();
            mainDP.ActiveAutoHideContent = null;
            mainDP.Name = "mainDP";
            mainDP.BringToFront();
            BusyDialogManager.SetParent(this);
            BusyDialogManager.Hide();
            this.Text = "VisualSail " + _version;
            this.Show();
            saveFD.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            openFD.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            ShowGettingStarted();
        }