align="justify"> {Name {get;} HumanName {get; } CreateReport (IAppContext __ appContext, int _id); Print (); Preview (); Save (); Appcontext {get; set; } DOit (string [] argv);
}
} avto.Interfaces
{interface IReport
{Name {get; } HumanName {get; } Appcontext {get; set; }. Windows.Controls.Button CreateMenu (IAppContext _appcontext);. Windows.Controls.UserControl CreateControl (IAppContext _appcontext);
}
}
{Модуль роботи з настройками} avto.Interfaces
{class ProfileINI
{
[DllImport («kernel32.dll»)] static extern int GetPrivateProfileInt (string section, string entry, int nDefault, string path);
[DllImport («kernel32.dll»)] static extern int GetPrivateProfileString (string section, string entry, string sDefault, buf, int nSize, string path);
[DllImport («kernel32.dll», SetLastError=true)] static extern bool WritePrivateProfileString (string section, string entry, sValue, string path); ProfileINI ()
{
} ProfileINI (string moduleName)
{= moduleName;
} string _moduleName; string ModuleName
{
{(_moduleName == null)
{parentAssembly=Assembly.GetEntryAssembly ()?? Assembly.GetCallingAssembly ();
_moduleName=System.IO.Path.GetFileNameWithoutExtension (parentAssembly.Location);
} _moduleName;
} {_moduleName=value;}
} int GetInt (string section, string entry, int nDefault)
{(section == null) new ArgumentException («section»); (entry == null) new ArgumentException («entry»); GetPrivateProfileInt (section, entry, nDefault, ModuleName);
} bool WriteInt (string section, string entry, int nValue)
{(section == null) new ArgumentException («section»); (entry == null) new ArgumentException («entry»); WritePrivateProfileString (section, entry, Convert.ToString (nValue ), ModuleName);
} string GetString (string section, string entry, string sDefault)
{(section == null) new ArgumentException («section»); (entry == null) new ArgumentException («entry»); (sDefault == null)=string.Empty; buf=new StringBuilder (4095); (section, entry, sDefault, buf, buf.Capacity, ModuleName); buf.ToString ();
} bool WriteString (string section, string entry, string sValue)
{(section == null) new ArgumentException («section»); (entry == null) new ArgumentException («entry»); WritePrivateProfileString (section, entry, sValue, ModuleName);
}
}
} avto.SysMsg.Interfaces
{
Інтерфейс описує сигнатури методів системних сообщенійinterface IsysMsg
{ReportMsg (string text, string header, MsgType type); ReportMsg (string text, MsgType type);
}
} avto.Settings.Interfaces
{interface ISettings