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

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