// bts - The Bug Tracking System
// Copyright (C) 2004 - Eugene Konkov
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
using System;
using ekon.bts.BackEnd;
namespace ekon.bts.GUI.Controls{
/// <summary>
/// Some common implemetation of views
/// Such as storing in internal data structures
/// login, password, IBugTrackDB, menu reference etc.
/// </summary>
public class BaseViewImpl : ekon.BaseObjects.GUI.Controls.BaseUserControl
{
protected IBugTrackDB theDB;
protected string theLogin;
protected string thePassword;
System.Windows.Forms.MainMenu theMenu;
public BaseViewImpl()
{
//
// DONE: nothing
//
}
/// <summary>
/// Stores initialize data in internal data structures
/// </summary>
/// <param name="db">Interface to bug track database</param>
/// <param name="login">login for current user</param>
/// <param name="password">password for given login</param>
/// <param name="ApplicationMenu">Main menu of application - for customizing by view</param>
protected void StoreInitData(IBugTrackDB db,string login, string password,System.Windows.Forms.MainMenu ApplicationMenu)
{
theDB=db;
theLogin=login;
thePassword=password;
theMenu=ApplicationMenu;
}
}
}
|