Exemplo n.º 1
0
 public NitriqEditor()
 {
     this.InitializeComponent();
     this.editorDocument_0.SetText(this.Code);
     this.editorDocument_0.Language      = NitriqEditor.LoadLanguageDefinitionFromResourceStream("Nitriq.Wpf.CSharp.langdef");
     this.editorDocument_0.TextChanging += new EventHandler <TextSnapshotChangingEventArgs>(this.method_0);
     this.editorDocument_0.TextChanged  += new EventHandler <TextSnapshotChangedEventArgs>(this.method_1);
 }
Exemplo n.º 2
0
        private static void smethod_1(DependencyObject dependencyObject_0, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs_0)
        {
            NitriqEditor nitriqEditor = dependencyObject_0 as NitriqEditor;

            if (nitriqEditor != null)
            {
                nitriqEditor.OnCodeChanged((string)dependencyPropertyChangedEventArgs_0.OldValue, (string)dependencyPropertyChangedEventArgs_0.NewValue);
            }
        }
Exemplo n.º 3
0
        private static object smethod_0(DependencyObject dependencyObject_0, string string_0)
        {
            NitriqEditor nitriqEditor = dependencyObject_0 as NitriqEditor;
            object       result;

            if (nitriqEditor != null)
            {
                result = nitriqEditor.OnCoerceCode((string)string_0);
            }
            else
            {
                result = string_0;
            }
            return(result);
        }