本文整理汇总了C#中frmMain类的典型用法代码示例。如果您正苦于以下问题:C# frmMain类的具体用法?C# frmMain怎么用?C# frmMain使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
frmMain类属于命名空间,在下文中一共展示了frmMain类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: frmTsk_CheckInGoverment_ForRoomBooking_Step1
//hiennv
public frmTsk_CheckInGoverment_ForRoomBooking_Step1(frmMain afrmMain,int IDBookingRs, DateTime CheckOutPlan)
{
InitializeComponent();
this.afrmMain = afrmMain;
this.IDBookingRs = IDBookingRs;
this.CheckOutPlan = CheckOutPlan;
}
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:8,代码来源:frmTsk_CheckInGoverment_ForRoomBooking_Step1.cs
示例2: MapViewControl
public MapViewControl(frmMain Owner)
{
_Owner = Owner;
InitializeComponent();
ListSelect = new ContextMenuStrip();
ListSelect.ItemClicked += ListSelect_Click;
ListSelect.Closed += ListSelect_Close;
UndoMessageTimer = new Timer();
UndoMessageTimer.Tick += RemoveUndoMessage;
OpenGLControl = Program.OpenGL1;
pnlDraw.Controls.Add(OpenGLControl);
GLInitializeDelayTimer = new Timer();
GLInitializeDelayTimer.Interval = 50;
GLInitializeDelayTimer.Tick += GLInitialize;
GLInitializeDelayTimer.Enabled = true;
tmrDraw = new Timer();
tmrDraw.Tick += tmrDraw_Tick;
tmrDraw.Interval = 1;
tmrDrawDelay = new Timer();
tmrDrawDelay.Tick += tmrDrawDelay_Tick;
tmrDrawDelay.Interval = 30;
UndoMessageTimer.Interval = 4000;
}
示例3: frmTsk_BookingForRoom
//Hiennv 25/11/2014
public frmTsk_BookingForRoom(frmMain afrmMain, string codeRoom, int customerType)
{
InitializeComponent();
this.afrmMain = afrmMain;
this.aCurrent_CodeRoom = codeRoom;
this.customerType = customerType;
}
示例4: frmTsk_Booking_Step1
public frmTsk_Booking_Step1(frmMain afrmMain, string codeRoom, int CustomerType)
{
InitializeComponent();
this.afrmMain = afrmMain;
this.codeRoom = codeRoom;
this.CustomerType = CustomerType;
}
示例5: GenerateTabbedComponentsQuery
private static string GenerateTabbedComponentsQuery(frmMain mainWindow, bool filters, QueryPictureSettingsMode mode, int width, int height)
{
string query = string.Empty;
// Output Settings
query += OutputSettingsQuery(mainWindow);
// Filters Panel
if (filters)
query += FiltersQuery(mainWindow);
// Picture Settings
query += PictureSettingsQuery(mainWindow, mode, width, height);
// Video Settings
query += VideoSettingsQuery(mainWindow);
// Audio Settings
query += AudioSettingsQuery(mainWindow);
// Subtitles Panel
query += mainWindow.Subtitles.GetCliQuery;
// Chapter Markers
query += ChapterMarkersQuery(mainWindow);
// X264 Panel
query += X264Query(mainWindow);
// Extra Settings
query += ExtraSettings();
return query;
}
示例6: AddinsController
public AddinsController(frmMain mainFormView, VideoController videoController)
{
m_VideoController = videoController;
m_MainForm = mainFormView;
m_AddinManager = new AddinManager(mainFormView, videoController);
}
示例7: Game
public Game(frmMain owner, Mode GameMode)
{
this.endOfGame = false;
this.NewCards = 5;
this.GameMode = GameMode;
this.MStructures = Class.Structure.CreateStructureList(this);
}
示例8: AddinManager
public AddinManager(frmMain mainForm, VideoController videoController)
{
m_MainForm = mainForm;
m_VideoController = videoController;
TrackingServices.RegisterTrackingHandler(new AddinTrackingHandler());
}
示例9: Main
static void Main( string[] args )
{
string cmdSource = null;
string cmdConfig = null;
foreach( string arg in args )
{
if( arg == "/autoclose" || arg == "--autoclose" )
AutoClose = true;
else if( arg.StartsWith( "/source:" ) || arg.StartsWith( "--source:" ) )
cmdSource = arg.Substring( (arg.StartsWith( "/source:" ) ? 8 : 9) );
else if( arg.StartsWith( "/config:" ) || arg.StartsWith( "--config:" ) )
cmdConfig = arg.Substring( (arg.StartsWith( "/config:" ) ? 8 : 9) );
}
FOUpdaterClient updater = new FOUpdaterClient( cmdConfig );
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault( false );
WindowUpdater = new frmMain( cmdSource );
WindowUpdater.Text += " v" + FOUpdaterClient.VersionString;
if( updater.FOnlineCfg == null && cmdSource == null )
{
MessageBox.Show(
"Cannot find FOnline configuration file in current directory:\n" +
Path.GetDirectoryName( Application.ExecutablePath ) + "\n",
"FOUpdater",
MessageBoxButtons.OK,
MessageBoxIcon.Error
);
Environment.Exit( 0 );
}
Application.Run( WindowUpdater );
/*
if( Installer && File.Exists( ".\\FOConfig.exe" ) )
{
DialogResult result = MessageBox.Show(
"To finish installation process, you have to\n" +
"pleple\n" +
"\n" +
"Do you wish to run configuration tool?",
"Updater",
MessageBoxButtons.YesNo,
MessageBoxIcon.Information
);
if( result == DialogResult.No )
Environment.Exit( 0 );
else
Process.Start( ".\\FOConfig.exe" );
}
*/
}
示例10: frmTsk_SplitRoom
public frmTsk_SplitRoom(frmMain afrmMain, int IDBookingRs, int IDBookingRooms)
{
InitializeComponent();
this.afrmMain = afrmMain;
this.IDBookingRs = IDBookingRs;
this.IDBookingRooms = IDBookingRooms;
}
示例11: frmViewUsers
public frmViewUsers(User u, frmMain mainFrame)
: this()
{
this.user = u;
this.mainFrame = mainFrame;
this.cboRole.ItemsSource = System.Enum.GetValues(typeof(EnumRoles));
}
示例12: Main
public static void Main(string[] args)
{
Application.Init ();
frmMain win = new frmMain ();
win.Show ();
Application.Run ();
}
示例13: btnSave_Click
private void btnSave_Click(object sender, EventArgs e)
{
studentInfo st_Info = new studentInfo();
int count = st_Info.getTemCount();
frmMain frm_M = new frmMain();
frmStudentRegistation frm_Reg = new frmStudentRegistation();
try
{
if (st_Info.add_StudentData() && st_Info.delete_TempData())
{
DialogResult dResult = MessageBox.Show("Records added successfully.", systemMessage.MESSAGEBOXTITLE_SUCCESS, MessageBoxButtons.OK, MessageBoxIcon.Information);
if (dResult == DialogResult.OK)
{
frmStuden_Details frm_Stdetail = new frmStuden_Details();
frmMain frm_M1 = new frmMain();
frm_Stdetail.MdiParent = frm_M1;
frm_M1.mainPanel.Controls.Clear();
frm_M1.mainPanel.Controls.Add(frm_Stdetail);
frm_M1.mainPanel.Dock = DockStyle.Fill;
frm_Stdetail.Show();
this.Close();
fill_DataGried();
}
}
}
catch (Exception ex)
{
MessageBox.Show(systemMessage.TEMP_INSERT, systemMessage.MESSAGEBOXTITLE, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
示例14: BtnOK_Click
public void BtnOK_Click(object sender, EventArgs e)
{
computador = txtPC.Text;
frmMain frm = new frmMain();
frm.EnumServices();
this.Close();
}
示例15: GenerateFullQuery
public static QueueTask GenerateFullQuery(frmMain mainWindow)
{
// Create the CLI Query
string query = string.Empty;
query += SourceQuery(mainWindow, mainWindow.drop_mode.SelectedIndex, 0, null);
query += DestinationQuery(mainWindow, QueryEncodeMode.Standard);
query += GenerateTabbedComponentsQuery(mainWindow, true, QueryPictureSettingsMode.UserInterfaceSettings, 0, 0);
// Create the Queue Task and setup the EncodeTask model object.
Preset preset = mainWindow.treeView_presets.SelectedNode.Tag as Preset;
bool isCustom = true;
if (preset != null && preset.IsBuildIn)
{
isCustom = false;
}
EncodeTask task = CreateEncodeTaskObject(mainWindow);
QueueTask queueTask = new QueueTask(query)
{
Source = task.Source,
Destination = task.Destination,
Title = mainWindow.GetTitle(),
CustomQuery = (mainWindow.rtf_query.Text != string.Empty) || isCustom,
Task = task,
Query = query,
};
return queueTask;
}