Exemplo n.º 1
0
 private void Open(string path)
 {
     _file = path;
     Properties.Settings.Default.LastProject = _file;
     _project = new Data.Project();
     JsonSerializer.Load(_project, Sjson.Load(_file));
     MarkSave();
     DisplayProject();
 }
Exemplo n.º 2
0
        public ReportForm(Data.Project project, Parser.Scanner scanner)
        {
            InitializeComponent();

            includedByListView.MouseDoubleClick += new MouseEventHandler(includedByListView_MouseDoubleClick);
            includesListView.MouseDoubleClick   += new MouseEventHandler(includedByListView_MouseDoubleClick);

            Setup(project, scanner);
        }
 partial void newProject(NSObject sender)
 {
     if (CheckSave())
     {
         _file    = null;
         _project = new Data.Project();
         DisplayProject();
         MarkSave();
     }
 }
Exemplo n.º 4
0
 private void newProjectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CheckSave())
     {
         _file    = null;
         _project = new Data.Project();
         DisplayProject();
         MarkSave();
     }
 }
Exemplo n.º 5
0
        public ReportForm(Data.Project project, Parser.Scanner scanner)
        {
            InitializeComponent();
            this.Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);

            includedByListView.MouseDoubleClick += new MouseEventHandler(includedByListView_MouseDoubleClick);
            includesListView.MouseDoubleClick   += new MouseEventHandler(includedByListView_MouseDoubleClick);

            Cursor.Current = Cursors.WaitCursor;
            Setup(project, scanner);
            Cursor.Current = Cursors.Default;
        }
        public override void FinishedLaunching(NSObject notification)
        {
            mainWindowController = new MainWindowController();
            mainWindowController.Window.MakeKeyAndOrderFront(this);

            string last_project = Properties.Settings.Default.LastProject;

            _project = new Data.Project();
            if (last_project != null && last_project != "" && System.IO.File.Exists(last_project))
            {
                Open(last_project);
            }
            DisplayProject();
        }
Exemplo n.º 7
0
        public MainForm()
        {
            InitializeComponent();

            _project = new Data.Project();
            DisplayProject();
            MarkSave();

            projectDirsTextBox.MouseDoubleClick += (_1, _2) => scan_AddDirectory_Click(_1, null);
            includeDirsTextBox.MouseDoubleClick += (_1, _2) => include_AddDirectory_Click(_1, null);

            string last = Properties.Settings.Default.LastProject;

            if (last != null && last != "" && File.Exists(last))
            {
                Open(last);
                scanToolStripMenuItem1_Click(null, null);
            }
        }