This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ExcelLibrary.CompoundDocumentFormat; | |
using ExcelLibrary.SpreadSheet; | |
string file = "newdoc.xls"; | |
Workbook workbook = new Workbook(); | |
Worksheet worksheet = new Worksheet("First Sheet"); | |
worksheet.Cells[0, 1] = new Cell((short)1); | |
worksheet.Cells[2, 0] = new Cell(9999999); | |
worksheet.Cells[3, 3] = new Cell((decimal)3.45); | |
worksheet.Cells[2, 2] = new Cell("Text string"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [snip] - As C# is purely object-oriented the following lines must be put into a class: | |
// We use these three SQLite objects: | |
SQLiteConnection sqlite_conn; | |
SQLiteCommand sqlite_cmd; | |
SQLiteDataReader sqlite_datareader; | |
// create a new database connection: | |
sqlite_conn = new SQLiteConnection("Data Source=database.db;Version=3;New=True;Compress=True;"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
obj1.Open(); | |
OleDbCommand command = new OleDbCommand(); | |
command.Connection = obj1; | |
MessageBox.Show("Login Succesfull"); | |
//Throwing exception when enteringg data into the same databse | |
//command.CommandText = "insert into empdata (ID,empname,phone,dob,password) values('" + textBox.Text + "','" + textBox1.Text + "','"+ textBox3.Text + "','"+ textBox4 .Text+ "','"+ textBox2.Text + "')"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Collections; | |
namespace After001 | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace After002 | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
var animals = new IAnimal[] {new Monkey(), new Dog()}; | |
foreach (var animal in animals) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="BookingTicketsLogin"> | |
<div class="LoginBlockTop"> | |
<div class="LoginBlock_TopLeft"></div> | |
<div class="LoginBlock_TopMid"></div> | |
<div class="LoginBlock_TopRight"></div> | |
</div> | |
<div class="LoginBlock"> | |
<div class="LoginBlockDiv"> | |
<h3>Login</h3><br> | |
<font style="color: red;"></font> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
namespace After004 | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
// without reflection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace After017 | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace After024 | |
{ | |
internal class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web.Script.Serialization; | |
using System.Xml; |
OlderNewer