public Login() { _sharedDataSource = SharedDataSource.GetInstance(); InitializeComponent(); _sharedDataSource.Updated += InterfaceUpdated; btnLogin.Enabled = false; }
public AccountCreation(Form parent) { _parent = parent; _sharedDataSource = SharedDataSource.GetInstance(); InitializeComponent(); _sharedDataSource.Updated += InterfaceUpdated; }
public NetworkWriter(NetworkManager parent, Socket socket, ServerType serverType) { _parent = parent; _parent.WriterAlive = true; _socket = socket; _serverType = serverType; _connectionState = NetworkConnectionState.Connected; _sharedDataSource = SharedDataSource.GetInstance(); }
public Streaming(Form parent) { _parent = parent; _sharedDataSource = SharedDataSource.GetInstance(); _sharedDataSource.Updated += InterfaceUpdated; _sharedDataSource.SongReady += OnSongReady; InitializeComponent(); btnPause.Enabled = false; btnPlay.Enabled = false; btnLoadSongs.Enabled = false; btnAdd.Enabled = false; }
/// <summary> /// Singleton accessor. /// </summary> /// <returns>The instance of the class.</returns> public static SharedDataSource GetInstance() { return(_instance ?? (_instance = new SharedDataSource())); }