Beispiel #1
0
 internal SettingsUI(MappingUI mappingUI)
 {
     _mappingUI = mappingUI;
     InitializeComponent();
     Init();
     AddEventHandlers();
 }
Beispiel #2
0
        internal ResumeUI(MappingUI mappingUI, List <string> excluded)
        {
            _mappingUI = mappingUI;
            InitializeComponent();

            var text = Common.RTBegin
                       + @"The reason why certain objects are excluded is because they contain columns or parameters of \b non-supported\b0  data types (e.g. geography). "
                       + @"If a database user under which the mapping is executed does not have permission to access a certain user-defined data type then some objects with the parameter(s) of a \b non-accessable\b0  data type may also be excluded."
                       + Common.RTEnd;

            _messageBox.Rtf    = text;
            _ctrExcluded.Lines = excluded.OrderBy(a => a).ToArray();
        }
Beispiel #3
0
        internal AboutUI(MappingUI mappingUI)
        {
            _mappingUI = mappingUI;
            InitializeComponent();

            Program.License.ShowFreeTrial(_ctrFreeTrial);

            // show data
            _ctrVersion.Text        = string.Format("version {0}", GetVersion());
            _ctrLicenseEmail.Text   = Program.License.User;
            _ctrExpirationDate.Text = Program.License.ExpirationDate;
            _ctrMachineKey.Text     = Security.MachineManager.MachineKey;

            AddEventHandlers();
        }
Beispiel #4
0
        // ctor
        internal MappingHandler(MappingUI mappingUI, Guid guid, SqlConnectionStringBuilder connBuilder, string dbName)
        {
            TableObjects = new Dictionary <int, TableOrView>();
            _mappingUI   = mappingUI;
            _guid        = guid;
            _connBuilder = connBuilder;
            _dbName      = dbName;

            // show starting progress
            SetProgress(5);

            // create thread M
            Thread = new Thread(new ThreadStart(Process));
            Thread.IsBackground = true;
            Thread.Start();
        }
Beispiel #5
0
        internal NetDirectoryUI(MappingUI mappingUI, string netPath)
        {
            _mappingUI = mappingUI;
            _netPath   = netPath;
            InitializeComponent();

            _ctrDirectory.Text = netPath;

            // description
            _messageBox.Text = @"A valid .NET Framework directory path is needed to compile the mapping file. Normally, it is located in the C:\Windows\Microsoft.NET\Framework64\v4.0.30319 or C:\Windows\Microsoft.NET\Framework\v4.0.30319 directory.";

            // check
            PerformCheck();

            AddEventHandlers();
        }
Beispiel #6
0
        internal void ShowMainPage()
        {
            _guiType = GuiType.MainPage;

            try
            {
                this.ThreadSafeInvoke(() =>
                {
                    if (_mappingUI == null)
                    {
                        _mappingUI = new MappingUI(this);
                    }
                    _mappingUI.SetAppEnvironment();  // !important

                    ShowPage(_mappingUI);
                });
            }
            catch (System.Exception ex)
            {
                Common.ShowUnknownException(ex);
            }
        }