Exemple #1
0
    public MainWindow(string configurationPath) : base(Gtk.WindowType.Toplevel)
    {
        // Loading configuration
        MediaConvertGUIConfiguration.Load(configurationPath);

        Build();

        // iapp icon
        var sep    = System.IO.Path.DirectorySeparatorChar;
        var buffer = System.IO.File.ReadAllBytes(System.IO.Path.Combine(SupportMethods.AppPath + sep + "Icons" + sep + "ico.ico"));

        var pixbuf = new Gdk.Pixbuf(buffer);

        Icon = pixbuf;


        TestPrerequisites();

        _fileTreeViewData = new TreeViewData(tree);
        CreateGridColumns();
        widgetTargetMovieTrack.Editable = true;
        widgetTargetContainer.Editable  = true;
        widgetSourceContainer.Editable  = false;

        _proressWindow = new ProgressWin();
        _proressWindow.Hide();

        tree.Selection.Mode = SelectionMode.Multiple;

        tree.CursorChanged += OnTreeCursorChanged;

        tree.ButtonPressEvent += OnTreeButtonPressEvent;

        FillTree();
    }
Exemple #2
0
 public void initializeProgressWin(int totalNumOfElements)
 {
     progressWin = new ProgressWin();
     progressWin.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     progressWin.SetProgress(0, string.Format("Finding elements 0/{0}", totalNumOfElements));
     progressWin.killWorker += cancelExternalEvent;
     progressWin.Show();
 }