亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form1.frm

?? 采用VB編寫的一個電路分析系統(tǒng)
?? FRM
?? 第 1 頁 / 共 4 頁
字號:
End If
ElseIf newfile = 0 And cell(0).Visible = False Then
Unload mapform
End If
End Sub

Private Sub helper_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Text1.Text = helper.LocationURL
End Sub

Private Sub HScroll1_Change()
Picture1.Left = -HScroll1.value
Picture1.SetFocus
End Sub

Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Drag
End Sub

p

Private Sub node_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
      oldx = X
      oldy = Y
      node(Index).Drag
'to add a function to check the nport to make sure that it is not 0
 ans = checknstate(Index)
 If ans = 0 Then
 nport = node(Index).nodestate + 1
 Else
 nport = ans
End If
'===============================================
If search(n, 1) = True Then
   Call linenc(0, Index, n, nport, 1)
 If node(Index).nodestate < 3 Then
 node(Index).nodestate = node(Index).nodestate + 1
End If
cell(n).celln1 = -Index * 10 - nport
Call makenodenn(Index, nport, n, 1)
cell(n).cellstate = 5
cell(n).isnew = 1

ElseIf search(n, 2) = True Then
   Call linenc(0, Index, n, nport, 2) 'be careful of this model of that marking
 cell(n).celln2 = -Index * 10 - nport
If node(Index).nodestate < 3 Then
 node(Index).nodestate = node(Index).nodestate + 1
End If
Call makenodenn(Index, nport, n, 2)
cell(n).cellstate = 6
cell(n).isnew = 1

End If

End Sub
Function checknstate(Index As Integer) As Integer
Dim k As Integer
checkstate = 0
For k = 1 To node(Index).nodestate + 1
  If readnnport(Index, k) = 0 Then
  checkstate = k
  Exit Function
  End If
Next k
End Function
Function readnnport(Index, nport As Integer) As Integer
 readnnport = -1
 Select Case nport
     Case 1
      readnnport = node(Index).noden1
     Case 2
      readnnport = node(Index).noden2
     Case 3
      readnnport = node(Index).noden3
     Case 4
      readnnport = node(Index).noden4
  End Select
End Function
Sub makenodenn(Index, nport, n, k As Integer)
Select Case nport
  Case 1
  node(Index).noden1 = n * 10 + k
  Case 2
    node(Index).noden2 = n * 10 + k
  Case 3
   node(Index).noden3 = n * 10 + k
Case 4
   node(Index).noden1 = n * 10 + k
End Select
End Sub

Public Sub open_Click()
On Error GoTo errordo
Picture1.Tag = -1
If newfile = 1 Then
' to clear the existing file infos
ans = MsgBox("原文件要保存嗎?點擊是保存!", 3 + 32 + 256, "提醒您!")
If ans = 6 Then
Call save_Click
MsgBox ""   '在是否這里有一點小問題
GoTo markx

ElseIf ans = 7 Then

GoTo markx

Else
Exit Sub
End If
markx::
If counts > 0 Then
For n = 1 To counts - 1
Unload cell(nn)
Next n
cell(0).Visible = False
End If
If nodecounts > 0 Then
For n = 1 To nodecounts - 1
Unload node(nn)
Next n
node(0).Visible = False
End If
Picture1.Cls
newfile = 0
End If
CommonDialog1.ShowOpen
Open CommonDialog1.FileName For Input As 1
mapform.Caption = "PCAS--->" + CommonDialog1.FileName
newfile = 1

Input #1, typecount(0), typecount(1), typecount(2), typecount(3), typecount(4), typecount(5)
 Input #1, counts, sourcecount
ReDim sourcemat(sourcecount - 1) As electruct
ReDim cellname(counts - 1) As String
'###########################

