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); } }
public GUIToolkit(Version version) { Version = version; mainWindow = new MainWindow(this); (mainWindow as MainWindow).Show(); instance = this; }
public GUIToolkit(Version version) { Version = version; mainWindow = new MainWindow(this); (mainWindow as MainWindow).Show(); instance = this; registry = new Registry("GUI backend"); }