>
///
///The main entry point for the application.
///
[STAThread] void Main ()
{. Run (new Form1 ());
}
static string строкаПодключенія = @ "Integrated Security = SSPI; User ID = Адміністратор; Data Source =" "HOME" "; Initial Catalog = OplataDB; Provider =" "SQLOLEDB. 1 ""; Workstation ID = "" HOME ""; Packet Size = 4096 ";
void Form1_Load (object sender, System.EventArgs e)
{
{. IO.FileStream fs = new System.IO.FileStream ("options.bak", System.IO.FileMode.Open);. IO.StreamReader reader = new
}
{. ShowMyMessage ("Помилка при завантаженні налаштувань.");
}
}
void Form1_Paint (object sender, System.Windows.Forms.PaintEventArgs e)
{g = this.CreateGraphics (); LGB = new System.Drawing.Drawing2D.LinearGradientBrush (new
}
void znOFFImageButton1_MouseUp (object sender, System.Windows.Forms.MouseEventArgs e)
{f2 = new Form2 ();. ShowDialog ();. Dispose ();
}
void znOFFImageButton2_MouseUp (object sender, System.Windows.Forms.MouseEventArgs e)
{f4 = new Form4 ();. ShowDialog ();. Dispose ();
}
static void ShowMyMessage (string str)
{
Соо бщеніе mes = new Повідомлення ();. label1.Text = str;. ShowDialog ();. Dispose ();
}
static bool Відповідь (string str)
{
Питання v = new Питання ();. label1.Text = str;. ShowDialog (); v.ОтветДа;
}
void menuItem5_Click (object sender, System.EventArgs e)
{fo = new FormOptions ();. ShowDialog ();. Dispose ();
}
void menuItem7_Click (object sender, System.EventArgs e)
{fed = new FormEditor ();. таблиця = "Student";. ShowDialog ();
}
void menuItem8_Click (object sender, System.EventArgs e)
{fed = new FormEditor ();. таблиця = "Disciplina";. ShowDialog ();
}
void menuItem9_Click (object sender, System.EventArgs e)
{fed = new FormEditor ();. таблиця = "Gruppa";. ShowDialog ();
}
void menuItem10_Click (object sender, System.EventArgs e)
{fed = new FormEditor ();. таблиця = "Prichina";. ShowDialog ();
} ...