Exemplo n.º 1
0
 private void BtnRefreshSubPrj_Click(object sender, EventArgs e)
 {
     SaveParam();
     //We are ready to fetch the list of subproject
     if (MessageBox.Show("Should i try to fetch subproject list ?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         StringBuilder XmlDt  = SubProjectList.GetSubProjectList(TxtPrefix.Text);
         List <string> Result = ReadXml.GetValue(XmlDt.ToString(), "collection", "project");
         VarGlobale.SubProject = Result;
         CmBxSubPrj.Items.Clear();
         CmBxSubPrj.Items.AddRange(VarGlobale.SubProject.ToArray());
         CmBxSubPrj.Text = VarGlobal.PrefixUserName;
     }
 }
Exemplo n.º 2
0
 private void BtnCurSubPrj_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Should i try to fetch subproject list ?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         Cursor = Cursors.AppStarting;
         Application.DoEvents();
         StringBuilder XmlDt = SubProjectList.GetSubProjectList(VarGlobal.PrefixUserName);
         Application.DoEvents();
         List <string> Result = ReadXml.GetValue(XmlDt.ToString(), "collection", "project");
         VarGlobale.SubProject = Result;
         CmbxCurSubPrj.Items.Clear();
         CmbxCurSubPrj.Items.AddRange(VarGlobale.SubProject.ToArray());
         CmbxCurSubPrj.Text = VarGlobal.PrefixUserName;
         Cursor             = Cursors.Default;
     }
 }
Exemplo n.º 3
0
 private void BtnGetList_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Should i try to fetch project list (this could take few minutes) ?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         Cursor = Cursors.AppStarting;
         Application.DoEvents();
         StringBuilder XmlDt = SubProjectList.GetSubProjectList(string.Empty);
         Application.DoEvents();
         List <string> Result = ReadXml.GetValue(XmlDt.ToString(), "collection", "project");
         CmBxSubPrj.Items.Clear();
         CmBxSubPrj.Items.AddRange(Result.ToArray());
         if (CmBxSubPrj.Items.Count > 0)
         {
             CmBxSubPrj.SelectedIndex = 0;
         }
         Cursor = Cursors.Default;
     }
 }