コード例 #1
0
ファイル: frmAddRoute.cs プロジェクト: katway/PatrolCheck
        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();
        }
コード例 #2
0
ファイル: frmAddRoute.cs プロジェクト: katway/PatrolCheck
 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();
     }
 }
コード例 #3
0
ファイル: frmAddRoute.cs プロジェクト: katway/PatrolCheck
 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();
     }
 }
コード例 #4
0
ファイル: frmAddRoute.cs プロジェクト: katway/PatrolCheck
 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();
 }
コード例 #5
0
ファイル: frmAddRoute.cs プロジェクト: katway/PatrolCheck
 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();
     }
 }
コード例 #6
0
ファイル: frmAddRoute.cs プロジェクト: katway/PatrolCheck
 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();
     }
 }