private void ContentEditor_TextChanged(object sender, EventArgs e)
 {
     if (AutoRefreshCheckbox.IsChecked.Value)
     {
         if (!_RefreshDiagramTimerStarted)
         {
             _RefreshDiagramTimerStarted = true;
             ParallelWork.StartAfter(SaveAndRefreshDiagram,
                                     TimeSpan.FromSeconds(
                                         int.Parse(RefreshSecondsTextBox.Text)));
         }
     }
 }
Exemple #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (!CheckGraphViz())
            {
                this.Close();
                return;
            }

            this.DiagramLocationTextBox.Text = string.IsNullOrEmpty(Settings.Default.LastPath) ?
                                               System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
                                                                      "PlantUmlEditor\\samples\\") : Settings.Default.LastPath;

            // After a while check for new version
            ParallelWork.StartAfter(CheckForUpdate, TimeSpan.FromMinutes(1));
        }