public void OnLoadPhyloDData() { OpenFileDialog openPhyloDDataFileDialog = new OpenFileDialog(); openPhyloDDataFileDialog.Title = "Select PhyloD Association Data Flat File..."; if (openPhyloDDataFileDialog.ShowDialog().Value) { PhyloDElements.Clear(); if (_orderedInteractions != null) { _orderedInteractions.Clear(); } else { _orderedInteractions = new Dictionary <int, List <PhyloDInteractionCircleViewModel> >(); } if (_allInteractions != null) { _allInteractions.Clear(); } else { _allInteractions = new List <PhyloDInteractionCircleViewModel>(); } string filename = openPhyloDDataFileDialog.FileName; SendMessage(CircleStructureBrowserMessages.ShowStatusMessage, "Loading PhyloD Data..."); new Thread(LoadPhyloDInteractions) { IsBackground = true, Name = "Association Loader Thread" }.Start(filename); } }
private void OnShowOnlyPhyloDInteractionsForPredictorIndex(int predictorIndex) { if (IsInteractionDataLoaded && IsInteractionDataFiltered) { PhyloDElements.Clear(); if (_orderedInteractions.ContainsKey(predictorIndex)) { foreach (var vm in _orderedInteractions[predictorIndex]) { PhyloDElements.Add(vm); } } } }