Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7541543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:55:16+00:00 2026-05-30T07:55:16+00:00

I have a class, with a public property appController, as follows: public class FAST

  • 0

I have a class, with a public property “appController”, as follows:

public class FAST
{
    #region Props

    public AppController.AppControllerClass appController = new AppController.AppControllerClass();

    #endregion

    #region Contructors

    public FAST(AppController.AppControllerClass appcontroller)
    {
        this.appController = appcontroller;
    }

    #endregion
}

I have another few class, in which I would like to use the appController of FAST, the above class.They look like:

public  class Forecast 
{
    #region Properties

    private int _forecastnumber;

    public int ForecastNumber
    {
        get { return _forecastnumber; }
        set { _forecastnumber = value; }
    }

    private DateTime _startdate;

    public DateTime StartDate
    {
        get { return _startdate; }
        set { _startdate = value; }
    }

    private DateTime _enddate;

    public DateTime EndDate
    {
        get { return _enddate; }
        set { _enddate = value; }
    }

    private DateTime _deadline;

    public DateTime Deadline
    {
        get { return _deadline; }
        set { _deadline = value; }
    }

    private string _name;

    public string Name
    {
        get { return _name; }
        set { _name = value; }
    }

    private string _type;

    public string Type
    {
        get { return _type; }
        set { _type = value; }
    }

    private string _description;

    public string Description
    {
        get { return _description; }
        set { _description = value; }
    }

    private string _status;

    public string Status
    {
        get { return _status; }
        set { _status = value; }
    }

    #endregion

    #region Constructors

    public Forecast()
    {

    }
    #endregion

    #region Methods

    public static void InsertForecast(Forecast forecast)
    {
        try
        {
            this.appController.Execute(appController.nDC.FASTData.InsertForecast(forecast.StartDate, forecast.EndDate, forecast.Deadline, forecast.Type, forecast.Name, forecast.Description, forecast.Status));
        }
        catch (Exception ex)
        {
            this.appController.LogError(ex);
        }
    }

    #endregion
}

I want to be able to declare the FAST class once, passing in the AppController, then use my other classes freely, and they will use the appcontroller of the FAST class.

Can this be done at all? (inheritance?)

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:55:18+00:00Added an answer on May 30, 2026 at 7:55 am

    It sounds like you simply want a static class for your FAST class. If you define the AppController variable as static, it will be accessible from anywhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class with a custom indexer like so public string this[VehicleProperty property]
I have created my own Attached Property like this: public static class LabelExtension {
I have a class with a property Value like this: public class MyClass {
I have a program like this. Module Module1 Public Class Mstr Public Property Prop1
I have a class like this: Public Class MyClass Private _intList As New List(Of
I have a State class defined like this: Public Class State Public Property StateId
Example-I have a person class Public Class Person Private _fname As String Public Property
i have a class with a static public property called Info. via reflection i
I am using the XmlSerializer and have the following property in a class public
I have the following dependency property inside a class: class FooHolder { public static

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.