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

            context.RegisterRuler(this);
        }
Beispiel #2
0
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     lock (RulerApplicationContext.CurrentContext)
     {
         base.OnFormClosed(e);
         RulerApplicationContext context = RulerApplicationContext.CurrentContext;
         context.UnregisterRuler(this);
     }
 }
Beispiel #3
0
 public RulerForm(RulerApplicationContext context, RulerInfo rulerInfo)
 {
     _context = context;
     _info    = rulerInfo;
     this.Init();
 }
Beispiel #4
0
 public RulerForm(RulerApplicationContext context)
 {
     _context = context;
     _info    = RulerInfo.GetDefaultRulerInfo();
     this.Init();
 }