Пример #1
0
 private void DuplicateHandler(object sender, EventArgs e)
 {
     lock (RulerApplicationContext.CurrentContext)
     {
         var copy = new RulerForm();
         copy.Show();
     }
 }
Пример #2
0
 public void StartNewRuler(RulerInfo info)
 {
     lock (RulerApplicationContext.CurrentContext)
     {
         // Get the main form so we can start the new ruler on the main (UI) thread
         if (RulerApplicationContext.CurrentContext.MainForm != null)
         {
             RulerApplicationContext.CurrentContext.MainForm.Invoke((MethodInvoker) delegate
             {
                 var newRuler = new RulerForm(info);
                 newRuler.Show();
             });
         }
     }
 }
Пример #3
0
        private void DuplicateHandler(object sender, EventArgs e)
        {
            var copy = new RulerForm(_context, _info);

            copy.Show();
        }
Пример #4
0
        void NewHorizontalRuler(object sender, EventArgs e)
        {
            var ruler = new RulerForm(this, _config.HorizontalRulerInfo);

            ruler.Show();
        }
Пример #5
0
        void NewVerticalRuler(object sender, EventArgs e)
        {
            var ruler = new RulerForm(this, _config.VerticalRulerInfo);

            ruler.Show();
        }