Esempio n. 1
0
        //Menyimpan value yang berada pada textbox queryChoose yang berupa nama file query
        private void inputExistingQuery(object sender, RoutedEventArgs e)
        {
            string      passingQuery = queryChoose.Text;
            PlayerGraph g            = new PlayerGraph(receivedGraph, passingQuery);

            ((MainWindow)Application.Current.MainWindow).Content = g;
        }
Esempio n. 2
0
        //Menyimpan value yang berada dalam textbox queryInput ke dalam file external
        private void inputQuery(object sender, RoutedEventArgs e)
        {
            //Lokasi penyimpanan file graf: D:\Documents\GitHub\PetakUmpetAntahBerantah\WpfApp1\bin\Debug
            File.WriteAllText("D:\\Desktop\\queryInput.txt", queryInput.Text);
            string passingQuery = "D:\\Desktop\\queryInput.txt";

            //Membuat objek page PlayerGraph
            PlayerGraph g = new PlayerGraph(receivedGraph, passingQuery);

            //Berpindah ke page PlayerGraph
            ((MainWindow)Application.Current.MainWindow).Content = g;
        }