Beispiel #1
0
        public MainUI()
        {
            GUID = "{DD4EAD53-C5EB-4C10-8FAA-49D79A6CAFC2}";
            InitializeComponent();
            RecListHelper rlh = new RecListHelper(RLB);

            rlh.LoadRLArray(DefRL.CV.JapanaseR);
            JPrCV.IsChecked = true;
            currentfolder   = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
            RecordFolder    = currentfolder + "\\CoreData\\uvb\\stream\\" + GUID;
        }
Beispiel #2
0
        private void All_Click(object sender, RoutedEventArgs e)
        {
            RecListHelper rlh = new RecListHelper(RLB);

            JPrCV.IsChecked    = false;
            JPCV.IsChecked     = false;
            ENCV.IsChecked     = false;
            ESCV.IsChecked     = false;
            JPrCV.IsChecked    = false;
            JPCV.IsChecked     = false;
            ENCV.IsChecked     = false;
            ESCV.IsChecked     = false;
            CUSTOMRL.IsChecked = false;
            MenuItem mI = (MenuItem)sender;

            switch (mI.Name)
            {
            case "JPrCV":
                JPrCV.IsChecked = true;
                rlh.LoadRLArray(DefRL.CV.JapanaseR);
                break;

            case "JPCV":
                JPCV.IsChecked = true;
                rlh.LoadRLArray(DefRL.CV.Japanase);
                break;

            case "ENCV":
                ENCV.IsChecked = true;
                rlh.LoadRLArray(DefRL.CV.English);
                break;

            case "ESCV":
                ESCV.IsChecked = true;
                rlh.LoadRLArray(DefRL.CV.Spanish);
                break;

            case "JPrVCV":
                JPrCV.IsChecked = true;
                rlh.LoadRLArray(DefRL.VCV.JapanaseR);
                break;

            case "JPVCV":
                JPVCV.IsChecked = true;
                rlh.LoadRLArray(DefRL.VCV.Japanase);
                break;

            case "ENVCV":
                ENVCV.IsChecked = true;
                rlh.LoadRLArray(DefRL.VCV.English);
                break;

            case "ESVCV":
                ESVCV.IsChecked = true;
                rlh.LoadRLArray(DefRL.VCV.Spanish);
                break;

            case "CUSTOMRL":
                System.Windows.Forms.OpenFileDialog opf = new System.Windows.Forms.OpenFileDialog();
                opf.Filter      = "Archivos RecList|*.txt|Todo|*.*";
                opf.Multiselect = false;
                opf.ShowDialog();
                try
                {
                    rlh.LoadRLFile(opf.FileName);
                }
                catch (Exception ex)
                {
                    Memory = ex;
                    mwnd.dialogLayer.ShowError("Se ha producido un error al intentar abrir el archivo.", new RoutedEventHandler(error));
                };
                break;
            }
        }