Using system;
Using system. Collections. Generic;
Using system. componentmodel;
Using system. Data;
Using system. drawing;
Using system. text;
Using system. Windows. forms;
Namespace windowsapplication1
{
Public partial class form1: Form
{
Private Static system. Diagnostics. Process landeatsnake, landfiledivisison;
Public form1 ()
{
Initializecomponent ();
}
Private void button#click (Object sender, eventargs E)
{
Try
{
If (landfiledivisison = NULL)
{
Landfiledivisison = new system. Diagnostics. Process ();
Landfiledivisison. startinfo. filename = "large file splitter .exe ";
Landfiledivisison. Start ();
}
Else
{
If (landfiledivisison. hasexited) // whether or not it is running
{
Landfiledivisison. Start ();
}
}
}
Catch (exception ERR)
{
MessageBox. Show ("An error occurred while running the program! "+ Err. tostring ()," error message ", messageboxbuttons. OK, messageboxicon. Error );
}
}
Private void button2_click (Object sender, eventargs E)
{
Try
{
If (landeatsnake = NULL)
{
Landeatsnake = new system. Diagnostics. Process ();
Landeatsnake. startinfo. filename = "optical drive outgoing or closed (ctrlw.alt00000000.exe ";
Landeatsnake. Start ();
}
Else
{
If (landeatsnake. hasexited) // whether or not it is running
{
Landeatsnake. Start ();
}
}
}
Catch (exception ERR)
{
MessageBox. Show ("An error occurred while running the program! "+ Err. tostring ()," error message ", messageboxbuttons. OK, messageboxicon. Error );
}
}
}
}