コード例 #1
0
        private void AeroWindow_Loaded(object sender, RoutedEventArgs e)
        {
            mainAssembly = entryPoint.Assembly;
            taskClassName = entryPoint.ClassName;

            entryPoint.References.ForEach(x => listReferences.Items.Add(x));
            textBoxTaskClass.Text = taskClassName;
            textBoxMainAssembly.Text = mainAssembly.ToString();
        }
コード例 #2
0
ファイル: AddFileView.xaml.cs プロジェクト: kapitanov/diploma
 private void OkButton_Click(object sender, RoutedEventArgs e)
 {
     if (listFiles.SelectedItem != null)
     {
         result = listFiles.SelectedItem as FileRequest;
         Close();
     }
 }
コード例 #3
0
 private void SelectAssembly_Click(object sender, RoutedEventArgs e)
 {
     var file = AddFileView.Select(files, list => list.OfType<UploadFileRequest>().Cast<FileRequest>(), canCreate: false);
     if (file != null)
     {
         mainAssembly = file;
         textBoxMainAssembly.Text = mainAssembly.ToString();
     }
 }