Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
yscom-git committed Oct 16, 2023
1 parent e5cbbb4 commit 1bf63df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion YMES.FX.Forms/Base/MainFormDesign.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class MainFormDesign : MainFormComponent
private string m_DuplicatedRunTitle = "Violated Run";
private string m_Exit_Dlg_Title= "Exit of Program";
private string m_Exit_Dlg_Contents= "Do you want to exit program?";

private string m_Error_DB_Connection = "DB Connection Error";

private string m_Xml_DBKind_NM = "DB_CONNECTION";
private string m_Xml_DBSvr_NM = "DBSVR";
Expand All @@ -68,6 +68,13 @@ public class MainFormDesign : MainFormComponent
private string m_Xml_DBSID_NM = "DBSERVICE";
private string m_Xml_DBPort_NM = "DBPORT";

[Category(CN_CATEGORY_DB)]
public string Error_DB_Connection
{
get { return m_Error_DB_Connection; }
set { m_Error_DB_Connection = value; }
}

[Category(CN_CATEGORY_DB)]
public string XMLConfigFile
{
Expand Down
5 changes: 4 additions & 1 deletion YMES.FX.Forms/BaseMainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ protected override void OnLoad(EventArgs e)
OpenInitialConfig();
if (ConnectDB() == false)
{
StatusBarMsg(Common.MsgTypeEnum.Error, "DB Connection Error", System.Reflection.MethodBase.GetCurrentMethod().Name, true);
StatusBarMsg(Common.MsgTypeEnum.Error, MainFrmDesign.Error_DB_Connection, System.Reflection.MethodBase.GetCurrentMethod().Name, true);
}
CheckDuplicatedRun(AllowDuplicatedRun);
InitDesign();
Expand All @@ -214,10 +214,13 @@ protected virtual void InitDesign()
if(IsDebugMode)
{
lbl_Bizcd.BackColor = Color.Green;
WindowState = FormWindowState.Normal;
this.StartPosition = FormStartPosition.CenterScreen;
}
else
{
lbl_Bizcd.BackColor = Color.Brown;
WindowState = FormWindowState.Maximized;
}
}

Expand Down

0 comments on commit 1bf63df

Please sign in to comment.