B-18
} finally
{ Cursor
.Current = Cursors
.Default; }
} string
perolehnama string
param {
string temp;
temp = ;
for int
i = param.Length-1; i = 0; i-- {
if param[i] = 92
{ temp = param[i] + temp;
} else
{ break
; }
} return
temp; }
private void
gbr2_Click object
sender, EventArgs
e {
} }
}
5. Form Menggunakan Aplikasi
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace TA_091401006_alespanjaitan
{ public
partial class
Bantuan :
Form {
inputOutput io =
new inputOutput
; public
Bantuan {
InitializeComponent; }
Universitas Sumatera Utara
B-19
private void
Bantuan_Load object
sender, EventArgs
e {
CenterToScreen; }
private void
comboBox1_SelectedIndexChanged object
sender, EventArgs
e {
string dir =
D:Aplikasi Tugas AkhirTA_091401006_alespanjaitanTA_091401006_alespa
njaitan ;
if comboBox1.Text ==
Pengamanan {
richTextBox1.Text = io.bacateks_dirdir+
BantuanPengamanan.ales .Text;
} if
comboBox1.Text == Pengungkapan
{ richTextBox1.Text = io.bacateks_dirdir +
BantuanPengungkapan.ales .Text;
} if
comboBox1.Text == Hitung MSE
{ richTextBox1.Text = io.bacateks_dirdir +
BantuanHitung MSE.ales .Text;
} }
} }
6. Form Tentang
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TA_091401006_alespanjaitan
{ public
partial class
Tentang :
Form {
inputOutput io =
new inputOutput
; public
Tentang {
InitializeComponent; }
private void
Tentang_Load object
sender, EventArgs
e {
CenterToScreen;
Universitas Sumatera Utara
B-20
} private
void comboBox1_SelectedIndexChanged
object sender,
EventArgs e
{ string
dir = D:Aplikasi Tugas
AkhirTA_091401006_alespanjaitanTA_091401006_al espanjaitanTentang
; try
{ if
comboBox1.Text == Programmer
{ pictureBox1.ImageLocation = dir+
Programmer.jpg ;
richTextBox1.Text = io.bacateks_dirdir + Programmer.ales
.Text; }
else if
comboBox1.Text == Parents
{ pictureBox1.ImageLocation = dir +
parent.jpg ;
richTextBox1.Text = io.bacateks_dirdir + parent.ales
.Text; }
else if
comboBox1.Text == Family
{ pictureBox1.ImageLocation = dir+
Keluarga.jpg ;
richTextBox1.Text = io.bacateks_dirdir + Keluarga.ales
.Text; }
else {
pictureBox1.Image = null
; richTextBox1=
null ;
} }
catch {
MessageBox .Show
Ada Kesalahan ;
} }
private void
Tentang_FormClosed object
sender, FormClosedEventArgs
e {
} }
}
7. Class ElGamal