LAMPIRAN A : LISTING PROGRAM

Similar documents
LISTING PROGRAM. a = b; b = c; c = a + b; } fibs.reverse(); for (int i = 0; i < fibs.count; i++) { if (n >= fibs[i]) { n = n - fibs[i];

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer

CALCULATOR APPLICATION

CSIS 1624 CLASS TEST 6

Using Template Bookmarks for Automating Microsoft Word Reports

// Program 2 - Extra Credit // CIS // Spring // Due: 3/11/2015. // By: Andrew L. Wright. //Edited by : Ben Spalding

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. //

You can call the project anything you like I will be calling this one project slide show.

if (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.

LAMPIRAN A : LISTING PROGRAM

LISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr.

Main Game Code. //ok honestly im not sure, if i guess its a class ment for this page called methodtimer that //either uses the timer or set to timer..

private void Form1_Load(object sender, EventArgs e) {

// Precondition: None // Postcondition: The address' name has been set to the // specified value set;

A-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara

UNIT-3. Prepared by R.VINODINI 1

Object oriented lab /second year / review/lecturer: yasmin maki

LISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time.

create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) )

LISTING PROGRAM. void KOMPRESIToolStripMenuItemClick(object sender, EventArgs e) { Kompresi k = new Kompresi(); k.show(); this.

Now find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]

First start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button

Start Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock.

Sub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0.

We are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project.

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content

Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK.

IBSDK Quick Start Tutorial for C# 2010

The Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at:

LAMPIRAN A LISTING PROGRAM

LISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara

Writing Your First Autodesk Revit Model Review Plug-In

Click on the empty form and apply the following options to the properties Windows.

Team project 2017 Dony Pratidana S. Hum Bima Agus Setyawan S. IIP

// Specify SEF file to load. oschema = (edischema) oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);

Huw Talliss Data Structures and Variables. Variables

Visual Basic/C# Programming (330)

APÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende:

Form Properties Window

// Specify SEF file to load. edischema oschema = oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);

Listing Program. private void exittoolstripmenuitem_click(object sender, EventArgs e) { Application.Exit(); }

Answer on Question# Programming, C#

string spath; string sedifile = "277_005010X228.X12"; string sseffile = "277_005010X228.SemRef.EVAL0.SEF";

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

LISTING PROGRAM. void FilteringToolStripMenuItemClick(object sender, EventAr s e) { Filtering a = new Filtering(); this.hide(); a.

Appendix A Programkod

Class Test 4. Question 1. Use notepad to create a console application that displays a stick figure. See figure 1. Question 2

LISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0];

namespace csharp_gen277x214 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

Brian Kiser November Vigilant C# 2.5. Commonwealth of Kentucky Frankfort, Kentucky

Inheriting Windows Forms with Visual C#.NET

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display

Create your own Meme Maker in C#

Lecture 8 Building an MDI Application

Eyes of the Dragon - XNA Part 37 Map Editor Revisited

pojedinačnom elementu niza se pristupa imeniza[indeks] indeks od 0 do n-1

LISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); }

This is the empty form we will be working with in this game. Look under the properties window and find the following and change them.

Representing Recursive Relationships Using REP++ TreeView

CSE 11 Midterm Fall 2012

เว บแอพล เคช น. private void Back_Click(object sender, EventArgs e) { this.webbrowser2.goback(); }

Start Visual Studio, create a new project called Helicopter Game and press OK

In-Class Worksheet #4

Overview. Building a Web-Enabled Decision Support System. Integrating DSS in Business Curriculum. Introduction to DatabaseSupport Systems

C# winforms gridview

C:\homeworks\PenAttention_v13_src\PenAttention_v13_src\PenAttention4\PenAttention\PenAttention.cs 1 using System; 2 using System.Diagnostics; 3 using

XNA 4.0 RPG Tutorials. Part 24. Level Editor Continued

