Exemple #1
0
        /// <summary>
        /// Initialize GUI context objects.
        /// </summary>
        private void PrivateInit()
        {
            noScribbleMode        = false;
            loading               = false;
            gettingCheckoutStatus = false;

            // This call is required by the Windows.Forms Form Designer.
            editorControl = new GraphEditorControl();

            editorControl.AllowDrop = true;
            //editorControl.HideSelection = false;
            editorControl.TabIndex = 0;
            editorControl.Name     = "GraphEditorPane";

            editorControl.TextChanged += new EventHandler(OnTextChange);
            editorControl.DragDrop    += new DragEventHandler(OnDragDrop);
        }
Exemple #2
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             if (editorControl != null)
             {
                 editorControl.Dispose();
                 editorControl = null;
             }
             GC.SuppressFinalize(this);
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }