aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.UsersAndRoles/Views/OrganizationSelectionView.xaml.cs
blob: 16c8b2b24a2c146904ffebceaf140767a73dcaad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Tango.MachineStudio.UsersAndRoles.Views
{
    /// <summary>
    /// Interaction logic for OrganizationSelectionView.xaml
    /// </summary>
    public partial class OrganizationSelectionView : UserControl
    {
        public OrganizationSelectionView()
        {
            InitializeComponent();
        }
    }
}
an>public abstract CompletionItemPopupControl PopupControl { get; } public bool IsSelected { get { return (bool)GetValue(IsSelectedProperty); } set { SetValue(IsSelectedProperty, value); } } public static readonly DependencyProperty IsSelectedProperty = DependencyProperty.Register("IsSelected", typeof(bool), typeof(CompletionItem), new PropertyMetadata(false)); public virtual void Complete(ScriptEditor editor) { var word = editor.GetCurrentWord(); int index = editor.GetCurrentWordStartIndex(); int max = editor.GetCurrentLine().EndOffset; editor.Document.Replace(index, word.Length, GetCode()); } public abstract BitmapSource Image { get; } protected static BitmapSource GetImage(String name) { return new BitmapImage(new Uri($"pack://application:,,,/Tango.Scripting.Editors;component/Images/{name}", UriKind.Absolute)); } protected virtual String GetCode() { return Text; } public override string ToString() { return Text; } } }