Ejemplo n.º 1
0
        private void FormSettings_Load(object sender, EventArgs e)
        {
            this.ControlBox = false;
            this.Text       = "Repository Settings";

            string repozFolderName = null;

            repozFolderName = db.GetRepozName();
            if (repozFolderName == "No repository loaded")
            {
                txtRepozName.Enabled    = true;
                btnSelectFolder.Enabled = true;
            }
            else
            {
                txtRepozName.Enabled    = false;
                btnSelectFolder.Enabled = false;
            }

            db.LoadCombo(comboTeamMemberRole, "name", @"SELECT name FROM t_role");
            listViewUsers.Items.Clear();
            string sqlString = string.Format(@"SELECT DISTINCT * FROM t_members"); //Load list of all users

            db.LoadVeiwListUsers(listViewUsers, sqlString);
        }
Ejemplo n.º 2
0
        private void FormLogin_Load(object sender, EventArgs e)
        {
            glob.ProjectName = null;
            glob.loggedUser  = null;
            glob.passLevel   = 0;
            string sqlString = @"SELECT username FROM t_members;";

            db.LoadCombo(comboUsers, "username", sqlString);
        }
Ejemplo n.º 3
0
        private void FormProjectSettings_Load(object sender, EventArgs e)
        {
            this.Text = "Project settings";
            string sqlString = null;
            Baza   db        = new Baza();

            labRepozName.Text  = db.GetRepozName();
            labLoggedUser.Text = glob.loggedUser;
            labProjName.Text   = glob.ProjectName;
            sqlString          = @"SELECT username FROM t_members;";
            db.LoadCombo(comboUsers, "username", sqlString);
            listProjectTeam.Items.Clear();
            sqlString = string.Format(@"SELECT username FROM t_team WHERE project like'{0}';", glob.ProjectName);
            db.LoadTextList(listProjectTeam, "username", sqlString);
            sqlString = string.Format(@"SELECT filename FROM t_doc WHERE project like'{0}';", glob.ProjectName);

            db.LoadTextList(listBoxDoc, "filename", sqlString);
        }