Ejemplo n.º 1
0
 private void saveAsToolStripMenuItem_Click(object sender, EventArgs e) //кнопка синхронизации с сервером
 {
     if (con != null)
     {
         Conection conection = new Conection();
         conection = con.Http_GET_id(url);
         Project project = new Project();
         project = conection.DeserProj();
         List <int>   counter = new List <int>();
         string       str     = project.WritePrList("", counter, project.levels);
         DialogResult result  = MessageBox.Show(str, "Syncing will replace your current project with this one.", MessageBoxButtons.OKCancel);
         if (result == DialogResult.OK)
         {
             con          = conection;
             projectsLock = project;
             prList       = str;
             rtbList.Text = prList;
         }
     }
 }