private void 新建路线ToolStripMenuItem_Click(object sender, EventArgs e) { frmAddRoutName rn = new frmAddRoutName(); rn.Left = this.Left + (this.Width - rn.Width) / 2; rn.Top = this.Top + (this.Height - rn.Height) / 2; rn.tView = this.tvRoute; rn.Show(); }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (tvRoute.SelectedNode.Level == 2) { frmAddRoutName fn = new frmAddRoutName(); fn.tView = tvRoute; fn.Left = this.Left + (this.Width - fn.Width) / 2; fn.Top = this.Top + (this.Height - fn.Height) / 2; fn.isEdit = true; fn.routeID = tvRoute.SelectedNode.Tag; fn.Show(); } }
private void tvRoute_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Level == 2) { frmAddRoutName fn = new frmAddRoutName(); fn.Left = this.Left + (this.Width - fn.Width) / 2; fn.Top = this.Top + (this.Height - fn.Height) / 2; fn.tView = tvRoute; fn.isEdit = true; fn.routeID = e.Node.Tag; fn.Show(); } }
private void 新建路线ToolStripMenuItem_Click(object sender, EventArgs e) { frmAddRoutName rn = new frmAddRoutName(); rn.Left=this.Left+(this.Width-rn.Width)/2; rn.Top=this.Top+(this.Height-rn.Height)/2; rn.tView = this.tvRoute; rn.Show(); }
private void tvRoute_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Level == 2) { frmAddRoutName fn = new frmAddRoutName(); fn.Left=this.Left+(this.Width-fn.Width)/2; fn.Top = this.Top + (this.Height - fn.Height) / 2; fn.tView = tvRoute; fn.isEdit = true; fn.routeID = e.Node.Tag; fn.Show(); } }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (tvRoute.SelectedNode.Level == 2) { frmAddRoutName fn = new frmAddRoutName(); fn.tView = tvRoute; fn.Left=this.Left+(this.Width-fn.Width)/2; fn.Top = this.Top + (this.Height - fn.Height) / 2; fn.isEdit = true; fn.routeID = tvRoute.SelectedNode.Tag; fn.Show(); } }