Beispiel #1
0
        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();
        }
Beispiel #2
0
 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();
     }
 }
Beispiel #3
0
 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();
     }
 }
Beispiel #4
0
 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();
 }
Beispiel #5
0
 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();
     }
 }
Beispiel #6
0
 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();
     }
 }