For nn = 0 To counts - 1
  
  If nn > 0 Then
   Load cell(nn)
  End If
  
  cell(nn).ToolTipText = nn
   cell(nn).Visible = True
   Input #1, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24, t25, t26, t27
   cell(nn).Left = t1
   cell(nn).Top = t2
   cell(nn).n1tag = t3
   cell(nn).n2tag = t4
   cell(nn).main1 = t5
   cell(nn).main2 = t6
   cell(nn).isnew = t7
   cell(nn).n1x = t8
   cell(nn).n1y = t9
   cell(nn).n2x = t10
   cell(nn).n2y = t11
   cell(nn).mytag = t12
   cell(nn).cellvalue = t13
   cell(nn).cellinbranch = t14
   cell(nn).celln1 = t15
   cell(nn).celln2 = t16
   cell(nn).cellinhole1 = t17
   cell(nn).cellinhole2 = t18
   cell(nn).celltag = t19
   cell(nn).n1volt = t20
   cell(nn).n2volt = t21
   cell(nn).cellcurrent = t22
   cell(nn).cellarc = t23
   cell(nn).cellstate = t24
   cell(nn).cellindex = t25
   cell(nn).celltype = t26
   cell(nn).Tag = t27
  
  If t19 = 1 And (t26 = 3 Or t26 = 4) Then
  Input #1, t28, t29, t30
  sourcemat(cell(nn).cellvalue).a = t28
  sourcemat(cell(nn).cellvalue).alpha = t29
  sourcemat(cell(nn).cellvalue).frequency = t30
  End If
   Call cell(nn).incall
Call addlist(nn, CInt(t26))
Next nn
'###########################
Input #1, nodecounts
'###########################
For nn = 0 To nodecounts - 1
 If nn > 0 Then
 Load node(nn)
 End If
 node(nn).Visible = True
 
 Input #1, t1, t2, t3, t4, t5, t6, t7, t8
 node(nn).Left = t1
 node(nn).Top = t2
 node(nn).nodestate = t3
 node(nn).noden1 = t4
 node(nn).noden2 = t5
 node(nn).noden3 = t6
 node(nn).noden4 = t7
 node(nn).isnew = t8
Next nn
'###########################
Close 1
Call redrawmap
errordo::
End Sub
Sub redrawmap()
For n = 0 To counts - 1
If cell(n).celln1 > 0 Then
  If cell(n).main1 = 1 Then
   Call lineab(1, n, Fix(cell(n).celln1 / 10), 1, cell(n).celln1 Mod 10)
 End If
ElseIf cell(n).celln1 < 0 Then
  Call linenc(1, Fix(-cell(n).celln1 / 10), n, (-cell(n).celln1) Mod 10, 1)
 End If
 
If cell(n).celln2 > 0 Then
   If cell(n).main2 = 1 Then
   Call lineab(0, n, Fix(cell(n).celln2 / 10), 2, cell(n).celln2 Mod 10)
 End If
ElseIf cell(n).celln2 < 0 Then
  Call linenc(1, Fix(-cell(n).celln2 / 10), n, (-cell(n).celln2) Mod 10, 2)
 End If
Next n

End Sub
Private Sub Picture1_DblClick()

Call drawnet


End Sub

Private Sub drawnet()

For I = 0 To Picture1.Height Step 300

For j = 0 To Picture1.Width Step 400
Picture1.PSet (j, I), vbWhite
Next j
Next I
End Sub



Private Sub displaycell(Index As Integer)
If formstate = 1 Then
Load properform
properform.Show
properform.Top = 6045
properform.Left = 20 + currentform.Width
formstate = 0
End If

Select Case cell(Index).celltype
 Case 0
   properform.Label1.Caption = "電阻"
   properform.Label4.Caption = "|     電阻值"
   properform.Label5.Caption = "Ω"
  Case 1
   properform.Label1.Caption = "電容"
   properform.Label4.Caption = "|     電容值"
   properform.Label5.Caption = "F"
  Case 2
  properform.Label1.Caption = "電感"
   properform.Label4.Caption = "|     電感值"
   properform.Label5.Caption = "H"
  Case 3
  properform.Label1.Caption = "電壓源"
   properform.Label4.Caption = "|     電壓值"
   properform.Label5.Caption = "V"
  Case 4
  properform.Label1.Caption = "電流源"
   properform.Label4.Caption = "|     電流值"
   properform.Label5.Caption = "A"
  Case 5
  properform.Label1.Caption = "節(jié)點"
 properform.Label4.Caption = ""
   properform.Label5.Caption = ""
Case Else
  MsgBox ("not this cell")
End Select
properform.Label3.Caption = cell(Index).cellindex
properform.Text1.Text = cell(Index).cellvalue
properform.Label7.Caption = cell(Index).cellinhole1
properform.Label8.Caption = cell(Index).cellinhole2
properform.Label9.Caption = cell(Index).cellinbranch
'properform.Image1.Picture = LoadPicture(bmps(cell(Index).cellarc, cell(Index).celltype))
If cell(Index).cellarc = 1 Then
 properform.Option2.SetFocus
