Exemple #1
0
        public MainWindow()
        {
            Instance = this;
            InitializeComponent();
            Manager       = new GAManager();
            soundControls = Enumerable.Range(0, 9)
                            .Select(i =>
            {
                var item = new SoundItemControl(i, this);
                item.SetValue(Grid.RowProperty, i / 3);
                item.SetValue(Grid.ColumnProperty, i % 3);
                return(item);
            })
                            .ToArray();
            foreach (var item in soundControls)
            {
                grid.Children.Add(item);
            }
            recorder = new AudioLib.Recorder();
            analyzer = new AnalyzeWindow();
            analyzer.Show();
            new AutoGAWindow().Show();

            var args = Environment.GetCommandLineArgs();

            if (args.Length == 2)
            {
                LoadGaResult(args[1]);
            }
        }
Exemple #2
0
 public AnalyzeWindow()
 {
     InitializeComponent();
     Window = this;
 }