コード例 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="chimneyModule">Chimney module</param>
        /// <param name="automaticConstructions">Instace to preocess saving</param>
        /// <param name="connection">Database connection</param>
        public ChimneyModuleForm(
            ChimneyModule chimneyModule,
            AutomaticConstructions automaticConstructions,
            DatabaseConnection connection)
        {
            InitializeComponent();

            this.chimneyModule = chimneyModule;
            this.dbConnection = connection;
            this.automaticConstructions = automaticConstructions;

            this.currentConstructionList = automaticConstructions.ChimneyConstructions;
            this.dg_Constructions.ItemsSource = automaticConstructions.ChimneyConstructions;
        }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="sdkModule">Sdk module</param>
        /// <param name="automaticConstructions">Instance to process saving</param>
        /// <param name="connection">Database connection</param>
        public SdkModuleForm(
            SdkModule sdkModule,
            AutomaticConstructions automaticConstructions,
            DatabaseConnection connection)
        {
            InitializeComponent();

            this.sdkModule = sdkModule;
            this.dg_Losts.ItemsSource = "";
            this.dbConnection = connection;
            this.automaticConstructions = automaticConstructions;

            this.currentConstructions = automaticConstructions.SdkConstructions;
            this.dg_Constructions.ItemsSource = automaticConstructions.SdkConstructions;
        }