Exemplo n.º 1
0
 void OnDockerFormClosing(object sender, DockableFormClosingEventArgs e)
 {
     //DockableFormInfo info = _docker.GetFormInfo(e.Form);
     //if (info.Id == new Guid("0a3f4468-080b-404e-b012-997b93ed2005"))
     //{
     //    e.Cancel = true;
     //}
 }
Exemplo n.º 2
0
        /// <summary>
        /// Event received when a form is about to be closed
        /// </summary>
        /// <param name="sender">sender of the event</param>
        /// <param name="e">event args</param>
        private void OnDockerFormClosing(object sender, DockableFormClosingEventArgs e)
        {
            EventHandler <DockableFormClosingEventArgs> handler = FormClosing;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Occurs when a dockable form is closing
        /// </summary>
        /// <param name="sender">sender of the event</param>
        /// <param name="e">event arguments</param>
        private void OnFormClosing(object sender, DockableFormClosingEventArgs e)
        {
            EventHandler <DockableFormClosingEventArgs> closingHandler = FormClosing;

            if (closingHandler != null)
            {
                closingHandler(this, e);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Occurs when the page is closing
        /// </summary>
        /// <param name="sender">sender of the event</param>
        /// <param name="e">event argument</param>
        private void OnPageClosing(object sender, FormClosingEventArgs e)
        {
            EventHandler <DockableFormClosingEventArgs> handler = FormClosing;

            if (handler != null)
            {
                DockableFormInfo             info = GetPageInfo((Form)sender);
                DockableFormClosingEventArgs args = new DockableFormClosingEventArgs(info.DockableForm, info.Id);
                args.Cancel = false;
                handler(this, args);

                e.Cancel = args.Cancel;
            }
        }
Exemplo n.º 5
0
 void OnDockerFormClosing(object sender, DockableFormClosingEventArgs e)
 {
     DockableFormInfo info = _docker.GetFormInfo(e.Form);
     if (info.Id == new Guid("0a3f4468-080b-404e-b012-997b93ed2005"))
     {
         e.Cancel = true;
     }
 }
Exemplo n.º 6
0
 /// <summary>
 /// Event received when a form is about to be closed
 /// </summary>
 /// <param name="sender">sender of the event</param>
 /// <param name="e">event args</param>
 private void OnDockerFormClosing(object sender, DockableFormClosingEventArgs e)
 {
     EventHandler<DockableFormClosingEventArgs> handler = FormClosing;
      if (handler != null)
      {
     handler(this, e);
      }
 }
Exemplo n.º 7
0
      /// <summary>
      /// Occurs when the page is closing
      /// </summary>
      /// <param name="sender">sender of the event</param>
      /// <param name="e">event argument</param>
      private void OnPageClosing(object sender, FormClosingEventArgs e)
      {
         EventHandler<DockableFormClosingEventArgs> handler = FormClosing;
         if (handler != null)
         {
            DockableFormInfo info = GetPageInfo((Form)sender);
            DockableFormClosingEventArgs args = new DockableFormClosingEventArgs(info.DockableForm, info.Id);
            args.Cancel = false;
            handler(this, args);

            e.Cancel = args.Cancel;
         }
      }
Exemplo n.º 8
0
        /// <summary>
        /// Occurs when pages close button was clicked
        /// </summary>
        /// <param name="sender">sender of the event</param>
        /// <param name="e">event arguments</param>
        private void OnViewCloseClick(object sender, FormEventArgs e)
        {
            EventHandler<DockableFormClosingEventArgs> closingHandler = FormClosing;
             if (closingHandler != null)
             {
            DockableFormClosingEventArgs args = new DockableFormClosingEventArgs(e.Form);
            closingHandler(this, args);
            if (args.Cancel)
            {
               return;
            }
             }

             Remove(GetFormInfo(e.Form));

             EventHandler<FormEventArgs> handler = FormClosed;
             if (handler != null)
             {
            FormEventArgs args = new FormEventArgs(e.Form);
            handler(this, args);
             }
        }
Exemplo n.º 9
0
 /// <summary>
 /// Occurs when a dockable form is closing
 /// </summary>
 /// <param name="sender">sender of the event</param>
 /// <param name="e">event arguments</param>
 private void OnFormClosing(object sender, DockableFormClosingEventArgs e)
 {
    EventHandler<DockableFormClosingEventArgs> closingHandler = FormClosing;
    if (closingHandler != null)
    {
       closingHandler(this, e);
    }
 }
Exemplo n.º 10
0
 private void _docker_FormClosing(object sender, DockableFormClosingEventArgs e)
 {
 }