Your Company Name. Tel: Fax: Microsoft Visual Studio C# Project Source Code Output

namespace spojneice { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.

} } public void getir() { DataTable dt = vt.dtgetir("select* from stok order by stokadi");

Chapter 12. Tool Strips, Status Strips, and Splitters

XNA 4.0 RPG Tutorials. Part 11b. Game Editors

Chapter 8 Advanced GUI Features

Visual Basic/C# Programming (330)

The Gracefulness of the Merging Graph N ** C 4 with Dotnet Framework

How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.

private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString

Визуал програмчлал. Багш: Ж. Шинэбаяр /Маг/

Conventions in this tutorial

LISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1);

namespace Gen837X222A1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

عنوان مقاله : خواندن و نوشتن محتوای فایل های Excel بدون استفاده ازAutomation Excel تهیه وتنظیم کننده : مرجع تخصصی برنامه نویسان

Chapter 6 Dialogs. Creating a Dialog Style Form

Hands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011

private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString

namespace csharp_gen837x223a2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

Pengenalan Sistem Maklumat Dalam Pendidikan

LISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()

Project Proposal. GPS Collection Unit

IST311 Chapter13.NET Files (Part2)

private void closetoolstripmenuitem_click(object sender, EventArgs e) { this.close(); }

HIDING PACKET SEND THROUGH MULTIPLE TRANSMISSION LINE BY VIRTUALLY IN AD HOC

CSE 11 Midterm Fall 2009

PERU BAHAN PERKHIDMATAN KREDIT DAN PERBANKAN ARAHAN KERJA UNIT KOMPUTER. Tatacara Proses AGM03. BPKP/KJAK-104 Bilangan Semakan : 0 Tarikh :

NI USB-TC01 Thermocouple Measurement Device

Quick Guide for the ServoWorks.NET API 2010/7/13

LISTING CODE A-1. Indo_to_jawa_Fragments.java. package studio.arti.kamusjawaindonesia;

For this example, we will set up a small program to display a picture menu for a fast food take-away shop.

Manual Pengguna. PCN Online Service Fulfillment System

Transcription:

