Skip to content

Commit

Permalink
Merge pull request #8 from harliq/Statusbar
Browse files Browse the repository at this point in the history
Copy/Paste
  • Loading branch information
harliq authored Apr 18, 2020
2 parents ed61368 + 1a15675 commit 74f9e1f
Show file tree
Hide file tree
Showing 9 changed files with 351 additions and 352 deletions.
12 changes: 8 additions & 4 deletions MiMB/Meta.vb
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@
Private ActionDataType As String 'Using this to set Vars based on action data types in for Multiple Actions.

Sub MetaExport()
frmMain.ToolStripStatusLabelInfo.Text = "Exporting Meta..."

Dim metafile As String

Dim RecordCount As Integer = frmMain.dgvMetaRules.Rows.Count - 1 ' Record Count I think. May need to add -1 for it to match
Dim RecordCount As Integer = frmMain.dgvMetaRules.Rows.Count '- 1 ' Record Count I think. May need to add -1 for it to match
'rowcount = frmMain.dgvMetaRules.DisplayedRowCount(False)
Dim tempmeta As String
Dim cVarType As String = ""

Dim progressBar As Double = 100 / RecordCount
Dim progressBarValue As Double = 0
TestingStuff.TextBoxTest.Text = Nothing
'Meta File Header
tempmeta = "1" & vbNewLine & "CondAct" & vbNewLine & "5" & vbNewLine & "CType" & vbNewLine & "AType" & vbNewLine & "CData" & vbNewLine & "AData" & vbNewLine & "State" & vbNewLine & "n" & vbNewLine & "n" & vbNewLine & "n" & vbNewLine & "n" & vbNewLine & "n" & vbNewLine & RecordCount & vbNewLine


For Each r As DataGridViewRow In frmMain.dgvMetaRules.Rows

progressBarValue = progressBarValue + progressBar
frmMain.ToolStripProgressBarSave.Value = CInt(progressBarValue)
Dim i As String = "i" + vbCrLf
Dim s As String = "s" + vbCrLf
Dim tCD As String = "i" 'temp var for setting the Condition Data Var type -Set when Condition Type is figured out.
Expand Down Expand Up @@ -288,7 +291,8 @@
TestingStuff.Show()
Else
End If

frmMain.ToolStripStatusLabelInfo.Text = ""
frmMain.ToolStripProgressBarSave.Value = 0

End Sub

Expand Down
4 changes: 2 additions & 2 deletions MiMB/MiMB.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<MyType>WindowsForms</MyType>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>E:\Dropbox\MiMB\2.0.0.5\</PublishUrl>
<PublishUrl>E:\Dropbox\MiMB\2.1.0.0\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
Expand All @@ -28,7 +28,7 @@
<ProductName>Mission Impossible MetaBuilder</ProductName>
<PublisherName>Harli B</PublisherName>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>2.0.1.0</ApplicationVersion>
<ApplicationVersion>2.1.0.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>
Expand Down
4 changes: 2 additions & 2 deletions MiMB/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("2.0.1.0")>
<Assembly: AssemblyFileVersion("2.0.1.0")>
<Assembly: AssemblyVersion("2.0.9.2")>
<Assembly: AssemblyFileVersion("2.0.9.2")>
170 changes: 111 additions & 59 deletions MiMB/frmMain.Designer.vb

Large diffs are not rendered by default.

24 changes: 15 additions & 9 deletions MiMB/frmMain.resx
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@
<data name="ToolStripButtonExport.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEvSURBVDhPpVKxTsMwFMwf8Q+ZItFM5BP6A8A/5A+QQEIw
RgxsDGSiCNGRISILqlRBh6SKiV0lNQvVwxfsykmLGuCkk2Xl7t7ZjmNQ1/VESkmG2OtP/QHT8OSenINz
Or4c9w9RwmFVVVNMXi4l/SoE5qdJTntH142py6uHFxzpVss3gckwH1480mzOKWNi3QDrzgaoDfE0K4lz
/oHaxozjMMaoKIoWlQ6tnpsAu8G8XDQNwLvRiIIgoMH+gHzfX9N13YZhGH6HdO8A5jRNP2F+e52R4IsW
TQDYtAfsVzCEoGv+MaCLXQG4BzNIW9roE6Cl2/GvAJgh+HOAEELaz2WYZzm9s5I8z6MkSVZavgnV4DSO
49abG8IcRREu70bLt0MJztAEx7Gp/o+VWi2z43wBLd0DbOK612wAAAAASUVORK5CYII=
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEuSURBVDhPpVHBSsNAFMwf+Q85BWxO5hP6A+o/5A8EhaLH
4MGbB3OyIno0EHIqhaI9JCUxm5J0vVieO+tu2aSVRh0YlpCZ2dn3LI2maaacc9LEt/rVHzANzx7IOhrR
6dVz/xAhHNZ1PcPNqxWnX4XA/DLN6ODkRpq6vH6c4El3Sr4N3Azz8eUTzReM0qLaNMC5twFqQzxLS2KM
faC2NuM5RVFQnuctCh1aJTLAbLAol7IBeD8ek+d5NDgckOu6G9q2Len7/ndIdwYwJ0nyCfPb65wqtmxR
B4CyPWBuQROCrvnHgC72BWAO+iJlaaNPgJLuxr8CYIbgzwFVVXFzXZpZmtF7UZLjOBRF0VrJtyEanIdh
2Nq5JsxBEGB4t0q+G0JwgSZ4jsk4jtfiNMyW9QUhpANXtjw6agAAAABJRU5ErkJggg==
</value>
</data>
<data name="ToolStripButtonImport.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
Expand Down Expand Up @@ -211,13 +211,19 @@
</value>
</data>
<metadata name="OpenFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>335, 9</value>
<value>335, 8</value>
</metadata>
<metadata name="SaveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>477, 9</value>
<value>477, 8</value>
</metadata>
<metadata name="SaveFileDialogMeta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>614, 9</value>
<value>614, 8</value>
</metadata>
<metadata name="SplitContainer1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="StatusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>773, 8</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>31</value>
Expand Down
Loading

0 comments on commit 74f9e1f

Please sign in to comment.