コード例 #1
0
        public Algorithm(Graf graf, String code)
        {
            this.graf = graf;
            //code = System.IO.File.ReadAllText(codePath);
            Compile(code, "algoSpace", "algoClass");
            muhType = getField("muh").GetValue(algoInstance).GetType();

            setMembers();
            accesMethod("start");
        }
コード例 #2
0
        public prim(Graf g)
        {
            this.InitializeComponent();
            graf = g;

            Rez = new List<Muchie>();

            WatchSelected.ItemsSource = Rez;
            WatchNoduri.ItemsSource = graf.noduri;

        }
コード例 #3
0
        public GrafControl()
        {
            this.InitializeComponent();
            graf = new Graf(graf_grid);
            graf.can_edit = 0;

            graf_grid.SizeChanged += graf.refresh;

            muchie1.textBox.Text = "nou";
            muchie1.textBox.IsReadOnly = true;
            muchie1.MouseDown += add_muchie;
            invbut.Click += add_muchie;

            graf_nod_but.PreviewMouseDown += new_nod;

            toolbox.Visibility = System.Windows.Visibility.Collapsed;
        }
コード例 #4
0
 public Universal(Graf graf, string codePath)
 {
     this.InitializeComponent();
     this.graf = graf;
     this.codePath = codePath;
 }