本文整理汇总了C#中DB_Talk.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# DB_Talk.Clone方法的具体用法?C# DB_Talk.Clone怎么用?C# DB_Talk.Clone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DB_Talk
的用法示例。
在下文中一共展示了DB_Talk.Clone方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: frmBox
public frmBox(DB_Talk.Model.m_Box model, int operate)
{
InitializeComponent();
_operate = operate;
if (operate == 0)
{
_mModelOld = null;
this.FormTitle = "添加";
btnOK.Text = "添加";
this.txtIP.Text = "172.21.0.2";
//this.txtNetIP.Text= "10.21.0.2";
//this.txtMask.Text = "255.255.255.0";
this.txtNetIP.Enabled=false;
this.txtMask.Enabled = false;
this.txtDispatchIP1.Text = "172.21.0.41";
this.txtDispatchIP2.Text = "172.21.0.42";
this.txtRecordServerIP.Text = "172.21.0.21";
this.txtTimerIP.Text = "";
}
else
{
btnTest.Visible = false;
_mModel = model;
_mModelOld = (DB_Talk.Model.m_Box)model.Clone();
this.FormTitle = "编辑";
btnOK.Text = "编辑";
ShowModel();
}
//this.txtName.MaxLength = Global.Params.NameLen;
}