我有两个关于轴标签的问题:

并且可能也是相同的XAxis,显示最后一个柱的时间.
ZedGraph太棒了.但需要一些时间来弄清楚技巧和调整.. :)
我有一个客户端应用程序的多个实例,通过TcpClient通过Internet连接到主应用程序.(两者都由我编码).所以连接如下:
TcpClient.Connect(ip,port)
我现在希望这可以处理各种类型的断开连接事件:
主应用程序(服务器)或客户端应用程序计算机失去Internet连接.
主应用程序(服务器)已关闭,然后重新启动.
那么,我需要做什么?每当发生此类中断时,是否需要在客户端应用程序中实例化新的TcpClient?我没有尝试过,所以不知道这是不是一个糟糕的解决方案?
我正在尝试学习这些关系。正如我在下面显示的那样,它是否正确:
1)通过简单地使父母的身份密钥也成为孩子的身份密钥,我将具有1:0..1关系?
2)要使其为1:1,我要在父表中添加FK,以连接两个Identity列?
这就是全部吗?如果我的措辞不正确/不正确,请纠正我。
1:0..1
Run Code Online (Sandbox Code Playgroud)
客户(编号{PK,身份},名称)
客户地址(客户编号{PK,FK,身份},街道名称)
FK_CustomerAddress_Customer(CustomerId,Id)
1:1
Run Code Online (Sandbox Code Playgroud)
客户(编号{PK,FK,身份},名称)
FK_Customer_CustomerAddress(编号,客户编号)
客户地址(客户编号{PK,FK,身份},街道名称)
FK_CustomerAddress_Costumer(CustomerId,Id)
编辑1:
我相信以上两个都是错误的,解决方案是这样的:(?)
1:0..1
Run Code Online (Sandbox Code Playgroud)
客户(编号{PK,身份},名称)
CustomerAddress(CustomerId {PK,FK,UNIQUE},StreetName)
FK_CustomerAddress_Customer(CustomerId,Id)
我经常发现它没有真正指定究竟是什么样的集合导致了这种类型的异常.这是真的还是应该是显而易见的?也许我只是不明白如何正确解释异常消息..
我特别想知道这个.它指的是什么系列?
事件委托的参数只是(对象发送者),并且引发的事件传递null参数.虽然引发事件的类本身继承了一个列表:
public class TimeSerie : List<BarData>
Run Code Online (Sandbox Code Playgroud)
这里是否清楚"集合"是指引发事件的对象,还是它可以是另一个对象?可以这么说,一个动态改变的方法的事件处理程序的集合?或者会创建一个不同的例外?
************** Exception Text **************
System.InvalidOperationException:
Collection was modified; enumeration operation may not execute.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at SomeNameSpace.SomeUserControl.InvokeOnUpdateHistory(Object sender) in D:\SomePath\SomeUserControl.cs:line 5179
at OtherNameSpace.OtherClass.TimeSerie.HistoryUpdateEventHandler.Invoke(Object sender)
Run Code Online (Sandbox Code Playgroud)
UserControl中发生异常:
public class SomeUserControl
private void InvokeOnUpdate(object sender)
{
this.Invoke(new GenericInvoker(Method)); // << Exception here!
}
private void Method() {...}
Run Code Online (Sandbox Code Playgroud)
编辑: 添加了一些代码.有点简化,但认为它包括相关位.
private void Method()
{
if (this.instrument == null) return;
UnRegisterTimeSerieHandlers(this.ts); …Run Code Online (Sandbox Code Playgroud) (在VS 2008中)我有一个usercontrol,它位于设计视图的属性列表中,但是我看不到实际的控件,并且它会产生一些错误.当我无法选择它时,如何将其删除?
我无法设置ASP.NET页面的标题标题.
我有嵌套的母版页.我可以成功设置标签图标,但标题始终显示"主页".我究竟做错了什么?
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Topbar.master.cs" Inherits="WebApplication1.Masters.Topbar" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>SomeTitle</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="~/Styles/public.css" rel="stylesheet" type="text/css" />
<link rel="Shortcut Icon" href="~/Images/ionicon.ico" />
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
Run Code Online (Sandbox Code Playgroud)
....
<%@ Master Language="C#" MasterPageFile="~/Masters/Topbar.Master" AutoEventWireup="true"
CodeBehind="Public.Master.cs" Inherits="WebApplication1.PublicMaster" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</asp:Content>
Run Code Online (Sandbox Code Playgroud) SQLCe不支持TimeSpan,所以我需要以其他方式保存它.是否可以在某处定义默认转换,如DbContext,或者我是否需要在存储库中手动处理?我不喜欢因此而改变我的实体类.
顺便说一下,我只保存了24小时的TimeSpan.
如果有一些巧妙的技巧,例子会很棒.