示例#1
0
        public RulerForm(RulerInfo rulerInfo)
        {
            this.Init(rulerInfo);
            RulerApplicationContext context = RulerApplicationContext.CurrentContext;

            context.RegisterRuler(this);
        }
示例#2
0
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     lock (RulerApplicationContext.CurrentContext)
     {
         base.OnFormClosed(e);
         RulerApplicationContext context = RulerApplicationContext.CurrentContext;
         context.UnregisterRuler(this);
     }
 }
示例#3
0
文件: RulerForm.cs 项目: FDIM/ruler
 public RulerForm(RulerApplicationContext context, RulerInfo rulerInfo)
 {
     _context = context;
     _info    = rulerInfo;
     this.Init();
 }
示例#4
0
文件: RulerForm.cs 项目: FDIM/ruler
 public RulerForm(RulerApplicationContext context)
 {
     _context = context;
     _info    = RulerInfo.GetDefaultRulerInfo();
     this.Init();
 }