示例#1
0
        public MainWindow()
        {
            avsrepo = new AvsApi();
            Plugins = new AvsPlugins();

            //High dpi 288 fix so it won't cut off the title bar on start
            if (Height > SystemParameters.WorkArea.Height)
            {
                Height = SystemParameters.WorkArea.Height;
                Top    = 2;
            }


            InitializeComponent();

            // init Jot Settings Tracker
            //SettingsService.Tracker.Configure<MainWindow>().Property(w => w.showedFirstTimeSettingsAvs);
            //SettingsService.Tracker.Configure<MainWindow>().Property(w => w.Avs64Paths);
            //SettingsService.Tracker.Configure<MainWindow>().Property(w => w.Avs32Paths);
            SettingsService.Tracker.Track(this);
            //showedFirstTimeSettingsAvs = false;


            AddChatter(avsrepo);

            AppTitle = "AVSRepoGUI - A simple plugin manager for AviSynth | " + version;
            InitAvisynth();

            Win64 = Environment.Is64BitOperatingSystem; // triggers checkbox changed event

            /*  // Show AviSynth plugin settings window on first start
             * if(!IsVsrepo && !showedFirstTimeSettingsAvs)
             * {
             *    SettingsWindow wizardDialog = new SettingsWindow();
             *    wizardDialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
             *    _ = wizardDialog.ShowDialog();
             *
             *    if (wizardDialog != null)
             *    {
             *        Avs32Paths = wizardDialog.Path32;
             *        Avs64Paths = wizardDialog.Path64;
             *        showedFirstTimeSettingsAvs = true;
             *    }
             * }*/
        }
示例#2
0
 public void AddChatter(AvsApi chatter)
 {
     //avsrepo.Add(chatter);
     chatter.PropertyChanged += chatter_PropertyChanged;
 }