Esempio n. 1
0
 private void AddChildProject(JadeCore.Project.IProject p)
 {
     Project project = new Project(this, p);
     Children.Add(project);
 }
Esempio n. 2
0
 private bool CanDoRemoveProject(Project project)
 {
     return true;
 }
Esempio n. 3
0
 private void AddChildProject(JadeData.Project.IProject p)
 {
     Project project = new Project(_workspace, this, p);
     project.RemoveCommand.Attach(param => OnRemoveProject(param), param => CanDoRemoveProject(param));
     Children.Add(project);
 }
Esempio n. 4
0
        private void OnRemoveProject(Project project)
        {
            if (JadeControls.GuiUtils.ConfirmYNAction("Do you want remove Project " + project.DisplayName + "?") == false)
                return;

            if (Children.Contains(project) && _data.RemoveProject(project.DisplayName))
            {
                Children.Remove(project);
                _workspace.Modified = true;
                OnPropertyChanged("Children");
                return;
            }
        }