Else: properform.Option1.SetFocus
End If
properform.Tag = Index
mapform.SetFocus

If frmoptions.Visible = True Then
  frmoptions.Combo1.ListIndex = Index
  Call frmoptions.Combo1_Click
End If
End Sub

Private Sub Picture1_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
Source.Move (X - oldx), (Y - oldy)
End Sub

Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
  PopupMenu 電路
ElseIf Button = 1 And mmovestate = 1 Then
Call addnode
node(nodecounts - 1).Left = X - 15
node(nodecounts - 1).Top = Y - 15
Shape1.Visible = False
End If
End Sub

Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim n As Integer
If Picture1.Tag <> -1 Then
 If cell(Picture1.Tag).mytag <> 0 Then
Call cell(Picture1.Tag).incall
cell(Picture1.Tag).mytag = 0
End If

If search(n, 1) = True Then
 Call lineabx(n, 1, CInt(X), CInt(Y))  'draw the inner state line



ElseIf search(n, 2) = True Then
 Call lineabx(n, 2, CInt(X), CInt(Y))


End If



End If

End Sub

Public Sub save_Click()
On Error GoTo errordo
If newfile = 0 Then
CommonDialog1.DialogTitle = "保存"
CommonDialog1.ShowSave
End If
mapform.Caption = "PCAS--->" + CommonDialog1.FileName
Open CommonDialog1.FileName For Output As 1
newfile = 1
Print #1, typecount(0), typecount(1), typecount(2), typecount(3), typecount(4), typecount(5)
Print #1, counts, sourcecount
'###########################
For nn = 0 To counts - 1
   Print #1, cell(nn).Left, cell(nn).Top, cell(nn).n1tag, cell(nn).n2tag, cell(nn).main1, cell(nn).main2, cell(nn).isnew, cell(nn).n1x, cell(nn).n1y, cell(nn).n2x, cell(nn).n2y, cell(nn).mytag, cell(nn).cellvalue, cell(nn).cellinbranch, cell(nn).celln1, cell(nn).celln2, cell(nn).cellinhole1, cell(nn).cellinhole2, cell(nn).celltag, cell(nn).n1volt, cell(nn).n2volt, cell(nn).cellcurrent, cell(nn).cellarc, cell(nn).cellstate, cell(nn).cellindex, cell(nn).celltype, cell(nn).Tag
 
 If cell(nn).celltag = 1 And (cell(nn).celltype = 3 Or cell(nn).celltype = 4) Then
   Print #1, sourcemat(cell(nn).cellvalue).a, sourcemat(cell(nn).cellvalue).alpha, sourcemat(cell(nn).cellvalue).frequency
 End If
 
 Next nn
'###########################
Print #1, nodecounts
'###########################
For nn = 0 To nodecounts - 1
Print #1, node(nn).Left, node(nn).Top, node(nn).nodestate, node(nn).noden1, node(nn).noden2, node(nn).noden3, node(nn).noden4, node(nn).isnew
Next nn
'###########################
Close 1
errordo::
End Sub

Public Sub saveas_Click()
On Error GoTo errordo
CommonDialog1.ShowSave
Open CommonDialog1.FileName For Output As 1
mapform.Caption = "PCAS--->" + CommonDialog1.FileName
Print #1, typecount(0), typecount(1), typecount(2), typecount(3), typecount(4), typecount(5)
Print #1, counts, sourcecount
'###########################
For nn = 0 To counts - 1
   Print #1, cell(nn).Left, cell(nn).Top, cell(nn).n1tag, cell(nn).n2tag, cell(nn).main1, cell(nn).main2, cell(nn).isnew, cell(nn).n1x, cell(nn).n1y, cell(nn).n2x, cell(nn).n2y, cell(nn).mytag, cell(nn).cellvalue, cell(nn).cellinbranch, cell(nn).celln1, cell(nn).celln2, cell(nn).cellinhole1, cell(nn).cellinhole2, cell(nn).celltag, cell(nn).n1volt, cell(nn).n2volt, cell(nn).cellcurrent, cell(nn).cellarc, cell(nn).cellstate, cell(nn).cellindex, cell(nn).celltype, cell(nn).Tag
  
  If cell(nn).celltag = 1 And (cell(nn).celltype = 3 Or cell(nn).celltype = 4) Then
   Print #1, sourcemat(cell(nn).cellvalue).a, sourcemat(cell(nn).cellvalue).alpha, sourcemat(cell(nn).cellvalue).frequency
 End If
 
 Next nn
