Esempio n. 1
0
        void OnIndexStart(object sender, EventArgs e)
        {
            IsBusy = true;
            IndexStart.Invoke(this, new EventArgs());

            txtInputBox.IsEnabled = false;
            btnSearch.IsEnabled   = false;

            txtMessages.Text = "Getting file...";
            var dictFilePath = "data/dict.dsl";
            var resource     = Application.GetResourceStream(new Uri(dictFilePath, UriKind.Relative));

            DictStream = resource.Stream;

            txtMessages.Text = "Indexing in proccess...";
            DictionaryData   = new DictionaryDataProvider(DictStream);

            IsInitialized    = true;
            txtMessages.Text = string.Empty;

            txtInputBox.IsEnabled = true;
            btnSearch.IsEnabled   = true;

            IndexEnd.Invoke(this, new EventArgs());
        }
Esempio n. 2
0
 public SliceExpression(SourceSpan span, Expression operand, IndexStart start, Expression offset, int length) : base(span)
 {
     this.Operand = operand;
     this.Offset  = offset;
     this.Length  = length;
     this.Start   = start;
 }
Esempio n. 3
0
 public int CompareTo(Marker other)
 {
     return(IndexStart.CompareTo(other.IndexStart));
 }
Esempio n. 4
0
        static void Main(string[] args)
        {
            IndexStart index = new IndexStart();

            index.begin();
        }
Esempio n. 5
0
        protected override void OnStart(string[] args)
        {
            IndexStart index = new IndexStart();

            index.begin();
        }