Exemple #1
0
        public static void Main(string[] args)
        {
            /* Init Gtk */
            Application.Init();

            Core.Init();

            /* Init GStreamer */
            GStreamer.Init();
            if (!GStreamer.CheckInstallation())
                return;

            GLib.ExceptionManager.UnhandledException += new GLib.UnhandledExceptionHandler(OnException);
            Version version = Assembly.GetExecutingAssembly().GetName().Version;

            try {
                AddinsManager manager = new AddinsManager(Path.Combine(Config.HomeDir(), "addins"));
                manager.LoadConfigModifierAddins();
                GUIToolkit guiToolkit = new GUIToolkit(version);
                IMultimediaToolkit multimediaToolkit = new MultimediaFactory();
                manager.LoadExportProjectAddins(guiToolkit.MainWindow);
                Core.Start(guiToolkit, multimediaToolkit);
                Application.Run();
            } catch(Exception ex) {
                ProcessExecutionError(ex);
            }
        }
Exemple #2
0
 public GUIToolkit(Version version)
 {
     Version    = version;
     mainWindow = new MainWindow(this);
     (mainWindow as MainWindow).Show();
     instance = this;
 }
Exemple #3
0
 public GUIToolkit(Version version)
 {
     Version    = version;
     mainWindow = new MainWindow(this);
     (mainWindow as MainWindow).Show();
     instance = this;
     registry = new Registry("GUI backend");
 }