Category:.NET

  • Change solution (. SLN) file

    Time:2020-1-24

    Microsoft Visual Studio 2010 project is changed to Microsoft Visual Studio 2015 open by default Solution (. SLN) file for 2010 Microsoft Visual Studio Solution File, Format Version 11.00 #Visual Studio 2010 — default open version ide geovin Du Tu Tu poly comment Project(“{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}”) = “ActiveUp.MailSystem.DesktopClient2010”, “ActiveUp.MailSystem.DesktopClient2010.csproj”, “{2CFFCA13-B00A-4605-B6A4-D49A616CFCB4}” EndProject Project(“{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}”) = “ActiveUp.Net”, “ActiveUp.Net\ActiveUp.Net.csproj”, “{25DA9502-B959-4E81-9368-471AE231BCC0}” EndProject […]

  • C ා parameters passed in when the desktop program starts

    Time:2020-1-24

    using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms; namespace WindowsFormsApplication8{ static class Program { /// ///The main entry point for the application. /// [STAThread] public static void Main(string[] args)//Add parameter and receive value. When the program is started by dragging a file, the first value of the parameter array is the path of the file { if (args.Count()>0) […]

  • Using custom user controls and tabelpanel and StackPanel layout controls in WinForm interface

    Time:2020-1-24

    In many cases, when we do some very regular interfaces, we often need to create some user controls, draw some basic interface blocks in them, as a unit of subsequent reuse, user controls can also encapsulate some simple logic. In the development of various types of WinForm projects, I need to customize some special user […]

  • . net core simple read JSON configuration file

    Time:2020-1-24

    background At present, I find it a bit troublesome for. Net core on the Internet to read the configuration file in JSON format. I want to make it easier. At present, the mainstream form of. Net core is to store configuration file information in JSON format, which is different from previous configuration files in XML […]

  • Detailed explanation of C-bit operation and example calculation

    Time:2020-1-24

    Preface: This is rarely used in practical work. Although it is all relatively basic, once it is met, it is not clear. I just recently contacted some projects related to this aspect, so I also reviewed and practiced these contents again. So this is not only a personal note, but also for you to review. […]

  • Create the first core project (NETCORE learning note 1)

    Time:2020-1-24

    Reprinted at: https://www.cnblogs.com/nozer1993/p/9042085.html1. installation The core and netframework are actually relatively independent, but the ide of the core is only supported in vs2017, and the installation environment of vs2017 must match. Net4.6, so: Step 1: install. Net4.6 Step 2: install vs2017 Tips: there will be multiple components for selection in the 2017 installation interface, so […]

  • Deepen the conceptual understanding of MVC, MVP and MVVM

    Time:2020-1-23

    Catalog MVC Misunderstanding and reason of MVC MVP MVVM MVC MVC – Wikipedia, free encyclopedia MVC is a software architecture mode of software engineering. It is not a specific technology, but a concept of code stratification, which mainly embodies the principle of separation of responsibilities. M-model model V-view view C-controller controller Misunderstanding and reason of […]

  • Virtual method — overload

    Time:2020-1-23

    using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApplication1{   public class Vehicle    {        public float weight;        public Vehicle(float w)        {            weight = w;        }        public virtual void show()        {            Console.WriteLine(“The weight of Vehicle is:” + weight);        }    }    public class Car:Vehicle    {        int passengers;    public Car(float w,int p):base(w)        {            passengers = p;        }        public override void […]

  • Using teigha.net to read common function modules of CAD

    Time:2020-1-23

    TeighaMedium solid rotation Code: using (var trans = database.TransactionManager.StartTransaction()) { Entity ent = trans.GetObject(entityId, OpenMode.ForWrite) asEntity; if (ent != null ) { Extents3d exts = ent.GeometricExtents; Point3d poCenter = newPoint3d((exts.MinPoint.X + exts.MaxPoint.X) / 2, (exts.MinPoint.Y + exts.MaxPoint.Y) / 2, 0); Matrix3d Matr4 = Matrix3d.Rotation((30 * Math.PI / 180),Vector3d.ZAxis, poCenter); ent.TransformBy(Matr4); } trans.Commit(); } //Rotate 30 […]

  • . net core simple use of built-in IOC of MVC (Continued)

    Time:2020-1-23

    This article is based on. Net core 2.0.In the previous chapter, [. Net core] simple use of built-in IOC of MVC has explained the simple use of IOC in daily MVC, and there are also some contents to be supplemented. Next, we will answer these questions: what is the combination of filter and IOC in […]

  • The implementation of asynchronous interface without card in c-winform

    Time:2020-1-23

    Fast reading How to make the interface not stuck in WinForm program. About delegates and the use of asynccallback. The reason why the interface is stuck is that the calculation of time-consuming tasks takes up the main thread, so there is no way for the main interface to perform other operations, such as dragging. The […]

  • ABP (net core) + easyUI + efcore to realize the warehouse management system

    Time:2020-1-23

    ABP (net core) + easyUI + efcore to realize the inventory management system directory ABP (net core) + easyUI + efcore to realize the warehouse management system ABP (net core) + easyUI + efcore to realize warehouse management system — introduction of solutions (2) ABP (net core) + easyUI + efcore to realize warehouse management […]