LAMPIRAN A : LISTING PROGRAM 1. Form Utama (Cover) 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 watermark public partial class Form1 : Form public Form1() InitializeComponent(); private void lowbitcodingtoolstripmenuitem_click(object sender, this.hide(); Form2 fr = new Form2(); fr.show(); private void leastsignificantbittoolstripmenuitem_click(object sender, this.hide(); Form3 fr = new Form3(); fr.show(); private void exittoolstripmenuitem_click(object sender,

this.close(); Application.Exit(); private void abouttoolstripmenuitem_click(object sender, this.hide(); Form4 fr = new Form4(); fr.show(); private void helptoolstripmenuitem_click(object sender, this.hide(); Form5 fr = new Form5(); fr.show(); 2. Form Metodh 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; using Microsoft.Office.Interop.Word; using System.Media; using WMPLib; using MediaInfoNET; using System.Diagnostics; namespace watermark public partial class Form2 : Form

public Form2() InitializeComponent(); Stopwatch ss = new Stopwatch(); private void timer1_tick(object sender, EventArgs e) //Current time label36.text = Mplayer.Ctlcontrols.currentPositionString; //Remainig time double t = Math.Floor(Mplayer.currentMedia.duration - Mplayer.Ctlcontrols.currentPosition); label37.text = t.tostring() + " Seconds Remainig"; private void timer2_tick(object sender, EventArgs e) //Current time label11.text = Mplayer2.Ctlcontrols.currentPositionString; //Remainig time double t = Math.Floor(Mplayer2.currentMedia.duration - Mplayer2.Ctlcontrols.currentPosition); label12.text = t.tostring() + " Seconds Remainig"; private void checkbox2_checkedchanged(object sender, Mplayer.settings.mute = checkbox2.checked; private void checkbox1_checkedchanged(object sender,

Mplayer2.settings.mute = checkbox1.checked; private void timer3_tick(object sender, EventArgs e) int hrs = ss.elapsed.hours, mins = ss.elapsed.minutes, secs = ss.elapsed.seconds, milsecs = ss.elapsed.milliseconds; label16.text = hrs + ":"; if (mins < 10) label16.text += "0" + mins + ":"; label16.text += mins + ":"; if (secs < 10) label16.text += "0" + secs + ":"; label16.text += secs + ":"; label16.text += milsecs; private void btn_play_click_1(object sender, Mplayer.close(); timer2.enabled = true; Mplayer2.URL = tpath2.text; label42.text = "Playing Now"; private void btn_stop_click(object sender, timer2.enabled = false; Mplayer2.close(); label42.text = "Stop"; private void btn_reset_click(object sender, Mplayer2.close();

tpath2.text = ""; label7.text = ""; label8.text = ""; label9.text = ""; label10.text = ""; label11.text = ""; label12.text = ""; label42.text = ""; richtextbox1.text = ""; private void brw_audio_click(object sender, if (odg.showdialog() == DialogResult.OK) tpath2.text = odg.filename; Mplayer.close(); richtextbox1.text = ""; FileInfo yourfile = new FileInfo(oDg.FileName); label9.text = ((float)yourfile.length / 1024).ToString() + " KB"; //AudioTag menggunakanmediainfonet MediaFile audio1 = new MediaFile(tPath2.Text); label7.text = audio1.name; label8.text = audio1.general.format; richtextbox1.text += "File Name\t: " + audio1.name + '\n'; richtextbox1.text += "Format\t: " + audio1.general.format + '\n'; richtextbox1.text += "Duration\t: " + audio1.general.durationstring + '\n'; richtextbox1.text += "Bit Rate\t: " + audio1.general.bitrate + " Kbps\n"; if (audio1.audio.count > 0) richtextbox1.text += "Channels\t: " + audio1.audio[0].channels.tostring() + '\n'; richtextbox1.text += "Sampling\t: " + audio1.audio[0].samplingrate.tostring() + " Hz\n"; richtextbox1.text += "----------------- ----------Tag------------------------------\n";

WMPLib.IWMPMedia m = Mplayer2.newMedia(tPath2.Text); if (m!= null) //Durasi total label10.text = m.durationstring; //Item atribut dan info for (int i = 0; i < m.attributecount; i++) richtextbox1.text += m.getattributename(i) + " = " + m.getiteminfo(m.getattributename(i)) + '\n'; tpath2.text = ""; private void brw_doc_click_1(object sender, OpenFileDialog odg = new OpenFileDialog(); odg.filter = "Word 1997-2003 *.doc Word 2007-2013 *.docx Rich Text File *.rtf Open Document Text *odt Text File *.txt All Files (*.*) *.*"; odg.title = ""; if (odg.showdialog() == DialogResult.OK) textbox3.text = odg.filename; //alamatlabel.text = openfiledialog1.filename; //buat directive imports Microsoft.Office.Interop.Word.Application wordapp = new Microsoft.Office.Interop.Word.Application(); //buat filename dan drive document yang akan di buka object filenameo = @odg.filename; //buat object boolean object objfalse = false; object objtrue = true;

//buat object object missing = System.Reflection.Missing.Value; object emptydata = string.empty; //gunakan try untuk code yang akan di eksekusi try //buat directive Microsoft.Office.Interop.Word.Document adoc = wordapp.documents.open(ref filenameo, ref objfalse, ref objtrue, ref objfalse, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref objtrue, ref missing, ref missing, ref missing, ref missing); //copy keseluruhan isi doc adoc.activewindow.selection.wholestory(); adoc.activewindow.selection.copy(); //buat idataobject untuk menyimpan data IDataObject data = System.Windows.Forms.Clipboard.GetDataObject(); String filetext = data.getdata(system.windows.forms.dataformats.text).tostr ing(); System.Windows.Forms.Clipboard.SetDataObject(string.Empty ); //load data ke dalam richtextbox1 richtextbox2.text = filetext; //untuk handle kesalahan yang ada catch (Exception err) MessageBox.Show(err.Message); //bila code sukses maka finally akan di jalankan finally MessageBox.Show("Anda telah berhasil load document", odg.filename);

wordapp.quit(); private void btn_watermark_click_1(object sender, if (textbox2.text!= "ilkom") MessageBox.Show("Password Salah"); //hitung waktulbc DateTime awal = DateTime.Now; //Ubah audio ke bytes byte[] bytes = System.IO.File.ReadAllBytes(tPath2.Text); //Ubah pesan ke binary string binpesan = ""; string hex = richtextbox2.text; int panjangpesan = 0; foreach (byte b in hex) binpesan += Convert.ToString(hex[panjangPesan], 2).PadLeft(8, '0'); panjangpesan++; panjangpesan *= 8; //Pola LBC textbox1.text = ""; var rng = new Random(); var values = Enumerable.Range(1, 4).OrderBy(x => rng.next()).toarray(); int first = values[0]; int second = values[1]; int third = values[2]; int fourth = values[3]; textbox1.text = first.tostring() + second.tostring() + third.tostring() + fourth.tostring(); string pola = textbox1.text;

//LBC int i = 0, j = 0; try string pesan = binpesan; foreach (byte b in bytes) if (j < 2112) // header j++; continue; if (pesan[i] == '1') if (pola[i % 4] == '1') bytes[j] = (byte)(b 1); if (pola[i % 4] == '2') bytes[j] = (byte)(b 2); if (pola[i % 4] == '3') bytes[j] = (byte)(b 4); bytes[j] = (byte)(b 8); if (pola[i % 4] == '1') bytes[j] = (byte)(b & 254); if (pola[i % 4] == '2') bytes[j] = (byte)(b & 253); if (pola[i % 4] == '3') bytes[j] = (byte)(b & 251); bytes[j] = (byte)(b & 247); i++; j++; if (i >= panjangpesan) break; catch (Exception q) //MessageBox.Show(q.Message.ToString());

finally //akhir proses DateTime akhir = DateTime.Now; TimeSpan elapsed = akhir.subtract(awal); label16.text = elapsed.hours.tostring("00") + ":" + elapsed.minutes.tostring("00") + ":" + elapsed.seconds.tostring("00") + "." + elapsed.milliseconds.tostring("000"); //Save file hasil watermark sdg.filter = "Windows Media Audio *.wma All Files (*.*) *.*"; sdg.title = ""; if (sdg.showdialog() == DialogResult.OK) System.IO.File.WriteAllBytes(sDg.FileName, bytes); MessageBox.Show("Save File success", sdg.filename); SoundPlayer myplayer = new SoundPlayer(oDg.FileName); myplayer.stream = new MemoryStream(); //myplayer.play(); //Save Pola LBC sdg.filter = "Text File *.txt All Files (*.*) *.*"; sdg.title = ""; if (sdg.showdialog() == DialogResult.OK) try System.IO.File.WriteAllText(sDg.FileName, textbox1.text); catch (IOException err)

MessageBox.Show(err.Message); finally MessageBox.Show("Anda telah berhasil mem-publish pola LBC", sdg.filename); private void btn_reset2_click_1(object sender, tpath2.text = ""; textbox3.text = ""; richtextbox2.text = ""; textbox2.text = ""; textbox1.text = ""; //label17.text = ""; label16.text = ""; private void btn_close_click_1(object sender, this.dispose(); Form fr = new Form1(); fr.showdialog(); private void brw_audio2_click(object sender, if (odg.showdialog() == DialogResult.OK) tpath.text = odg.filename; Mplayer2.close(); richtextbox4.text = ""; FileInfo yourfile = new FileInfo(oDg.FileName); label34.text = ((float)yourfile.length / 1024).ToString() + " KB";

//AudioTag menggunakanmediainfonet MediaFile audio2 = new MediaFile(tPath.Text); label33.text = audio2.name; label40.text = audio2.general.format; richtextbox4.text += "File Name\t: " + audio2.name + '\n'; richtextbox4.text += "Format\t: " + audio2.general.format + '\n'; richtextbox4.text += "Duration\t: " + audio2.general.durationstring + '\n'; richtextbox4.text += "Bit Rate\t: " + audio2.general.bitrate + " Kbps\n"; if (audio2.audio.count > 0) richtextbox4.text += "Channels\t: " + audio2.audio[0].channels.tostring() + '\n'; richtextbox4.text += "Sampling\t: " + audio2.audio[0].samplingrate.tostring() + " Hz\n"; richtextbox4.text += "----------------- ----------Tag------------------------------\n"; WMPLib.IWMPMedia m = Mplayer.newMedia(tPath.Text); if (m!= null) //Durasi total label35.text = m.durationstring; //Item atribut dan info for (int i = 0; i < m.attributecount; i++) richtextbox4.text += m.getattributename(i) + " = " + m.getiteminfo(m.getattributename(i)) + '\n'; tpath.text = "";

private void brw_doc2_click_1(object sender, OpenFileDialog odg = new OpenFileDialog(); odg.filter = "Word 1997-2003 *.doc Word 2007-2013 *.docx Rich Text File *.rtf Open Document Text *odt Text File *.txt All Files (*.*) *.*"; odg.title = ""; if (odg.showdialog() == DialogResult.OK) textbox4.text = odg.filename; //alamatlabel.text = openfiledialog1.filename; //buat directive imports Microsoft.Office.Interop.Word.Application wordapp = new Microsoft.Office.Interop.Word.Application(); //buat filename dan drive document yang akan di buka object filenameo = @odg.filename; //buat object boolean object objfalse = false; object objtrue = true; //buat object object missing = System.Reflection.Missing.Value; object emptydata = string.empty; //gunakan try untuk code yang akan di eksekusi try //buat directive Microsoft.Office.Interop.Word.Document adoc = wordapp.documents.open(ref filenameo, ref objfalse, ref objtrue, ref objfalse, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref objtrue, ref missing, ref missing, ref missing, ref missing); //copy keseluruhan isi doc adoc.activewindow.selection.wholestory();

adoc.activewindow.selection.copy(); //buat idataobject untuk menyimpan data IDataObject data = System.Windows.Forms.Clipboard.GetDataObject(); String filetext = data.getdata(system.windows.forms.dataformats.text).tostr ing(); System.Windows.Forms.Clipboard.SetDataObject(string.Empty ); //load data ke dalam richtextbox1 richtextbox6.text = filetext; //untuk handle kesalahan yang ada catch (Exception err) MessageBox.Show(err.Message); //bila code sukses maka finally akan di jalankan finally MessageBox.Show("Anda telah berhasil load document", odg.filename); wordapp.quit(); private void btn_watermark2_click_1(object sender, if (textbox5.text!= "ilkom") MessageBox.Show("Salah Password"); //hitung waktulsb DateTime awal = DateTime.Now; //Ubah audio ke bytes byte[] bytes = System.IO.File.ReadAllBytes(tPath.Text); //Ubah pesan ke binary

string binpesan = ""; string hex = richtextbox6.text; int panjangpesan = 0; foreach (byte b in hex) binpesan += Convert.ToString(hex[panjangPesan], 2).PadLeft(8, '0'); panjangpesan++; panjangpesan *= 8; //LSB int i = 0, j = 0; try string pesan = binpesan; foreach (byte b in bytes) if (j < 2112) // header j++; continue; if (pesan[i] == '1') bytes[j] = (byte)(b 1); bytes[j] = (byte)(b & 254); i++; j++; if (i >= panjangpesan) break; catch (Exception q) //MessageBox.Show(q.Message.ToString()); finally //akhir proses DateTime akhir = DateTime.Now; TimeSpan elapsed = akhir.subtract(awal); label17.text = elapsed.hours.tostring("00") + ":" +

elapsed.minutes.tostring("00") + ":" + elapsed.seconds.tostring("00") + "." + elapsed.milliseconds.tostring("000"); //Save file hasil watermark sdg.filter = "Windows Media Audio *.wma All Files (*.*) *.*"; sdg.title = ""; if (sdg.showdialog() == DialogResult.OK) System.IO.File.WriteAllBytes(sDg.FileName, bytes); MessageBox.Show("Save File success", sdg.filename); SoundPlayer myplayer = new SoundPlayer(oDg.FileName); myplayer.stream = new MemoryStream(); //myplayer.play(); private void btn_reset3_click(object sender, tpath.text = ""; textbox4.text = ""; richtextbox6.text = ""; textbox5.text = ""; label17.text = ""; private void btn_close2_click_1(object sender, this.dispose(); Form fr = new Form1(); fr.showdialog();

private void btn_play2_click_1(object sender, Mplayer2.close(); timer1.enabled = true; Mplayer.URL = tpath.text; label38.text = "Playing Now"; private void btn_stop2_click_1(object sender, timer1.enabled = false; Mplayer.close(); label38.text = "Stop"; private void btn_reset4_click_1(object sender, Mplayer.close(); tpath.text = ""; label33.text = ""; label34.text = ""; label35.text = ""; label36.text = ""; label37.text = ""; label38.text = ""; label40.text = ""; richtextbox4.text = ""; 3. Form Extract 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.Media; using MediaInfoNET; using System.Diagnostics; using System.IO; namespace watermark public partial class Form3 : Form public Form3() InitializeComponent(); Stopwatch ss = new Stopwatch(); private void checkbox2_checkedchanged(object sender, Mplayer.settings.mute = checkbox2.checked; private void timer1_tick(object sender, EventArgs e) //Current time label36.text = Mplayer3.Ctlcontrols.currentPositionString; //Remainig time double t = Math.Floor(Mplayer3.currentMedia.duration - Mplayer3.Ctlcontrols.currentPosition); label35.text = t.tostring() + " Seconds Remainig"; private void timer2_tick(object sender, EventArgs e) //Current time label29.text = Mplayer.Ctlcontrols.currentPositionString;

//Remainig time double t = Math.Floor(Mplayer.currentMedia.duration - Mplayer.Ctlcontrols.currentPosition); label30.text = t.tostring() + " Seconds Remainig"; private void checkbox1_checkedchanged(object sender, Mplayer3.settings.mute = checkbox1.checked; private void brw_audio_click_1(object sender, if (odg.showdialog() == DialogResult.OK) textbox1.text = odg.filename; Mplayer.close(); richtextbox4.text = ""; FileInfo yourfile = new FileInfo(oDg.FileName); label27.text = ((float)yourfile.length / 1024).ToString() + " KB"; //AudioTag menggunakanmediainfonet MediaFile audio1 = new MediaFile(textBox1.Text); label5.text = audio1.name; label26.text = audio1.general.format; richtextbox4.text += "File Name\t: " + audio1.name + '\n'; richtextbox4.text += "Format\t: " + audio1.general.format + '\n'; richtextbox4.text += "Duration\t: " + audio1.general.durationstring + '\n'; richtextbox4.text += "Bit Rate\t: " + audio1.general.bitrate + " Kbps\n"; if (audio1.audio.count > 0) richtextbox4.text += "Channels\t: " + audio1.audio[0].channels.tostring() + '\n'; richtextbox4.text += "Sampling\t: " + audio1.audio[0].samplingrate.tostring() + " Hz\n";

richtextbox4.text += "----------------- ----------Tag------------------------------\n"; WMPLib.IWMPMedia m = Mplayer.newMedia(textBox1.Text); if (m!= null) //Durasi total label28.text = m.durationstring; //Item atribut dan info for (int i = 0; i < m.attributecount; i++) richtextbox3.text += m.getattributename(i) + " = " + m.getiteminfo(m.getattributename(i)) + '\n'; textbox1.text = ""; private void btn_play_click_1(object sender, Mplayer3.close(); timer2.enabled = true; Mplayer.URL = textbox1.text; label33.text = "Playing Now"; private void btn_stop_click_1(object sender, timer2.enabled = false; Mplayer.close(); label33.text = "Stop"; private void btn_reset_click_1(object sender,

Mplayer.close(); textbox1.text = ""; label5.text = ""; label26.text = ""; label27.text = ""; label28.text = ""; label29.text = ""; label30.text = ""; label33.text = ""; richtextbox4.text = ""; private void brw_pola_click_1(object sender, OpenFileDialog odg = new OpenFileDialog(); odg.filter = "Text File *.txt All Files (*.*) *.*"; odg.title = ""; if (odg.showdialog() == DialogResult.OK) try string text = System.IO.File.ReadAllText(oDg.FileName); textbox2.text = text; catch (IOException err) MessageBox.Show(err.Message); finally MessageBox.Show("Anda telah berhasil meng-import public key", odg.filename); private void btn_extract_click_1(object sender, if (textbox3.text!= "ilkom")

MessageBox.Show("Password Salah"); //waktu awal DateTime awal = DateTime.Now; richtextbox1.text = ""; int i = 2112; //Ubah audio ke byte string binaudio = ""; byte[] bytes = System.IO.File.ReadAllBytes(textBox1.Text); foreach (byte b in bytes) binaudio += Convert.ToString(bytes[i], 2).PadLeft(8, '0'); i++; if (i >= 3112) break; string pola = textbox2.text; string binpesan = ""; int panjangbytes = binaudio.length / 8; for (i = 0; i < panjangbytes; ++i) //0-23 awal merupakan header if (pola[i % 4] == '1') binpesan += binaudio.substring(i * 8 + 7, 1); if (pola[i % 4] == '2') binpesan += binaudio.substring(i * 8 + 6, 1); if (pola[i % 4] == '3') binpesan += binaudio.substring(i * 8 + 5, 1); binpesan += binaudio.substring(i * 8 + 4, 1); int panjangpesan = binpesan.length / 8; byte bytespesan;

for (i = 0; i < panjangpesan; ++i) bytespesan = Convert.ToByte(binpesan.Substring(8 * i, 8), 2); if (bytespesan < 9 (bytespesan > 10 && bytespesan < 32) bytespesan > 127) break; richtextbox1.text += Convert.ToChar(bytespesan); //akhir proses DateTime akhir = DateTime.Now; TimeSpan elapsed = akhir.subtract(awal); label50.text = elapsed.hours.tostring("00") + ":" + elapsed.minutes.tostring("00") + ":" + elapsed.seconds.tostring("00") + "." + elapsed.milliseconds.tostring("000"); private void btn_reset2_click_1(object sender, textbox2.text = ""; textbox3.text = ""; richtextbox1.text = ""; label50.text = ""; private void btn_close_click_1(object sender, this.dispose(); Form fr = new Form1(); fr.showdialog(); private void brw_audio2_click_1(object sender, if (odg.showdialog() == DialogResult.OK) tpath.text = odg.filename; Mplayer.close();

richtextbox3.text = ""; FileInfo yourfile = new FileInfo(oDg.FileName); label38.text = ((float)yourfile.length / 1024).ToString() + " KB"; //AudioTag menggunakanmediainfonet MediaFile audio2 = new MediaFile(tPath.Text); label45.text = audio2.name; label40.text = audio2.general.format; richtextbox3.text += "File Name\t: " + audio2.name + '\n'; richtextbox3.text += "Format\t: " + audio2.general.format + '\n'; richtextbox3.text += "Duration\t: " + audio2.general.durationstring + '\n'; richtextbox3.text += "Bit Rate\t: " + audio2.general.bitrate + " Kbps\n"; if (audio2.audio.count > 0) richtextbox3.text += "Channels\t: " + audio2.audio[0].channels.tostring() + '\n'; richtextbox3.text += "Sampling\t: " + audio2.audio[0].samplingrate.tostring() + " Hz\n"; richtextbox3.text += "----------------- ----------Tag------------------------------\n"; WMPLib.IWMPMedia m = Mplayer3.newMedia(tPath.Text); if (m!= null) //Durasi total label37.text = m.durationstring; //Item atribut dan info for (int i = 0; i < m.attributecount; i++) richtextbox3.text += m.getattributename(i) + " = " + m.getiteminfo(m.getattributename(i)) + '\n';

tpath.text = ""; private void btn_play2_click_1(object sender, Mplayer.close(); timer1.enabled = true; Mplayer3.URL = tpath.text; label34.text = "Playing Now"; private void btn_stop2_click_1(object sender, timer1.enabled = false; Mplayer3.close(); label42.text = "Stop"; private void btn_reset3_click_1(object sender, Mplayer3.close(); tpath.text = ""; label45.text = ""; label40.text = ""; label38.text = ""; label37.text = ""; label36.text = ""; label35.text = ""; richtextbox3.text = ""; private void btn_extract2_click_1(object sender, if (textbox4.text!= "ilkom") MessageBox.Show("Password Salah"); DateTime awal = DateTime.Now;

richtextbox2.text = ""; int i = 2112; //Ubah audio ke byte string binaudio = ""; byte[] bytes = System.IO.File.ReadAllBytes(tPath.Text); foreach (byte b in bytes) binaudio += Convert.ToString(bytes[i], 2).PadLeft(8, '0'); i++; if (i >= 3112) break; string binpesan = ""; int panjangbytes = binaudio.length / 8; for (i = 0; i < panjangbytes; ++i) //0-23 awal merupakan header binpesan += binaudio.substring(i * 8 + 7, 1); int panjangpesan = binpesan.length / 8; byte bytespesan; for (i = 0; i < panjangpesan; ++i) bytespesan = Convert.ToByte(binpesan.Substring(8 * i, 8), 2); if (bytespesan < 9 (bytespesan > 10 && bytespesan < 32) bytespesan > 127) break; richtextbox2.text += Convert.ToChar(bytespesan); //akhir proses DateTime akhir = DateTime.Now; TimeSpan elapsed = akhir.subtract(awal); label51.text = elapsed.hours.tostring("00") + ":" + elapsed.minutes.tostring("00") + ":" + elapsed.seconds.tostring("00") + "." + elapsed.milliseconds.tostring("000");

private void btn_reset4_click_1(object sender, textbox4.text = ""; richtextbox2.text = ""; label51.text = ""; private void btn_close2_click_1(object sender, this.dispose(); Form fr = new Form1(); fr.showdialog();

CURRICULUM VITAE Nama : Suri Syahfitri Alamat Sekarang : Jl. Jamin Ginting Gg. Arihta No. 14, Padang Bulan, Medan Alamat Orang Tua : Jl. Piturah Gg. Persatuan No.148, Pangkalan Berandan Telp/ Hp : 082167457976 Email : surisyahfitri@gmail.com / ssyahfitri@yahoo.com Pendidikan 1997 2003 : SD Negeri 1 Alur Dua, Pangkalan Berandan 2003 2006 : SMP Negeri 1 Babalan, Pangkalan Berandan 2006 2009 : SMA Negeri 1 Babalan, Pangkalan Berandan 2009 Sekarang : (FasilkomTI Ilmu Komputer) Kualifikasi Programming Bahasa Inggris