コード例 #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
ファイル: RulerForm.cs プロジェクト: FDIM/ruler
        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();
        }