小编Gop*_*dar的帖子

查看数据库的表关系树的方法?

朋友们,我正在研究ERP中的一个问题,其中包含大量的表格.我需要知道数据库中的表之间的整个关系来修复它.有没有办法看到所有的表与他们之间的数据库关系.我正在使用SQL Server Management Studio R2 64位操作系统.

sql-server-2008

8
推荐指数
1
解决办法
3万
查看次数

Installshield限量版 - 限制

我是VS2013 Community Edition的新软件.刚刚下载了Installshield限量版试试看.有了这个,我能够创建一个设置文件,并能够签署设置.

我的问题是

  1. 使用LE(限量版)有任何限制吗?
  2. 我可以使用LE多久.任何时间限制(试用期)?
  3. 我可以创建一个安装文件并将其用于生产用户吗?它会导致任何问题吗?
  4. LE和Express\premier\professtional Editions有什么区别?

提前致谢.

installshield installshield-le

8
推荐指数
1
解决办法
7870
查看次数

相互SSL身份验证 - sslstream中的本地证书在客户端上返回"null"而不是证书

我正在创建一个Windows服务,它将调用API.对于此过程,我正在尝试建立Mutual(双向)SSL身份验证.因为我是新手.我试图实现一个简单的客户端和服务器项目,它将相互验证.

我创建了自签名证书,并在可信证书中添加.

我的客户

using System;
using System.Configuration;
using System.Net.Security;
using System.Net.Sockets;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using System.Text;


