Winla
Jun 6th, 2006, 05:57 PM
Find a lot talking about MasterPage for ASP.NET, but Couldn't find a sample master winform for business app.
I am looking for something like this:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace MyNS
{
public partial class frmCommon : Form
{
private Form _CallingForm;
private string _CallingRole;
private string _UserRole;
public Form CallingForm
{
get { return _CallingForm;}
set { _CallingForm =value;}
}
public string CallingRole
{
get {return _CallingRole;}
set {_CallingRole =value ;}
}
public string UserRole
{
get { return _UserRole; }
set { _UserRole = value; }
}
public frmCommon()
{
InitializeComponent();
}
public frmCommon(Form callingform, string callingrole, string userrole)
{
_CallingRole = callingrole;
_CallingForm = callingform;
_UserRole = userrole;
InitializeComponent();
}
public virtual void FormFormat{}
public virtual Bool FormValid { }
public virtual Bool FormClean { }
public virtual Bool FormSave { }
public virtual bool FormLoad { }
}
}
looking for professional code sample in c#, thanks
I am looking for something like this:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace MyNS
{
public partial class frmCommon : Form
{
private Form _CallingForm;
private string _CallingRole;
private string _UserRole;
public Form CallingForm
{
get { return _CallingForm;}
set { _CallingForm =value;}
}
public string CallingRole
{
get {return _CallingRole;}
set {_CallingRole =value ;}
}
public string UserRole
{
get { return _UserRole; }
set { _UserRole = value; }
}
public frmCommon()
{
InitializeComponent();
}
public frmCommon(Form callingform, string callingrole, string userrole)
{
_CallingRole = callingrole;
_CallingForm = callingform;
_UserRole = userrole;
InitializeComponent();
}
public virtual void FormFormat{}
public virtual Bool FormValid { }
public virtual Bool FormClean { }
public virtual Bool FormSave { }
public virtual bool FormLoad { }
}
}
looking for professional code sample in c#, thanks