Пример #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
 public RulerForm(RulerApplicationContext context, RulerInfo rulerInfo)
 {
     _context = context;
     _info    = rulerInfo;
     this.Init();
 }
Пример #4
0
 public RulerForm(RulerApplicationContext context)
 {
     _context = context;
     _info    = RulerInfo.GetDefaultRulerInfo();
     this.Init();
 }