void mnuTimeLapse_Click(object sender, RoutedEventArgs e) { TimeConfigDialog dialog = new TimeConfigDialog(view); if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (!string.IsNullOrEmpty(dialog.TimeVariable)) { if (TimeVariableSet != null) { currentTimeVariable = dialog.TimeVariable; TimeVariableSet(dialog.TimeVariable); } } } }
public void CreateTimeLapse() { List<ILayerProperties> layers = layerList.Layers; List<DashboardHelper> dashboardHelpers = new List<DashboardHelper>(); foreach (ILayerProperties layer in layers) { if (layer.GetDashboardHelper() != null) { dashboardHelpers.Add(layer.GetDashboardHelper()); } } TimeConfigDialog dialog = new TimeConfigDialog(dashboardHelpers); if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (!string.IsNullOrEmpty(dialog.TimeVariable)) { if (TimeVariableSet != null) { currentTimeVariable = dialog.TimeVariable; TimeVariableSet(dialog.TimeVariable); } } } }