Beispiel #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public DiscInformationViewModel(DiscInformationWindow parent, SubmissionInfo submissionInfo)
        {
            Parent         = parent;
            SubmissionInfo = submissionInfo.Clone() as SubmissionInfo ?? new SubmissionInfo();

            // Add handlers
            Parent.AcceptButton.Click        += OnAcceptClick;
            Parent.CancelButton.Click        += OnCancelClick;
            Parent.RingCodeGuideButton.Click += OnRingCodeGuideClick;

            // Update UI with new values
            ManipulateFields();
            Load();
        }
Beispiel #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public DiscInformationViewModel(DiscInformationWindow parent, Options options, SubmissionInfo submissionInfo)
        {
            Parent         = parent;
            Options        = options;
            SubmissionInfo = submissionInfo.Clone() as SubmissionInfo ?? new SubmissionInfo();

            // Limit lists, if necessary
            if (this.Options.EnableRedumpCompatibility)
            {
                SetRedumpRegions();
                SetRedumpLanguages();
            }

            // Add handlers
            Parent.AcceptButton.Click        += OnAcceptClick;
            Parent.CancelButton.Click        += OnCancelClick;
            Parent.RingCodeGuideButton.Click += OnRingCodeGuideClick;

            // Update UI with new values
            ManipulateFields();
            Load();
        }