Beispiel #1
0
        public string loading(string image)
        {
            word = loadword.LoadData(dir);
            image = word.image;
            //image1 = word.image;

            foreach (string item in word.s1)
            {
                keys.Add(item);
            }
            foreach (string item in word.s2)
            {
                paths.Add(item);
            }
            foreach (string item in word.s3)
            {
                rules.Add(item);
            }
            foreach (string item in word.s4)
            {
                actions.Add(item);
            }

            return image;
        }
Beispiel #2
0
        public void loading()
        {
            word = loadword.LoadData(dir);
            image = word.image;

            foreach (string item in word.s1)
            {
                keys.Add(item);
            }
            foreach (string item in word.s2)
            {
                paths.Add(item);
            }
            foreach (string item in word.s3)
            {
                rules.Add(item);
            }
            foreach (string item in word.s4)
            {
                actions.Add(item);
            }
        }
        private void MenuItem_Click_1(object sender, RoutedEventArgs e)
        {
            //background
            word = loadword.LoadData(dir);
            Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
            dlg.FileName = "Picture"; // Default file name
            dlg.DefaultExt = ".jpg"; // Default file extension
            dlg.Filter = "Image FIles (.jpg)|*.jpg"; // Filter files by extension

            Nullable<bool> result = dlg.ShowDialog();

            if (result == true)
            {
                rl = new rules();
                // Open document
                image = dlg.FileName;
                this.Background = new ImageBrush(new BitmapImage(new Uri(image)));
                //lding.savingwords(image);
                rl.update(image);
                rl.Close();
            }
        }
Beispiel #4
0
        public void loading(List<string> k,List<string> p,List<string> r,List<string> a)
        {
            word = loadword.LoadData(dir);

            image = word.image;

            foreach (string item in word.s1)
            {
                k.Add(item);
            }
            foreach (string item in word.s2)
            {
                p.Add(item);
            }
            foreach (string item in word.s3)
            {
                r.Add(item);
            }
            foreach (string item in word.s4)
            {
                a.Add(item);
            }
        }