static ApplicationWindows() { try { DashboardWindow = new DashboardWindow(); MetadataWindow = new AddonMetadataWindow(); AddonWindow = new AddonWindow(); PluginWindow = new PluginWindow(); TypeWindow = new TypeWindow(); InstanceWindow = new InstanceWindow(); ActionWindow = new ActionWindow(); ConditionWindow = new ConditionWindow(); ExpressionWindow = new ExpressionWindow(); LanguageWindow = new LanguageWindow(); TestWidnow = new TestWindow(); OptionsWindow = new OptionsWindow(); FindAndReplaceWindow = new SearchAndReplaceWindow(); EffectPropertiesWindow = new EffectPropertiesWindow(); EffectParameterWindow = new EffectParameterWindow(); EffectCodeWindow = new EffectCodeWindow(); C2Runtime = new C2RuntimeWindow(); CssWindow = new CssWindow(); } catch (Exception ex) { LogManager.AddErrorLog(ex); throw; } }
protected void WatermarkTextBoxExpression_PreviewMouseDown(object sender, MouseButtonEventArgs e) {//method implemented for WatermarkTextBox var textBox = ((WatermarkTextBox)sender); ExpressionWindow window = textBox.Text == "" ? new ExpressionWindow(Fluents) : new ExpressionWindow(Fluents, textBox.Text); var dialogResult = window.ShowDialog(); if (dialogResult == false) { return; } textBox.Text = window.Expression; Keyboard.ClearFocus(); }