Exemplo n.º 1
0
 //-------------------------------------------------------------------------
 /* Get form for XmlContent */
 public static FormXml GetForm(object data)
 {
     if (form == null)
     {
         form = new FormXml();
     }
     form.SetData(data);
     return(form);
 }
Exemplo n.º 2
0
 //~~~~~ Xml ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 private void bXmlOptions_Click(object sender, EventArgs e)
 {
     if (Command != null)
     {
         Cursor = Cursors.WaitCursor;
         object res = Command("RunXmlOptionsPrepare", null);
         if (res == null)
         {
             Cursor = Cursors.Default;
             return;
         }
         FormXml form = XmlController.GetForm((res as Tuple <object, string>).Item1);
         form.Text = (res as Tuple <object, string>).Item2;
         Cursor    = Cursors.Default;
         form.ShowDialog((Form)ParentView);
         //Cursor = Cursors.WaitCursor;
         //Command("GetXmlFields", null);
         //Cursor = Cursors.Default;
     }
 }
Exemplo n.º 3
0
 //-------------------------------------------------------------------------
 public static void FreeForm()
 {
     form = null;
     GC.Collect();
 }