コード例 #1
0
        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);
                    }
                }
            }
        }
コード例 #2
0
 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);
             }
         }
     }
 }