public FormStart() { InitializeComponent(); labRepozName.Text = db.GetRepozName(); //show repository name in label on the form(if repository is created and in t_repoz table). labLoggedUser.Text = glob.loggedUser; labRole.Text = glob.role; labLevel.Text = Convert.ToString(glob.passLevel); db.GetProjectsInCombo(comboProjects); labProjName.Text = glob.ProjectName; }
private void btnSettings_Click(object sender, EventArgs e) { FormSettings FrmSet = new FormSettings(); this.Hide(); FrmSet.ShowDialog(); this.Show(); //Refresh does not work, so....manualy :) Baza db = new Baza(); labRepozName.Text = db.GetRepozName(); //show repository name in label on the form(if repository is created and in t_repoz table). labProjName.Text = glob.ProjectName; db.GetProjectsInCombo(comboProjects); if (!String.IsNullOrEmpty(glob.ProjectName)) { comboProjects.Text = glob.ProjectName; } }
private void btnProjSet_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(glob.ProjectName) && glob.passLevel > 8) { FormProjectSettings FrmProjSet = new FormProjectSettings(); FrmProjSet.ShowDialog(); //Refresh does not work, so....manualy :) Baza db = new Baza(); labRepozName.Text = db.GetRepozName(); //show repository name in label on the form(if repository is created and in t_repoz table). labProjName.Text = glob.ProjectName; db.GetProjectsInCombo(comboProjects); listViewProjDoc.Items.Clear(); //Clear list, and load all file names from db (Query is hardcoded) db.LoadVeiwListProjectDocuments(listViewProjDoc); } else { MessageBox.Show("No active project or access level < 9"); } }