Beispiel #1
0
        public void GetDatabasePath()
        {
            DialogResult dr = new DialogResult();

            DatabasePath dataBasePath = new DatabasePath();
            dr = dataBasePath.ShowDialog();
            if (dr == DialogResult.OK)
            {
                path = dataBasePath.DataFilePath;
                Variables.accountName = Path.GetFileNameWithoutExtension(path);
                SetDatabasePath();
                this.Close();
            }
        }
Beispiel #2
0
        public void GetDatabasePath()
        {
            DialogResult dr = new DialogResult();

            DatabasePath dataBasePath = new DatabasePath();

            dr = dataBasePath.ShowDialog();
            if (dr == DialogResult.OK)
            {
                path = dataBasePath.DataFilePath;
                Variables.accountName = Path.GetFileNameWithoutExtension(path);
                SetDatabasePath();
                this.Close();
            }
        }