'###########################
Print #1, nodecounts
'###########################
For nn = 0 To nodecounts - 1
Print #1, node(nn).Left, node(nn).Top, node(nn).nodestate, node(nn).noden1, node(nn).noden2, node(nn).noden3, node(nn).noden4, node(nn).isnew
Next nn
'###########################
Close 1
errordo::
End Sub

Private Sub VScroll1_Change()
Picture1.Top = -VScroll1.value
Picture1.SetFocus
End Sub

Private Sub VScroll2_Change()
Picture2.Top = -VScroll2.value
Picture2.SetFocus
End Sub

Private Sub VScroll2_Scroll()
Picture2.Top = -VScroll2.value
Picture2.SetFocus
End Sub

Private Sub 刪除元件_Click()
'刪除元件時,要做到去元件,清連接,清記錄,重新定義它
Call deletecell
End Sub
Sub deletecell()
If Picture1.Tag <> 0 Then
Call copypenline(Picture1.Tag)
If Picture1.Tag < counts - 1 And Picture1.Tag <> -1 Then
 For nn = Picture1.Tag To counts - 2
    Call changecell(n, n + 1)
 Next nn
  Call checklinks(counts - 1)
   Unload cell(counts - 1)
   counts = counts - 1
Else
  Call checklinks(counts - 1)
 Picture1.Tag = -1
 Unload cell(counts - 1)
 counts = counts - 1
End If
End If

End Sub
Private Sub checklinks(Index As Integer)
 index1 = Fix(cell(Index).celln1 / 10)
 index2 = Fix(cell(Index).celln2 / 10)
 
 If cell(Index).isnew = 1 Then
