Пример #1
0
        private void btnSignout_Click(object sender, EventArgs e)
        {
            frmSelectProject frmSelectProject = new frmSelectProject();

            frmSelectProject.ShowDialog();
            m_dbhelper = new Model.DatabaseHelper(Utility.GetCurrentListDbInfo());
            m_dbhelper.GetAllTableType();
            InitCbbTable(Model.DatabaseType.SQL);
            this.ToForm(ThisApp.currentSession);

            m_dbType = DatabaseType.SQL;
            if (rdSql.Checked)
            {
                m_dbType = DatabaseType.SQL;
            }
            if (rdMongo.Checked)
            {
                m_dbType = DatabaseType.Mongo;
            }
            if (rdNeo.Checked)
            {
                m_dbType = DatabaseType.Neo;
            }
            GetCurrentTable();
        }
Пример #2
0
        private void frmPrimary_Load(object sender, EventArgs e)
        {
            bool setup = Utility.BindDbInfoToProject();

            if (setup == false)
            {
                SetupConnection frmSetupDb = new SetupConnection();
                frmSetupDb.ShowDialog();
            }
            frmSelectProject frmSelectProject = new frmSelectProject();

            frmSelectProject.ShowDialog();
            m_dbhelper = new Model.DatabaseHelper(Utility.GetCurrentListDbInfo());
            m_dbhelper.GetAllTableType();
            InitCbbTable(Model.DatabaseType.SQL);

            m_dbType = DatabaseType.SQL;
            if (rdSql.Checked)
            {
                m_dbType = DatabaseType.SQL;
            }
            if (rdMongo.Checked)
            {
                m_dbType = DatabaseType.Mongo;
            }
            if (rdNeo.Checked)
            {
                m_dbType = DatabaseType.Neo;
            }
            GetCurrentTable();
            this.ToForm(ThisApp.currentSession);
        }