コード例 #1
0
        private async void Select(object sender, RoutedEventArgs e)
        {
            if (BrowseProfile.ShowDialog() == true)
            {
                ProfileName.Text = "Validating file...";
                TextVersion.Text = TextTarget.Text = TextPlatform.Text = "";
                path             = BrowseProfile.FileName;

                await Task.Run(() => reader = new ResourceReader(path));

                if (reader.IsOkay())
                {
                    ProfileName.Text  = BrowseProfile.SafeFileName;
                    TextVersion.Text  = reader.Version.ToString();
                    TextTarget.Text   = reader.Target;
                    TextPlatform.Text = reader.Platform.ToString();
                }
                else
                {
                    ProfileName.Text = "";
                }
            }
        }
コード例 #2
0
        public Status(ResourceReader reader)
        {
            InitializeComponent();

            this.reader = reader;
        }