Example #1
0
        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
        }
Example #3
0
        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 = "准运卡办理二次打印查询";
        }
Example #6
0
        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
        }
Example #7
0
 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();
     }
 }
Example #8
0
        private static int countedStepsCount;         //cache value

        public static void Init(CMainForm pForm)
        {
            form = pForm;
        }
Example #9
0
 public COptionsManager(CMainForm pメインフォーム)
 {
     this.formメインフォーム = pメインフォーム;
 }
Example #10
0
 public CChipPalette(CMainForm formメインフォーム)
 {
     this.InitializeComponent();
     this.formメインフォーム = formメインフォーム;
     this.toolStripMenuItem詳細.CheckState = CheckState.Checked;
 }
Example #11
0
 public CAVIListManager(CMainForm pメインフォーム, ListView pListViewAVIリスト)
 {
     this._Form          = pメインフォーム;
     this.listViewAVIリスト = pListViewAVIリスト;
 }
Example #12
0
 public CSelectionModeManager(CMainForm formメインフォーム)
 {
     this._Form       = formメインフォーム;
     this.mgr譜面管理者ref = formメインフォーム.mgr譜面管理者;
 }
Example #13
0
 public CClipBoard(CMainForm form)
 {
     this._Form = form;
 }
Example #14
0
 public CUiPathSelection(CMainForm pForm)
 {
     form = pForm;
 }
Example #15
0
 public CUiRangeController(CMainForm pForm)
 {
     form = pForm;
 }
Example #16
0
 public CEditModeManager(CMainForm formメインフォーム)
 {
     this._Form       = formメインフォーム;
     this.mgr譜面管理者ref = formメインフォーム.mgr譜面管理者;
 }
Example #17
0
 public CUiDetectionMethod(CMainForm pForm)
 {
     form = pForm;
 }
Example #18
0
 public CBMPListManager(CMainForm sメインフォーム, ListView pListViewBMPリスト)
 {
     this._Form          = sメインフォーム;
     this.listViewBMPリスト = pListViewBMPリスト;
 }