namespace MutualSslDemo.Client
{
    class Program
    {
        static void Main(string[] args)
        {
            //  hostName
            var hostName    = ConfigurationManager.AppSettings["hostName"];
            if (String.IsNullOrEmpty(hostName))
                throw new ArgumentNullException("hostName", "Please specify a valid hostname to connect to.");

            //  port
            var port        = Convert.ToInt32(ConfigurationManager.AppSettings["port"]);
            if (port <= 0)
                throw new ArgumentException("Please specify a valid port number.");

            //  certificate and password
            var certificate = ConfigurationManager.AppSettings["certificate"];
            var password    = ConfigurationManager.AppSettings["password"];
            var certificates = …
Run Code Online (Sandbox Code Playgroud)

.net c# ssl sslstream

7
推荐指数
1
解决办法
1269
查看次数

在 WPF 中呈现 HTML 内容的最佳控件是什么

我的目标是在我的 WPF 应用程序中显示带有样式的 HTML 内容。我从 API 获取 HTML 内容作为响应。我需要在框架中显示内容(最好是文本块)。我尝试使用 wpf 的 webbrowser 控件,在那里我遇到了许多关于网格格式化的问题,并且我无法为 webbrowser 控件显示透明背景。我发现问题是由于这个

示例 HTML 内容:

<p>My <b>para<b></p><ul> <li>My list1</li> <li>My list2</li></ul>
Run Code Online (Sandbox Code Playgroud)

我在互联网上进行了研究,发现了一些 wpf 控件。

极品

WPF铬

我是 WPF C# 的新手,我不知道如何在我的 wpf 应用程序中使用控件。我从这里这里尝试了一些示例应用程序。但是,由于缺少参考,它显示出很多错误。

此外,我尝试使用 HtmltoXaml 转换器和 WPF Rich box,发现它在渲染后跳过了许多内容。

如果我得到一个简单的示例 wpf 应用程序,并且使用上述有用的控件或链接实现而没有错误,那对我来说真的很有帮助。

任何克服我的问题的新想法也很感激。预先感谢并为我的英语感到抱歉。

c# wpf xaml chromium

5
推荐指数
1
解决办法
6476
查看次数

具有相同Itemsource但SelectedItem应该不同的多个组合框-WPF

目标是拥有多个Combobox,一旦在中的任何一个中选择了该项目Combobox,就应将其从其他对象中删除或隐藏Combobox以供选择。

每当在任何Comboboxes 上更改选择时,我都可以更改源。但是问题是,当我从中删除所选项目时,该ItemsSource项目已从所有来源中删除,包括我选择的来源。

这是样本

a

<StackPanel>
    <ComboBox Width="100" Height="50" SelectedItem="{Binding SelectedItem}" ItemsSource="{Binding ComboboxItems}" />
    <ComboBox Width="100" Height="50" SelectedItem="{Binding SelectedItem}" ItemsSource="{Binding ComboboxItems}" />
    <ComboBox Width="100" Height="50" SelectedItem="{Binding SelectedItem}" ItemsSource="{Binding ComboboxItems}" />
    <ComboBox Width="100" Height="50" SelectedItem="{Binding SelectedItem}" ItemsSource="{Binding ComboboxItems}" />
</StackPanel>
Run Code Online (Sandbox Code Playgroud)

代码隐藏

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        ObservableCollection<string> s = new ObservableCollection<string>();
        s.Add("item1");
        s.Add("item2");
        s.Add("item3");
        s.Add("item4");
        s.Add("item5");
        s.Add("item6");

        DataContext = new MainViewModel() { …
Run Code Online (Sandbox Code Playgroud)

data-binding wpf xaml combobox observablecollection

5
推荐指数
1
解决办法
1305
查看次数

在 SharpAvi 上将屏幕录制为视频、音频 - 音频未录制

要求:

我正在尝试使用带有NAudio Example的环回音频流的SharpAPI Example捕获 Windows 屏幕的音频/视频。

我正在使用 C#、wpf 来实现相同的功能。

几个 nuget 包。 SharpAvi - 用于视频捕获 NAudio - 用于音频捕获

取得的成果:

我已经成功地将它与提供的示例集成在一起,我正在尝试通过NAudioSharpAPI 视频流捕获音频,以便将视频与音频实现一起录制。

问题:

无论我在 SharpAvi 视频中编写音频流。 输出时,仅录制视频,音频为空。

单独检查音频以确保:

但是当我尝试将音频捕获为名为“output.wav”的单独文件时,它按预期录制了音频,并且能够听到录制的音频。所以,我现在得出的结论是,问题仅在于通过 SharpApi 与视频集成

writterx = new WaveFileWriter("Out.wav", audioSource.WaveFormat);

重现问题的完整代码:

https://drive.google.com/open?id=1H7Ziy_yrs37hdpYriWRF-nuRmmFbsfe-

来自 Recorder.cs 的代码概览

NAudio 初始化:

audioSource = new WasapiLoopbackCapture();

audioStream = CreateAudioStream(audioSource.WaveFormat, encodeAudio, audioBitRate);

audioSource.DataAvailable += audioSource_DataAvailable;
Run Code Online (Sandbox Code Playgroud)

捕获音频字节并将其写入 SharpAvi 音频流:

    private void audioSource_DataAvailable(object sender, WaveInEventArgs e)
    {
        var signalled = WaitHandle.WaitAny(new WaitHandle[] { videoFrameWritten, stopThread });
        if …
Run Code Online (Sandbox Code Playgroud)

c# wpf audio-recording naudio screencast

5
推荐指数
1
解决办法
642
查看次数

使用MVVM在MainWindow上绑定UserControl视图模型

我是WPF和MVVM的新手,我正在尝试学习WPF如何与MVVM一起使用。为此,我制作了以下示例

UserControl1.xaml

<StackPanel>
        <TextBox   Text="{Binding MyString}" />
</StackPanel>
Run Code Online (Sandbox Code Playgroud)

UserControl1ViewModel.cs

class UserControl1ViewModel
{
     public string MyString { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

MainWindow.xaml

<StackPanel>
        <local:UserControl1 DataContext="{Binding UC1Property}"/>  //tried binding the Usercontrol1VM obj on MainWindowVM
        <Button Command="{Binding ShowMeOne}" Height="30" Content="ShowOne"/>
        <Button Command="{Binding ShowMeAnother}" Height="30" Content="ShowAnother" />
</StackPanel>
Run Code Online (Sandbox Code Playgroud)

MainWindow.xaml.cs

public MainWindow()
{
   InitializeComponent();
   this.DataContext = new MainWindowViewModel();
}
Run Code Online (Sandbox Code Playgroud)

MainWindowViewModel.cs

class MainWindowViewModel
{
    public MainWindowViewModel()
    {
        ShowMeOne = new RelayCommand(Prompt_ShowMeOne);
        ShowMeAnother = new RelayCommand(Prompt_ShowMeAnother);
        UC1Property.MyString = "Initial";
    }

    private void Prompt_ShowMeAnother(object obj)
    {
        global::System.Windows.MessageBox.Show("Another Should …
Run Code Online (Sandbox Code Playgroud)

c# wpf xaml user-controls mvvm

2
推荐指数
1
解决办法
4071
查看次数