File: frmNewTest.vb

package info (click to toggle)
mono-basic 3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,600 kB
  • ctags: 6,969
  • sloc: cs: 34,086; xml: 26,150; makefile: 475; sh: 341
file content (29 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Imports System.Collections.Generic
Imports System.IO

Class frmNewTest
    Private m_Main As frmMain

    Sub New(ByVal Main As frmMain)
        m_Main = Main

        InitializeComponent()
    End Sub

    Private Sub cmdCreateTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCreateTest.Click
        Try
            m_Main.CreateTest(txtName.Text, txtFilename.Text)
            Close()
        Catch ex As Exception
            MsgBox(ex.Message & vbNewLine & ex.StackTrace)
        End Try
    End Sub

    Private Sub cmdCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
        Try
            Close()
        Catch ex As Exception
            MsgBox(ex.Message & vbNewLine & ex.StackTrace)
        End Try
    End Sub
End Class