Exemplo n.º 1
0
        private void textBoxProjectName_LostFocus(object sender, RoutedEventArgs e)
        {
            string newName = textBoxProjectName.Text;
            string oldname = propertiesForm.value.Name;

            if (newName != oldname)
            {
                propertiesForm.AddTask(new Task(
                                           () =>
                {
                    ((BrowseProject)propertiesForm.CalledControl).RenameProject(oldname, newName);
                }));
            }
        }
Exemplo n.º 2
0
        private void ComboFont_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            if (ComboFont.SelectedValue == null)
            {
                return;
            }
            double font = Convert.ToDouble(ComboFont.SelectedValue);

            ParentControl.AddTask(new Task(
                                      () =>
            {
                if (font != ((BrowseProject)ParentControl.CalledControl).ParentControl.defaultFont)
                {
                    ((BrowseProject)ParentControl.CalledControl).ParentControl.defaultFont = font;
                }
            }));
        }