AddToProjectHistory() static private method

static private AddToProjectHistory ( string path ) : void
path string
return void
Example #1
0
        private void ProjectsListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (ProjectsListBox.SelectedItem != null)
            {
                string path = (string)(ProjectsListBox.SelectedItem as ListBoxItem).Tag;

                EditorCommands.AddToProjectHistory(path);
                StartEditor(path);
            }
        }
Example #2
0
        private void newProjectBtn_Click(object sender, RoutedEventArgs e)
        {
            NewProjectWindow np = new NewProjectWindow();

            np.ShowDialog();

            // A project was created?
            if (np.DialogResult.Value)
            {
                EditorCommands.AddToProjectHistory(np.ProjectPath);
                StartEditor(np.ProjectPath);
            }
        }
Example #3
0
        private void browseBtn_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Title  = "Open project";
            ofd.Filter = @"(*.gibbo)|*.gibbo";

            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                EditorCommands.AddToProjectHistory(ofd.FileName);
                StartEditor(ofd.FileName);
            }
        }
Example #4
0
        private void loadBtn_Click(object sender, RoutedEventArgs e)
        {
            if (ProjectsListBox.SelectedItem != null)
            {
                string path = (string)((ProjectsListBox.SelectedItem as ListBoxItem).Tag);

                EditorCommands.AddToProjectHistory(path);
                StartEditor(path);
            }
            else
            {
                System.Windows.MessageBox.Show("No project selected!\nPlease select from the list, browser or create a new project..", "Ups", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Example #5
0
        /// <summary>
        /// Loads a saved project
        /// </summary>
        internal static bool LoadProject()
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Title  = "Open project";
            ofd.Filter = @"(*.gibbo)|*.gibbo";

            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadProject(ofd.FileName);
                EditorCommands.AddToProjectHistory(ofd.FileName);
            }

            EditorCommands.ShowOutputMessage("Project loaded with success");

            return(false);
        }