Jump to content

SimpsoN_Bart

-=TNC.VIP=-
  • Posts

    712
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by SimpsoN_Bart

    1. D21B500K

      D21B500K

      Çok fena :D ölümüne yıkama işlemi. O makineyi kurutma moduna almışlar 1000 devir :p

    2. FireWalkeR

      FireWalkeR

      yalnız motor sağlammış kayış kopmasa hala devam :D

    3. iRealisT
  1. Senin istediklerin zaten hiç bir yerde yok ki. Kinto nun sana attığı projede istediğin var ama sen birisi yazsın versin mantığındasın hala. Yapman gereken select ile çekik grid teki verileri textboxları eşitlemek bu kadar.
  2. İlk yazdığım kodu direkt Form1_FormClosing evresine yazarsan tüm formları kapatıyor zaten deneyerek yazdım o kodu ben :huh:
  3. Olayı tam anlayamadım ya da sen tam anlatamadın her iki ihtimale karşı bir kaç bir şeyler yazalım; private void Form1_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason.UserClosing) { if (MessageBox.Show("Programı Kapatmak İstedignizden Emin misiniz?", "Restaurant Yazılımı", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK) Environment.Exit(0); else e.Cancel = true; } } Bu şekilde yaparsan açık olan tüm formlar kapanır. public static void closeAll() { FormCollection fc = Application.OpenForms; if (fc.Count > 1) { for (int i = (fc.Count); i > 1; i--) { Form selectedForm = Application.OpenForms[i - 1]; selectedForm.Close(); } } } Bu şekilde de yaparsan açık olan diğer tüm formlar kapanır yanlızca kendisi kapanmaz onuda logon ekranı mı yaparsın bilemem. Fonksiyon olarak yazdım nasıl kullanacağını biliyorsundur.Birini Form1_FormClosing evresine diğerini de Butondan çağırarak yapabilirsin. Bu arada "Resturant" yazmışsın böyle bir ifade yoktur doğrusu "Restaurant" fransızca kelimedir. Türkçesi lokantadır. Niye bunu söylüyorum programcı olmanın ilk adımlarından biri programında düzgün ve uygun Türkçe kullanmaktadır.
  4. Gürcistan'da oynuyordum.Orada selamlaşmak için insanlar birbirlerini sağ yanaktan bir kez öper.Sonra Türkiye'ye geldim.Burada herkes selamlaşırken hem sağ hem sol yanağı öpüyor.Ajax'a transfer oldum.Gördüm ki Hollanda'dakiler selamlaşırken üç kez öpüyor.O gün menajerime dedim ki 'bir daha transfer olmam , yoksa bu gidişle ibne olacaz'. - Şota Arveladze

  5.   MSSQL de karşılığı ISNULL, Oracle da ise NVL dir.   Örnek olarak; SELECT URUN_ID,FIYAT*(STOK+ISNULL(TUTAR,0)) FROM URUNLER Yinede kod olarak boş string kontrolü yapayım dersen boşluk kullanma çünkü boşlukta bir ASCII karakterdir çok sağlıklı değil bana kalırsa IsNullOrEmpty kullan daha güvenilirdir. using System; class Sample { public static void Main() { string s1 = "abcd"; string s2 = ""; string s3 = null; Console.WriteLine("String s1 {0}.", Test(s1)); Console.WriteLine("String s2 {0}.", Test(s2)); Console.WriteLine("String s3 {0}.", Test(s3)); } public static String Test(string s) { if (String.IsNullOrEmpty(s)) return "is null or empty"; else return String.Format("(\"{0}\") is neither null nor empty", s); } } // The example displays the following output: // String s1 ("abcd") is neither null nor empty. // String s2 is null or empty. // String s3 is null or empty. ////https://msdn.microsoft.com/en-us/library/system.string.isnullorempty(v=vs.110).aspx
  6. KintaRo haklı biraz daha açmalısın konuyu. Mantık olarak (timer kullanmayacaksan) biraz uzun bir yöntemle yapabilirsin. Nasıl mı ? şöyle ki. Nesnelere yaptıracağın işlemleri kontrol ettirerek. Yani eğer butona basılmamışsa veya eğer textbox a veri girişi yoksa veya form belirlediğin pozisyonlardan hiç dışarı çıkmamışsa yani hiç haraket etmemişse, formun üstünde fare hareketi yoksa gibi uzayıp gider. Hatırladığım kadarıylada c# da Idle event vardı onu da araştır istersen. Şöyle idi galiba.   Application.Idle += Application_Idle; private void Application_Idle(object sender, EventArgs e) { // ne yaptırmak istersen. } veya Control_Load(object sender, System.EventArgs e) { Application.Idle += new EventHandler(Application_Idle); } Bu da timer ile 30 sn tık yoksa. private TimeSpan LastInteraction { get { return DateTime.Now - lastInteraction; } } private void timer1_Tick(object sender, EventArgs e) { if (LastInteraction.TotalSeconds > 30) { MessageBox.Show("Uyarı", "Ekran zaman aşımına uğradı."); } } Buraya da bakabilirsin.  http://www.ahmetkaymaz.com/2007/02/04/uygulamanin-idle-modunu-yakalamakc-vb-net/
  7. Kesinlikle izleyin...https://youtu.be/cCeeTfsm8bk

    1. FeritEtemSinBin

      FeritEtemSinBin

      çok güzel mesaj veriyo insana

  8. Haklısın valla benimde çalıştığım şirket uzaktan hastanelere fazla destek veriyor ve sadece 1 departmanın team. lisansı var onu da sınırlı kullanabiliyoruz. Onun dışında şirketin kendi geliştirdiği uzak bağlantı programı var o da biraz sıkıntılı ve dosya aktarım falan yapamıyor. Benim kullandığım teamviewer programı crackli 1 senedir kullanıyorum problem çıkarmadı.   Ek olarak destek verdiğimiz müşterilerimize (eğer fortigate tarzı firewall varsa) net support üzerinden de destek verebiliyorum. Nasıl diye sorarsan firewall üzerinden port yönledirme yaparak sonra kurumdan ip adresini net supporta girdiğim zaman direkt bağlantı sağlıyor ve kopma olmuyor üstelik çok esnek özellikleri var sana bunu tavsiye ederim.
  9. Arkadaşlar programı yazan kişi şuanda askerde yani size cevap veremeyebilir. 6 ay sonra gelince sorunlarınızı çözer umarım. :)
  10. San Pedro Suladan iş almak harika :D

  11. İkisi de kod olarak olarak dönüşüyor zaten farkı ise şu sen kodla ile yazdığın bir objenin görevini / özelliğini yaptığın kodlama da görmek istiyorsan veyahut o objenin birden fazla opsiyonunu kullanmak istersen kodla yazarsın sonra dönüp baktığında "bak ben burda böyle yapmışım şunu bir düzelteyim"  dediğinde zorluk çekmezsin. Properties kısmına gelirsek; properties kullanıcının nesneyi, objeyi hızlı bir şekilde düzeltme yapması için vardır yani en ufak bişeyi kodla yazıp zaman kaybetme diye ayrıca o objenin özelliklerini görüp hemen değişebilesin diye yani amaç objeyi tam olarak şekillendirmekten ziyade özelliklerini görebilmek. Bu arada sen MaxLength vs kodları propertiesden düzeltme ekleme yaptığında o formun .cs dosyasına o kodu atıyor.Yani hız performans gibi kavram farkı yok gibi. Ek olarak her opsiyonu propertiesden göremeyebilirsin özellikle 3. part framework kullanıyorsan bazı şeyleri kodla yazman gerekebilir. Ben program yazarken çoğu opsiyonu kodla yazarım hem paslanmamak için hemde daha fazla aktif kullanabilmek için.
  12. Wrapper hakkında nasıl bilgi bulamadın hayret :huh: SciTe de içindeki help dosyasında var bu arada. [spoiler] #Region AutoIt3Wrapper directives section ;** This is a list of compiler directives used by AutoIt3Wrapper.exe. ;** Comment any unneeded lines as they will override any previous settings ;=============================================================================================================== #Autoit3Wrapper_Testing= ;(Y/N) Skip Tidy, Obfuscator and cvsWrapper for speed while testing. Default=N ;=============================================================================================================== ;** AutoIt3 settings #AutoIt3Wrapper_UseX64= ;(Y/N) Use AutoIt3_x64 or Aut2Exe_x64. Default=N #AutoIt3Wrapper_Version= ;(B/P) Use Beta or Production for AutoIt3 and Aut2Eex. Default is P #AutoIt3Wrapper_Run_Debug_Mode= ;(Y/N) Run Script with console debugging. Default=N #AutoIt3Wrapper_Run_Debug= ;(On/Off) Switch debugging on/off #AutoIt3Wrapper_Run_SciTE_Minimized= ;(Y/N) Minimize SciTE while script is running. Default=N #AutoIt3Wrapper_Run_SciTE_OutputPane_Minimized= ;(Y/N) Minimize SciTE output pane at run time. Default=N #AutoIt3Wrapper_Autoit3Dir= ;Optionally override the AutoIt3 install directory to use. #AutoIt3Wrapper_Aut2exe= ;Optionally override the Aut2exe.exe to use for this script #AutoIt3Wrapper_AutoIt3= ;Optionally override the Autoit3.exe to use for this script ;=============================================================================================================== ;** Aut2Exe settings #AutoIt3Wrapper_Icon= ;Filename of the Ico file to use for the compiled exe #AutoIt3Wrapper_OutFile= ;Target exe/a3x filename. #AutoIt3Wrapper_OutFile_Type= ;exe=Standalone executable (Default); a3x=Tokenised AutoIt3 code file #AutoIt3Wrapper_OutFile_X64= ;Target exe filename for X64 compile. #AutoIt3Wrapper_Compression= ;Compression parameter 0-4 0=Low 2=normal 4=High. Default=2 #AutoIt3Wrapper_UseUpx= ;(Y/N) Compress output program. Default=Y #AutoIt3Wrapper_UPX_Parameters= ;Override the default settings for UPX. #AutoIt3Wrapper_Change2CUI= ;(Y/N) Change output program to CUI in stead of GUI. Default=N #AutoIt3Wrapper_Compile_both= ;(Y/N) Compile both X86 and X64 in one run. Default=N ;=============================================================================================================== ;** Target program Resource info #AutoIt3Wrapper_Res_Comment= ;Comment field #AutoIt3Wrapper_Res_Description= ;Description field #AutoIt3Wrapper_Res_Fileversion= ;File Version #AutoIt3Wrapper_Res_FileVersion_AutoIncrement= ;(Y/N/P) AutoIncrement FileVersion after compile. Default=N ; P=Prompt, Will ask whether to increase the versionnumber #AutoIt3Wrapper_Res_ProductVersion= ;Product Version. Default is the AutoIt3 version used. #AutoIt3Wrapper_Res_Language= ;Resource Language code . Default 2057=English (United Kingdom) #AutoIt3Wrapper_Res_LegalCopyright= ;Copyright field #AutoIt3Wrapper_res_requestedExecutionLevel= ;asInvoker, highestAvailable, requireAdministrator or None (remove the trsutInfo section). Default is the setting from Aut2Exe (asInvoker) #AutoIt3Wrapper_res_Compatibility= ;Vista,Windows7 Both allowed separated by a comma (Default=None) #AutoIt3Wrapper_Res_SaveSource= ;(Y/N) Save a copy of the Script_source in the EXE resources. Default=N ; If _Res_SaveSource=Y the content of Script_source depends on the _Run_Obfuscator and #obfuscator_parameters directives: ; If _Run_Obfuscator=Y then ; If #obfuscator_parameters=/STRIPONLY then Script_source is stripped script & stripped includes ; If #obfuscator_parameters=/STRIPONLYINCLUDES then Script_source is original script & stripped includes ; With any other parameters, the SaveSource directive is ignored as obfuscation is intended to protect the source ; If _Run_Obfuscator=N or is not set then ; Scriptsource is original script only ; AutoIt3Wrapper indicates the SaveSource action taken in the SciTE console during compilation ; See SciTE4AutoIt3 Helpfile for more detail on Obfuscator parameters #AutoIt3Wrapper_Res_Field= ;Free format fieldname|fieldvalue ; Free form resource fields ... max 15 ; You can use the following variables: ; %AutoItVer% which will be replaced with the version of AutoIt3 ; %date% = PC date in short date format ; %longdate% = PC date in long date format ; %time% = PC timeformat ; eg: #AutoIt3Wrapper_Res_Field=AutoIt Version|%AutoItVer% #AutoIt3Wrapper_Res_Icon_Add= ; Filename[,ResNumber[,LanguageCode]] of ICO to be added. ; Add extra ICO files to the resources ; Use full path of the ico files to be added ; ResNumber is a numeric value used to access the icon: TraySetIcon(@ScriptFullPath, ResNumber) ; If no ResNumber is specified, the added icons are numbered from 201 up #AutoIt3Wrapper_Res_File_Add= ; Filename[,Section [,ResName[,LanguageCode]]] to be added. ; Add files to the resources - can be compressed #AutoIt3Wrapper_Res_Remove= ; ResType, ResName [, LanguageCode] ; Remove resources ;=============================================================================================================== ; Tidy Settings #AutoIt3Wrapper_Run_Tidy= ;(Y/N) Run Tidy before compilation. Default=N #AutoIt3Wrapper_Tidy_Stop_OnError= ;(Y/N) Continue when only Warnings. Default=Y #Tidy_Parameters= ;Tidy Parameters...see SciTE4AutoIt3 Helpfile for options ;=============================================================================================================== ; Obfuscator Settings #AutoIt3Wrapper_Run_Obfuscator= ;(Y/N) Run Obfuscator before compilation. default=N #Obfuscator_Parameters= ; Obfuscator parameters...see SciTE4AutoIt3 Helpfile for options ;=============================================================================================================== ; AU3Check settings #AutoIt3Wrapper_Run_AU3Check= ;(Y/N) Run au3check before compilation. Default=Y #AutoIt3Wrapper_AU3Check_Parameters= ;Au3Check parameters...see SciTE4AutoIt3 Helpfile for options #AutoIt3Wrapper_AU3Check_Stop_OnWarning= ;(Y/N) Continue/Stop on Warnings.(Default=N) ;=============================================================================================================== ; Versioning settings #AutoIt3Wrapper_Versioning= ;(Y/N/V) Run Versioning to update the script source. default=N ; V=only run when fileversion is increased by #AutoIt3Wrapper_Res_FileVersion_AutoIncrement. #AutoIt3Wrapper_Versioning_Parameters= ; /NoPrompt : Will skip the Comments prompt ; /Comments : Text to added in the Comments. It can also contain the below variables. ;=============================================================================================================== ; RUN BEFORE AND AFTER definitions #AutoIt3Wrapper_Run_Before= ;process to run before compilation - multiple records will be processed in sequence #AutoIt3Wrapper_Run_After= ;process to run after compilation - multiple records will be processed in sequence ; These directives can contain the following variables ; %in% , %out%, %outx64%, %icon% which will be replaced by the fullpath\filename. ; %scriptdir% = @ScriptDir and %scriptfile% = filename without extension. ; %fileversion% = #AutoIt3Wrapper_Res_Fileversion directive ; %scitedir% = SciTE program directory ; %autoitdir% = AutoIt3 program directory ;=============================================================================================================== ; Add Constants #AutoIt3Wrapper_Add_Constants= ;Add the needed standard constant include files. Will only run one time. ;=============================================================================================================== ; Optional ; Use this format to have separate directive values for Run and Compile #AutoIt3Wrapper_If_Run #AutoIt3Wrapper_Run_AU3Check=Y #AutoIt3Wrapper_Run_Tidy=Y [...] #Autoit3Wrapper_If_Compile #AutoIt3Wrapper_Run_AU3Check=N #AutoIt3Wrapper_Run_Tidy=N [...] #AutoIt3Wrapper_EndIf #EndRegion [/spoiler] Wrapper dediğin şey de kaynak verileri eklemek için olan bişey yani scripte sağ tıklayıp Compile with options dediğin zaman eklediğin verileri direktif olarak ekleyen araç diyelim. Pragma ile dil eklenmiyordu çünkü pragma kaynak veri eklemez bunu wrapper yapar , hatırladığım kadarıyla üstte yazılın şekilde eklemen veya dediğim şekilde sağ tıklayıp seçenekli derle şeklinde dil eklemen gerekiyor. Ek: Pragma için online döküman: https://www.autoitscript.com/autoit3/docs/directives/pragma-compile.htm https://www.autoitscript.com/autoit3/docs/keywords/pragma.htm
  13. Sen niye List yapısını kullanmıyorsun ki... Bu arada kaç senedir yazılımcılık yaptım bu kadar spesifik dizi kullanmadm doğrusu. string[] array = new string[] { "1", "2", "3", "4", "5", "6", "7" }; List<string> list = new List<string>(array); //you can sort List<string>! list.Sort(); list.Remove("4");//remove specieifed item. list.RemoveAt(2);//remove item from index. list.RemoveRange(1, 2);//remove a range of items.
  14. Önce boş bir script dosyası aç sonra elindeki düzenlenmiş exploreroptimizer.exe yi fileinstall ile içine al sonra fileinstall ile çıkarttığın exeyi run ile çalıştır bu kadar.
  15. İyi ki doğdun şair ceketli çocuk...

×
×
  • Create New...