private void newProject()
        {
            ProjectWithFileNameEventHandler handlers = NewProjectCreated;

            if (handlers != null)
            {
                ProjectWithFileNameEventArgs args = new ProjectWithFileNameEventArgs(res.LanguageContent.Label_UntitledProjectName);
                handlers(this, args);

                //this.currentProjectFile = "Untitled.hsbip";
                OnProjectFileNameObtained();
            }
        }
        private void OpenProjectFile(string projectFileName)
        {
            ProjectWithFileNameEventArgs args = new ProjectWithFileNameEventArgs(projectFileName);

            ProjectWithFileNameEventHandler handlers = OpenProject;

            if (handlers != null)
            {
                handlers(this, args);
            }

            //this.currentProjectFile = projectFileName;
            OnProjectFileNameObtained();
        }
        private void saveProject()
        {
            if (File.Exists(this.presenter.CurrentProjectFile))
            {
                // project file already created
                ProjectWithFileNameEventArgs args = new ProjectWithFileNameEventArgs(this.presenter.CurrentProjectFile);

                ProjectWithFileNameEventHandler handlers = SaveProject;
                if (handlers != null)
                {
                    handlers(this, args);
                }

                OnProjectFileNameObtained();
            }
            else
            {
                saveProjectAs();
            }
        }
        private void saveProjectAs()
        {
            SaveFileDialog saveFile = new SaveFileDialog();

            saveFile.Filter = res.LanguageContent.Label_AllProjects + " (*.hsbip)|*.hsbip;";
            if (saveFile.ShowDialog() == DialogResult.OK)
            {
                string projectFileName = saveFile.FileName;
                if (!string.IsNullOrEmpty(projectFileName))
                {
                    ProjectWithFileNameEventArgs args = new ProjectWithFileNameEventArgs(projectFileName);

                    ProjectWithFileNameEventHandler handlers = SaveProjectAs;
                    if (handlers != null)
                    {
                        handlers(this, args);
                    }

                    //this.currentProjectFile = projectFileName;
                    OnProjectFileNameObtained();
                }
            }
        }