コード例 #1
0
 public Login()
 {
     _sharedDataSource = SharedDataSource.GetInstance();
     InitializeComponent();
     _sharedDataSource.Updated += InterfaceUpdated;
     btnLogin.Enabled           = false;
 }
コード例 #2
0
 public AccountCreation(Form parent)
 {
     _parent           = parent;
     _sharedDataSource = SharedDataSource.GetInstance();
     InitializeComponent();
     _sharedDataSource.Updated += InterfaceUpdated;
 }
コード例 #3
0
 public NetworkWriter(NetworkManager parent, Socket socket, ServerType serverType)
 {
     _parent             = parent;
     _parent.WriterAlive = true;
     _socket             = socket;
     _serverType         = serverType;
     _connectionState    = NetworkConnectionState.Connected;
     _sharedDataSource   = SharedDataSource.GetInstance();
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 /// <summary>
 /// Singleton accessor.
 /// </summary>
 /// <returns>The instance of the class.</returns>
 public static SharedDataSource GetInstance()
 {
     return(_instance ?? (_instance = new SharedDataSource()));
 }