Ejemplo n.º 1
0
        void NewStationToolStripMenuItemClick(object sender, EventArgs e)
        {
            if (_currentProject != null)
            {
                NewStationForm newStatForm = new NewStationForm(_currentProject);
                if (newStatForm.ShowDialog() == DialogResult.OK)
                {
                    _currentProject = newStatForm.UpdatedProject;
                    ProjectDAO.UpdateProject(_currentProject.Name, _currentProject);

                    PopulateTree();
                }
            }
            else
            {
                MessageBox.Show("There is no current project");
            }
        }
Ejemplo n.º 2
0
		void NewStationToolStripMenuItemClick(object sender, EventArgs e)
		{
			if(_currentProject!=null)
			{
				NewStationForm newStatForm = new NewStationForm(_currentProject);
				if (newStatForm.ShowDialog()==DialogResult.OK)
				{
					_currentProject=newStatForm.UpdatedProject;
					ProjectDAO.UpdateProject(_currentProject.Name,_currentProject);
					
					PopulateTree();
				}
			}
			else
			{
				MessageBox.Show("There is no current project");
			}

		}