~bas-dotbas/do/win32-next

« back to all changes in this revision

Viewing changes to Do/src/Main.cs

  • Committer: djsiegel at gmail
  • Date: 2007-10-13 21:55:22 UTC
  • Revision ID: djsiegel@gmail.com-20071013215522-n0vjgog0tyjfnpno
Restructured plugins library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Main.cs created with MonoDevelop
2
 
// User: dave at 12:14 AM 8/22/2007
3
 
//
4
 
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
5
 
//
6
 
 
7
 
using System;
8
 
using Gtk;
9
 
 
10
 
using Do.Core;
11
 
using Do.DBusLib;
12
 
 
13
 
namespace Do
14
 
{
15
 
        
16
 
        public class MainClass {
17
 
                
18
 
                public static void Main (string[] args) {
19
 
                        ICommander commander;
20
 
                        
21
 
                        Application.Init ();
22
 
                        
23
 
                        Globals.Initialize ();
24
 
                        
25
 
                        commander = DBusRegistrar.GetCommanderInstance ();
26
 
                        if (commander != null) {
27
 
                                commander.Show ();
28
 
                                System.Environment.Exit (0);
29
 
                        }
30
 
                        commander = DBusRegistrar.RegisterCommander (new DefaultCommander ());
31
 
                        commander.Show ();
32
 
                        
33
 
                        Application.Run ();
34
 
                }
35
 
        }
36
 
}