Esempio n. 1
0
 // -----------------------------------------------------------------------
 // Constructor - Overload 2
 // layerindex indicates the layer database to be filtered
 // -----------------------------------------------------------------------
 public Filter_Edit(SQLFilterClass filter, LayerDefs layers, string connectionstring, bool savemode)
 {
     InitializeComponent();
     System.Windows.Forms.Cursor.Current = Cursors.WaitCursor;
     try
     {
         SaveMode  = savemode;
         _editmode = true;
         if (filter != null)
         {
             _layerindex       = filter.LayerIndex;
             _connectionstring = connectionstring;
             _originalfilter   = filter;
             _layers           = layers;
             _fieldtypes       = new List <string>();
             SQLFilter         = new SQLFilterClass(_originalfilter);
             // Set up the form according to the layer being filtered
             if (SQLFilter.ConditionCount == _originalfilter.ConditionCount)
             {
             }
             SetupFormData();
         }
     }
     finally
     {
         System.Windows.Forms.Cursor.Current = Cursors.Default;
     }
 }
Esempio n. 2
0
 // -----------------------------------------------------------------------
 // Constructor - Overload 1
 // layerindex indicates the layer database to be filtered
 // -----------------------------------------------------------------------
 public Filter_Edit(LayerSystemUse layerindex, LayerDefs layers, string connectionstring, bool savemode)
 {
     InitializeComponent();
     System.Windows.Forms.Cursor.Current = Cursors.WaitCursor;
     try
     {
         SaveMode          = savemode;
         _editmode         = false;
         _layerindex       = layerindex;
         _connectionstring = connectionstring;
         SQLFilter         = new SQLFilterClass();
         _fieldtypes       = new List <string>();
         _layers           = layers;
         // Set up the form according to the layer being filtered
         SetupFormData();
     }
     finally
     {
         System.Windows.Forms.Cursor.Current = Cursors.Default;
     }
 }