-
شنبه 15 اسفند 1388, 16:34 عصر
#1
کاربر دائمی
نقل قول: دانلود کنید : کار با انوع تاریخ ها ( شمسی ، قمری و میلادی )
سلام
در اول کار یعنی اجرای برنامه یه خطایی روی میده که میخواد از برنامه خارج بشه.
که اینو میگه:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.DateTime.Parse(String s)
at Persian_Calendar.Work_With_DateTime.Tomorrow_Date_ Solar() in C:\Documents and Settings\T U R B O\My Documents\Visual Studio 2005\Projects\Persian Calendar\Work_With_DateTime.cs:line 546
at Persian_Calendar.International_Calendar.Persian_Ca lendar_Load(Object sender, EventArgs e) in C:\Documents and Settings\T U R B O\My Documents\Visual Studio 2005\Projects\Persian Calendar\International Calendar.cs:line 79
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Persian Calendar
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/ali/Desktop/کار%20با%20انوع%20تاریخ%20ها/Persian%20Calendar1/bin/Debug/Persian%20Calendar.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
سرعت اجرای برنامه ات افتضاحه!!!!!
چون اگه قرار باشه از این بعنوان یه تقویم استفاده بشه مدام اذیت میکنه.
مقادیر لیبل ها رو حتما خالی کنید.
پویا هم نیست.
یعنی وقتی تاریخ سیستم تغییر میکنه برنامه هیچ عکس العملی انجام نمیده.
روی باتون های محاسبه هم که کلیک میکنم پیغام خطا میده.
و در آخر فایل ها رو طوری زیپ کنید که همه کس بدانند چطوری باید از این زیپ ها استفاده کنند.
بزودی نسخه 2 تقویم پاییزی رو میزارم واسه دانلود تا باهاش مقایسه کنیم.
درنهایت خوبه موفق باشید.
-
شنبه 15 اسفند 1388, 16:52 عصر
#2
کاربر دائمی
نقل قول: دانلود کنید : کار با انوع تاریخ ها ( شمسی ، قمری و میلادی )
یه چیزه دیگه البته فقط انتقاده...
بنظرتون یک ماه دیگه یا اصلا سال بعد همین موقع اگه خواستید نسخه جدیدی از این برنامه رو ارائه بدید خودتون میتونید چیزی از کدها سر دربیارید!!
واقعا شلوغ نوشتید.
یه کلاسی واسه تبدیل ها میزاشتید و تبدیلات رو اونجا انجام میدادید.
از طرفی چرا برای switch رو واسه ایام هفته 2 بار و واسه سایر ماه ها هم 2 بار استفاده کردید؟
بنظرتون امکان نداشت تو یه تابع مینوشتید و هرجا که لازم بود فقط فراخونی میشد. تا لازم نباشه 2باره کاری داشته باشه؟
که اینکار باعث شده یه برنامه 300 خطی بشه 700 یا 1000 لاین کد!!!!
موفق باشید.
امیدوارم ناراحت نشده باشید.
برچسب های این تاپیک
قوانین ایجاد تاپیک در تالار
- شما نمی توانید تاپیک جدید ایجاد کنید
- شما نمی توانید به تاپیک ها پاسخ دهید
- شما نمی توانید ضمیمه ارسال کنید
- شما نمی توانید پاسخ هایتان را ویرایش کنید
-
قوانین سایت