public PrimeTraderForm() { Trace.Listeners.Add(new TextWriterTraceListener(Console.Out)); Trace.AutoFlush = true; InitializeComponent(); CreateAllFormsList(); m_strategyFilesPanel = new FileListPanel(panelStrategyFiles, ".cs"); m_strategyFilesPanel.Text = "Strategy Files"; m_strategyFilesPanel.SelectedPath = Folders.DropboxFolders.strategy_folder; m_strategyFilesPanel.SelectedFileChanged += strategyFilesPanel_SelectedFileChanged; m_pricesForm = new IQFeed.GUI.PricesForm(); m_dataFrameForm = new DataFrameForm(); m_dataFrameFilesPanel = new FileListPanel(dataFrameFilePanel1, ".DF.csv"); m_dataFrameFilesPanel.Text = "DataFrame Files"; m_dataFrameFilesPanel.SelectedPath = folders.df_folder; m_dataFrameFilesPanel.SelectedFileChanged += dataFrameFilesPanel1_SelectedFileChanged; m_initialPanelRightWidth = panelDataRight.Width; historicalDataForm.UpdateDataFilesEvent += HistoricalDataForm_UpdateDataFilesEvent; }
private void CreateFilePanels() { GameObject newFilePanel; // get the file list foreach (string file in Directory.GetFiles(projectDirectory, searchPattern, SearchOption.AllDirectories)) { //Create this filelist panel newFilePanel = (GameObject)Instantiate(fileListPanelPrefab, fileScrollView.transform); // obtain the panel script FileListPanel panelScript = newFilePanel.GetComponentInChildren <FileListPanel>(); // set the filein the panel panelScript.File = file; panelScript.addFileSelectedListerner(onFileSelected); } ; }
private void strategyFilesPanel_SelectedFileChanged(FileListPanel p, FileSelectedArgs e) { /*strategyForm.DisplayStrategyCode(e.Pathname); * strategyForm.ShowInFront();*/ }