static void Main() { //Application.ProductVersion.ToString() + "\n"; //System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (!CheckAppRunState()) { return; } LocalLogin localLogin = new LocalLogin(); localLogin.ShowDialog(); if (localLogin.DialogResult == DialogResult.OK) { var programeVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() + "\n"; //WelcomeForm welcomeForm = new WelcomeForm(DeviceConfigParams.CableTestSystemName,programeVersion); //welcomeForm.Show(); //applicationContext = new ApplicationContext(); //applicationContext.Tag = welcomeForm; //Application.Idle += Application_Idle; //Application.Run(applicationContext); CMainForm cMainForm = new CMainForm(); cMainForm.Init(); Application.Run(cMainForm); } }
public MarkedCardSearch(CMainForm frm) { _frmCMainFrom = frm; InitializeComponent(); #region 加载窗体背景 this.BackgroundImage = Image.FromFile(StaticParameter.Skin + "Searchbg.jpg"); this.BackgroundImageLayout = ImageLayout.Stretch; #endregion }
static void Main(string[] args) { Thread.CurrentThread.CurrentCulture = new CultureInfo("en"); CMainForm mainForm = new CMainForm(); Application.Run(mainForm); Console.ReadKey(); }
public LoadWeightSearch(CMainForm frm) { _frmCMainFrom = frm; InitializeComponent(); #region 加载窗体背景 this.BackgroundImage = Image.FromFile(StaticParameter.Skin + "rbg.jpg"); this.BackgroundImageLayout = ImageLayout.Stretch; #endregion this.Text = "重车过磅二次打印查询"; }
public NavicertSearch(CMainForm frm) { _frmMainFrom = frm; InitializeComponent(); #region 加载窗体背景 this.BackgroundImage = Image.FromFile(StaticParameter.Skin + "Searchbg.jpg"); this.BackgroundImageLayout = ImageLayout.Stretch; #endregion this.Text = "准运卡办理二次打印查询"; }
public CWAVListManager(CMainForm pメインフォーム, ListView pListViewWAVリスト) { this._Form = pメインフォーム; this.listViewWAVリスト = pListViewWAVリスト; this.sound管理 = new CSoundManager(this._Form.Handle); this.soundPreview = null; #region [ #26122 2011.8.31 yyagi; ストリーム再生のために、t再生中の処理をする()を定期的に呼び出す処理を追加 ] timerDelegate = new TimerCallback(this.sound管理.t再生中の処理をする); timer = new System.Threading.Timer(timerDelegate, null, 0, 300); #endregion }
private static void Application_Idle(object sender, EventArgs e) { Application.Idle -= new EventHandler(Application_Idle); if (applicationContext.MainForm == null) { CMainForm cMainForm = new CMainForm(); applicationContext.MainForm = cMainForm; //init cMainForm.Init(); WelcomeForm welcomeForm = applicationContext.Tag as WelcomeForm; welcomeForm.Close(); cMainForm.Show(); } }
private static int countedStepsCount; //cache value public static void Init(CMainForm pForm) { form = pForm; }
public COptionsManager(CMainForm pメインフォーム) { this.formメインフォーム = pメインフォーム; }
public CChipPalette(CMainForm formメインフォーム) { this.InitializeComponent(); this.formメインフォーム = formメインフォーム; this.toolStripMenuItem詳細.CheckState = CheckState.Checked; }
public CAVIListManager(CMainForm pメインフォーム, ListView pListViewAVIリスト) { this._Form = pメインフォーム; this.listViewAVIリスト = pListViewAVIリスト; }
public CSelectionModeManager(CMainForm formメインフォーム) { this._Form = formメインフォーム; this.mgr譜面管理者ref = formメインフォーム.mgr譜面管理者; }
public CClipBoard(CMainForm form) { this._Form = form; }
public CUiPathSelection(CMainForm pForm) { form = pForm; }
public CUiRangeController(CMainForm pForm) { form = pForm; }
public CEditModeManager(CMainForm formメインフォーム) { this._Form = formメインフォーム; this.mgr譜面管理者ref = formメインフォーム.mgr譜面管理者; }
public CUiDetectionMethod(CMainForm pForm) { form = pForm; }
public CBMPListManager(CMainForm sメインフォーム, ListView pListViewBMPリスト) { this._Form = sメインフォーム; this.listViewBMPリスト = pListViewBMPリスト; }