This file contains hidden or 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
| private void tmr_Tick(object sender, EventArgs e) | |
| { | |
| TimeSpan span = (DateTime.Now - dtPast.Value); | |
| lblCaption.Text = getFark(span); | |
| } | |
| private void Form1_Load(object sender, EventArgs e) | |
| { | |
| dtPast.Value = DateTime.Now; | |
| tmr.Enabled = true; |
This file contains hidden or 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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var p = AddPerson(); | |
| PersonList pList = new PersonList(); | |
| pList.AddPerson("Ayşe", "KAYA", 27); | |
| pList.AddPerson("Metin", "TAŞKIN", 35); | |
| pList.AddPerson("Ali", "ŞENLİK", 25); | |
| Serialize(p, "Person.xml"); |
This file contains hidden or 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
| public Queue<string> liste = new Queue<string>(); | |
| private void txtCopy_KeyDown(object sender, KeyEventArgs e) | |
| { | |
| if (e.Control && e.KeyCode == Keys.C) | |
| { | |
| if ((!string.IsNullOrEmpty(txtCopy.Text)) && (!liste.Contains(txtCopy.Text))) | |
| { | |
| liste.Enqueue(txtCopy.Text); | |
| } |
This file contains hidden or 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
| public List<string> list = new List<string>(); | |
| public int i = 0; | |
| private void txtCopy_KeyDown(object sender, KeyEventArgs e) | |
| { | |
| if (e.Control && e.KeyCode == Keys.C) | |
| { | |
| if ((!string.IsNullOrEmpty(txtCopy.Text)) && (!list.Contains(txtCopy.Text))) | |
| list.Add(txtCopy.Text); | |
| } |
This file contains hidden or 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
| private void btnCevir_Click(object sender, EventArgs e) | |
| { | |
| lblYazi.Text = Yaziyla(Convert.ToDouble(txtNumber.Text)); | |
| } | |
| static string frNumToStr2(Double Sayi) | |
| { | |
| string[] birler = { "", "BİR", "İKİ", "ÜÇ", "DÖRT", "BEŞ", "ALTI", "YEDİ", "SEKİZ", "DOKUZ" }; | |
| string[] onlar = { "", "ON", "YİRMİ", "OTUZ", "KIRK", "ELLİ", "ALTMIŞ", "YETMİŞ", "SEKSEN", "DOKSAN" }; | |
| string[] katlar = {"", "YÜZ", "BİN", "MİLYON", "MİLYAR", "TRİLYON", "KATRİLYON" }; |
This file contains hidden or 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
| static int max_basamak = 30; | |
| static string[] birler = { "", "Bir", "İki", "Üç", "Dört", "Beş", "Altı", "Yedi", "Sekiz", "Dokuz" }; | |
| static string[] onlar = { "", "On", "Yirmi", "Otuz", "Kırk", "Elli", "Altmış", "Yetmiş", "Seksen", "Doksan" }; | |
| static string[] binler = { "", "Septilyon", "Sekstilyon", "Kentilyon", "Katrilyon", "Trilyon", "Milyar", "Milyon", "Bin", "" }; | |
| static int[] basamak = new int[3]; | |
| static string SayiToYazi(string sayi) | |
| { | |
| string yaziyla = ""; |
This file contains hidden or 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
| public Form1() | |
| { | |
| InitializeComponent(); | |
| pColor = new Queue<Color>(); | |
| PrepareColor(); | |
| } | |
| public Queue<Color> pColor { get; set; } | |
| public List<Color> lColor = new List<Color> { Color.OrangeRed, Color.Aqua, Color.LightCoral, Color.MediumPurple, Color.Chartreuse, Color.Yellow }; |
This file contains hidden or 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
| public class oyleBirSey | |
| { | |
| public int ControlCount; | |
| static oyleBirSey birSey; | |
| public static oyleBirSey Birsey | |
| { | |
| get |
This file contains hidden or 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
| private void button1_Click(object sender, EventArgs e) | |
| { | |
| Random newsNumber = new Random(); | |
| var Number = newsNumber.Next(000000, 999999); | |
| string[] TR = new string[] { "Ş", "Ç", "Ö", "Ü", "İ", "ş", "ç", "ı", "ö", "ü" }; | |
| string[] ING = new string[] { "S", "C", "O", "U", "I", "s", "c", "i", "o", "u" }; | |
| var category = txtName.Text.ToLower(); | |
| var str = rtbNews.Text.Replace("'", "").Replace(":", "").Replace("\n", " ").ToLower().Replace(" ", "-"); | |
| for (int j = 0; j < TR.Length; j++) |
This file contains hidden or 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
| private void btnEkle_Click(object sender, EventArgs e) | |
| { | |
| var Index = txtName.Text.LastIndexOf(" "); | |
| var str = ""; | |
| var Flag = true; | |
| for (int i = 0; i < txtName.Text.Length; i++) | |
| { | |
| if (Flag) | |
| { | |
| str += txtName.Text[i].ToString().ToUpper(); |
NewerOlder