Example #1
0
 private void KeepReadCard_Click(object sender, RoutedEventArgs e)
 {
     KeepReadingButton.IsEnabled     = false;
     StopKeepReadingButton.IsEnabled = true;
     ReadingButton.IsEnabled         = false;
     CCReader.KeepReadCard();
 }
Example #2
0
        private async void AutoSuggestBox_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
        {
            Member m = new Member(sender.Text);

            m = await checkAndStartOutScreen(m);

            CCReader.LoadCard(m);
            GGReader.LoadGroup(m.GroupInfo);
        }
Example #3
0
    /*
     * static bool SetNewFolder() {
     *
     *  try {
     *      outputPath = EditorUtility.OpenFolderPanel("Load pts files", "", "");
     *      outputText = outputPath;
     *      return true;
     *  }
     *  catch (Exception e) {
     *      Debug.Log("You don't get the point do you...");
     *      Debug.LogError(e.Message);
     *  }
     *  return false;
     * }
     */

    static void processFiles(string path)
    {
        try {
            if (path.EndsWith(".txt"))
            {
                readPoints = new CCReader(2);
                startedJob = true;
                readPoints.readFile(path);
            }
        }
        catch (Exception e) {
            Debug.Log("You don't get the point do you...");
            Debug.LogError(e.Message);
        }
    }
Example #4
0
 static void clearReader()
 {
     readPoints = null;
     GC.Collect();
 }