//   LinkedList<ImportWizardStep> WizardSteps = new LinkedList<ImportWizardStep>();
        public DatabaseImportWizard(int databaseID)
        {
            InitializeComponent();
            ucSteps.StepClicked += UcSteps_StepClicked;
            Database = bizDatabase.GetDatabase(databaseID);

            SetWizardSteps();


        }
 public frmDatabaseSetting(int databaseID)
 {
     InitializeComponent();
     Message         = bizDatabase.GetDatabase(databaseID);
     txtDBName.Text  = Message.Name;
     txtDBTitle.Text = Message.Title;
     if (Message.DatabaseSetting == null)
     {
         Message.DatabaseSetting = new DatabaseSettingDTO();
     }
     chkFlowDirectionLTR.IsChecked         = Message.DatabaseSetting.FlowDirectionLTR;
     chkShowMiladiDateInUI.IsChecked       = Message.DatabaseSetting.ShowMiladiDateInUI;
     chkStringDateColumnIsMiladi.IsChecked = Message.DatabaseSetting.StringDateColumnIsMiladi;
 }
Ejemplo n.º 3
0
        public DatabaseImport(int databaseID)
        {
            InitializeComponent();
            Database     = bizDatabase.GetDatabase(databaseID);
            ImportHelper = ModelGenerator.GetDatabaseImportHelper(Database);
            ImportHelper.ItemImportingStarted += ImportHelper_ItemImportingStarted;
            lblDatabase.Text = Database.Title;
            var server = bizDatabase.GetDBServer(Database.DBServerID);

            lblServer.Text = server.Title;


            //infoTimer.Interval =  100;
            //infoTimer.Elapsed += infoTimer_Tick;
        }
Ejemplo n.º 4
0
 public void ShowDatabaseObjects(List <int> databaseIds)
 {
     //ItemCollection collection = null;
     //if (parentIdentity == 0)
     //    collection = treeDBObjects.Items;
     //else
     //    collection = FindTreeDBObject(treeDBObjects.Items, parentCategory, parentIdentity).Items;
     foreach (var id in databaseIds)
     {
         var       database = bizDatabase.GetDatabase(id);
         ObjectDTO dbObject = new ObjectDTO();
         dbObject.ObjectCategory = DatabaseObjectCategory.Database;
         dbObject.ObjectIdentity = id.ToString();
         //dbObject.SecurityObjectID = database.SecurityObjectID;
         dbObject.Title = database.Name;
         var node = AddDBObjectsToTree(dbObject, treeDBObjects.Items);
     }
     //     var objects = bizDatabaseToObject.GetDatabaseChildObjects(parentCategory, parentIdentity);
     //  AddDBObjectsToTree(objects, collection);
 }
Ejemplo n.º 5
0
 private void btnImportFunctions_Click(object sender, RoutedEventArgs e)
 {
     BizDatabase bizDatabase  = new BizDatabase();
     var         database     = bizDatabase.GetDatabase(DatabaseID);
     var         ImportHelper = ModelGenerator.GetDatabaseImportHelper(database);
     //ImportHelper.GenerateFunctions();
     //if (MessageBox.Show("فرایند ورود اطلاعات خودکار توابع" + Environment.NewLine + Environment.NewLine + "آیا مطمئن هستید؟", "تائید", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
     //{
     //    //try
     //    //{
     //    var result = ModelGenerator.GenerateFunctions();
     //    if (result)
     //    {
     //        BizDatabaseFunction bizDatabaseFunction = new BizDatabaseFunction();
     //        dtgFunctions.ItemsSource = bizDatabaseFunction.GetDatabaseFunctions(Enum_DatabaseFunctionType.None, DatabaseID);
     //        MessageBox.Show("Operation is completed.");
     //    }
     //    else
     //        MessageBox.Show("Operation is not done!");
     //}
 }