Exemplo n.º 1
0
        /// <summary>
        /// Disposes resources used by the control.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                FontChanged -= UserControl_FontChanged;

                this.FTreeView.NodeMouseDoubleClick -= this.TreeViewNodeMouseDoubleClick;
                this.FTreeView.DrawNode             -= this.FTreeViewDrawNode;
                this.FTreeView.AfterLabelEdit       -= this.TreeViewAfterLabelEdit;
                this.FTreeView.VisibleChanged       -= this.FTreeViewVisibleChanged;
                this.FTreeView.DragDrop             -= this.TreeViewDragDrop;
                this.FTreeView.AfterSelect          -= this.FTreeViewAfterSelect;
                this.FTreeView.MouseMove            -= this.FTreeViewMouseMove;
                this.FTreeView.MouseDown            -= this.FTreeViewMouseDown;
                this.FTreeView.NodeMouseClick       -= this.TreeViewNodeMouseClick;
                this.FTreeView.BeforeLabelEdit      -= this.TreeViewBeforeLabelEdit;
                this.FTreeView.KeyDown  -= this.FTreeViewKeyDown;
                this.FTreeView.ItemDrag -= this.TreeViewItemDrag;
                this.FTreeView.DragOver -= this.TreeViewDragOver;

                this.FToolTip.Popup -= this.ToolTipPopupHandler;

                if (FSynchronizer != null)
                {
                    FSynchronizer.Dispose();
                }

                foreach (MapperTreeNode mapperTreeNode in FTreeView.Nodes)
                {
                    mapperTreeNode.Dispose();
                }

                if (FRootMapper != null)
                {
                    FRootMapper.Dispose();
                }

                if (ParentForm != null)
                {
                    ParentForm.Activated -= ParentForm_Activated;
                }
            }
            base.Dispose(disposing);
        }
Exemplo n.º 2
0
 private void tsb_SynchAll_Click(object sender, EventArgs e)
 {
     try
     {
         FSynchronizer rf = new FSynchronizer();
         rf.GlobalIgnoreList = _ConfigFSynchr.GlobalIgnoreList;
         foreach (ConfigTarget ct in _ConfigFSynchr.Targets)
         {
             rf.RunSynch(rf.GetSynchList(ct));
         }
         MessageBox.Show("ok");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 3
0
 private void tsb_Synch_Click(object sender, EventArgs e)
 {
     try
     {
         FSynchronizer rf = new FSynchronizer();
         rf.GlobalIgnoreList = _ConfigFSynchr.GlobalIgnoreList;
         FSynchList fSList = rf.GetSynchList(GetCurrentTarget());
         using (FTargetSynchList fTSL = new FTargetSynchList())
         {
             fTSL.TSynchList = fSList;
             if (fTSL.ShowForm())
             {
                 rf.RunSynch(fSList);
                 MessageBox.Show("ok");
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }