public Form1() { /* * System.IO.FileInfo info = new System.IO.FileInfo("app.config"); // アセンブリがdllの場合は".dll.config" * log4net.Config.XmlConfigurator.Configure(log4net.LogManager.GetRepository(), info); */ //logger.Info("MessageTest"); using (LoginForm lf = new LoginForm()) { if (lf.ShowDialog() == DialogResult.Cancel) { Application.Exit(); return; } } GlobalData.Instance.mainForm = this; //GlobalDataセット完了 //Form Init... InitializeComponent(); this.Text = GlobalData.Instance.data.bumonName + " - " + GlobalData.Instance.windowTitle; this.label_company.Text = GlobalData.Instance.data.companyName; this.dataGridView1.AutoGenerateColumns = false; this.dataGridView1.DefaultCellStyle.BackColor = GlobalData.Instance.data.symbolColor; this.AddColumn(this.dataGridView1, ColumnType.ReceiptIdButton); this.AddColumn(this.dataGridView1, ColumnType.SellerName); this.AddColumn(this.dataGridView1, ColumnType.ReceiptReceiveTime); this.AddColumn(this.dataGridView1, ColumnType.ReceiptComment); this.addDGVEvents(this.dataGridView1); this.タグ印刷ごとにダイアログを表示ToolStripMenuItem.Checked = Program.config.ShowPrintDialog_AtTagPrint; //Readonly this.button3.Enabled = !GlobalData.Instance.data.isReadonly; this.新Receiptを追加UToolStripMenuItem.Enabled = !GlobalData.Instance.data.isReadonly; this.品番の最終をセットしなおすToolStripMenuItem.Enabled = !GlobalData.Instance.data.isReadonly; this.売却ウィンドウSToolStripMenuItem.Enabled = !GlobalData.Instance.data.isReadonly; this.監査ウィンドウWToolStripMenuItem.Enabled = !GlobalData.Instance.data.isReadonly; //SQLite this.toolStripMenuItem3.Enabled = (GlobalData.Instance.data.db_type == SQLType.MySQL); //this.品番カウンタをセットしなおすToolStripMenuItem.Enabled = !GlobalData.Instance.data.IsSQLite(); this.statusBarTimer = new Timer(); this.statusBarTimer.Interval = 10 * 1000; this.statusBarTimer.Tick += new EventHandler(statusBarTimer_Tick); this.statusBarTimer.Start(); this.renewReceipts(); }