'==============================================================
If cell(Index).celln1 < 0 Then
   m = Fix(-cell(Index).celln1 / 10)
   nn = -cell(Index).celln1 Mod 10
   Select Case nn
     Case 1
     node(m).noden1 = 0
     Case 2
     node(m).noden2 = 0
     Case 3
     node(m).noden3 = 0

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久噜噜噜久久人人看| 9i在线看片成人免费| 亚洲最新视频在线观看| 久久久久久免费| 精品精品欲导航| 欧美精品一区二区蜜臀亚洲| 精品国产凹凸成av人导航| 日韩限制级电影在线观看| 日韩视频一区在线观看| 久久久www成人免费无遮挡大片 | 亚洲小说欧美激情另类| 亚洲天堂a在线| 亚洲大片免费看| 免费在线观看视频一区| 国精产品一区一区三区mba视频| 精品在线播放免费| 国产91清纯白嫩初高中在线观看| www.欧美.com| 欧美日韩不卡一区二区| 精品av久久707| 国产精品国产a| 婷婷中文字幕一区三区| 狠狠色狠狠色综合| a4yy欧美一区二区三区| 4438成人网| 亚洲国产精品二十页| 亚洲综合激情网| 蜜桃91丨九色丨蝌蚪91桃色| www.欧美日韩| 3d动漫精品啪啪一区二区竹菊| 久久久无码精品亚洲日韩按摩| 亚洲人一二三区| 免费在线看一区| 91欧美一区二区| 2019国产精品| 亚洲国产精品久久艾草纯爱| 国产精品中文欧美| 欧美日韩美少妇| 国产情人综合久久777777| 亚洲二区在线观看| 懂色av一区二区在线播放| 欧美日韩精品欧美日韩精品一综合| 日韩欧美123| 一区二区三区国产精华| 国产乱国产乱300精品| 欧美日韩美女一区二区| 国产精品的网站| 国产主播一区二区| 欧美精品tushy高清| 国产精品久久久久一区二区三区共| 日韩成人免费在线| 欧美日韩黄色一区二区| 亚洲欧洲成人精品av97| 国内成+人亚洲+欧美+综合在线| 91成人国产精品| 国产精品女主播在线观看| 精品一二三四区| 欧美精品在欧美一区二区少妇| 亚洲色图欧美激情| 成人午夜在线免费| 久久蜜桃av一区二区天堂| 久久精品99久久久| 91精品国产综合久久精品图片| 亚洲欧美色图小说| 91一区一区三区| 亚洲色图一区二区| 一本色道久久综合精品竹菊| 国产偷国产偷亚洲高清人白洁 | 中文一区二区在线观看| 精品一区二区在线免费观看| 91精品国产全国免费观看 | 欧美三级三级三级| 亚洲精品一卡二卡| 91在线一区二区| 亚洲视频狠狠干| 97久久精品人人澡人人爽| 成人欧美一区二区三区视频网页| 国产99久久久久久免费看农村| ww久久中文字幕| 国产在线视视频有精品| 国产偷国产偷亚洲高清人白洁| 精品一区二区三区影院在线午夜| 欧美v日韩v国产v| 国产精品888| 日本一二三不卡| 99久久精品情趣| 亚洲男同性视频| 欧美日韩国产中文| 久久se这里有精品| 日韩欧美国产一区在线观看| 久久国产欧美日韩精品| 国产亚洲欧美在线| av爱爱亚洲一区| 亚洲国产精品视频| 日韩三区在线观看| 国产凹凸在线观看一区二区| 亚洲精品视频在线观看免费 | 欧美精品乱码久久久久久按摩| 天堂成人免费av电影一区| 欧美精品第一页| 国产.欧美.日韩| 一区二区三区欧美日韩| 91精品福利在线一区二区三区| 久久99精品久久久久婷婷| 中文字幕一区在线观看视频| 欧美亚洲综合在线| 韩国一区二区在线观看| 中文一区二区在线观看| 欧美精品一二三| 丁香婷婷综合网| 日韩精品乱码av一区二区| 26uuu色噜噜精品一区| 91在线播放网址| 久久99精品一区二区三区三区| 国产精品女人毛片| 欧美成人精品1314www| 99久久伊人精品| 美女视频网站黄色亚洲| 亚洲欧美日韩综合aⅴ视频| 欧美大片拔萝卜| 日本高清无吗v一区| 国产麻豆视频精品| 亚洲第一成年网| 成人免费小视频| 久久中文字幕电影| 91精品国产91久久久久久最新毛片| www.激情成人| 国产麻豆精品视频| 偷窥国产亚洲免费视频 | 欧美日韩亚洲丝袜制服| 成人手机电影网| 狠狠色综合播放一区二区| 五月婷婷色综合| 一区二区三区欧美在线观看| 国产精品毛片a∨一区二区三区| 91精品国产福利| 欧美日韩国产片| 欧洲另类一二三四区| 99国产精品视频免费观看| 成人听书哪个软件好| 黑人巨大精品欧美黑白配亚洲| 视频一区免费在线观看| 亚洲高清在线精品| 亚洲国产精品久久人人爱蜜臀| 国产精品久线在线观看| 日本一区二区高清| 中文字幕第一区二区| 国产日韩三级在线| 国产精品女人毛片| 日韩一区欧美小说| 最新成人av在线| 亚洲精品久久7777| 亚洲欧美另类图片小说| 洋洋av久久久久久久一区| 亚洲美女少妇撒尿| 亚洲一二三区视频在线观看| 亚洲国产日韩在线一区模特 | 亚洲精品一区二区三区99| 日韩一区二区免费高清| 这里是久久伊人| 日韩精品一区二区三区在线| 精品国产91乱码一区二区三区 | 国产三级一区二区| 国产精品视频麻豆| 国产精品成人在线观看| 亚洲欧美一区二区不卡| 一区二区三区**美女毛片| 午夜婷婷国产麻豆精品| 久久99热国产| 不卡的av中国片| 欧美中文字幕一区二区三区 | 粉嫩av一区二区三区| 菠萝蜜视频在线观看一区| 色综合久久88色综合天天免费| 欧美吞精做爰啪啪高潮| 日韩精品中午字幕| 亚洲国产成人一区二区三区| 亚洲精品乱码久久久久| 免费在线观看视频一区| 成人性视频免费网站| 精品视频1区2区| 久久影院午夜论| 亚洲专区一二三| 久久99久久久久| 成人av中文字幕| 91麻豆精品久久久久蜜臀| 久久嫩草精品久久久精品| 一区二区在线电影| 国产资源在线一区| 欧美日韩在线播放一区| 国产欧美日韩激情| 日本不卡的三区四区五区| jizz一区二区| 欧美大片日本大片免费观看| 自拍偷拍亚洲综合| 黑人精品欧美一区二区蜜桃| 欧美日韩卡一卡二| 专区另类欧美日韩| 国产露脸91国语对白| 欧美日韩一区二区三区四区 |