Ejemplo n.º 1
0
        public SelectCompilerTemplate()
        {
            InitializeComponent();
            CompilerTemplateManager compilerTemplate = new CompilerTemplateManager();

            compilerTemplate.Load();
            cbSelectTemplate.ItemsSource = compilerTemplate.Templates;
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            OpenContestCommand.InputGestures.Add(new KeyGesture(Key.O, ModifierKeys.Control));
            GradeCommand.InputGestures.Add(new KeyGesture(Key.F9));
            GotoUserCommand.InputGestures.Add(new KeyGesture(Key.F, ModifierKeys.Control));
            InitializeComponent();
            setting = new Settings();
            setting.Load();
            judger = new Judger();
            judger.OnUpdateScore            += Judger_OnUpdateScore;
            judger.TreatExitCodeNonZeroAsRTE = setting.TreatExitCodeNonZeroAsRTE;
            CompilerTemplateManager ctm = new CompilerTemplateManager();

            ctm.Load();
            ctm.SaveTest();
        }