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"); }
public prim(Graf g) { this.InitializeComponent(); graf = g; Rez = new List<Muchie>(); WatchSelected.ItemsSource = Rez; WatchNoduri.ItemsSource = graf.noduri; }
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; }
public Universal(Graf graf, string codePath) { this.InitializeComponent(); this.graf = graf; this.codePath = codePath; }