private void SetLayout() { IniFile ini = new IniFile(); ini.Load(IniData.SettingIniFile); IniSection resSect = ini["Resources"]; string bgResPath = System.IO.Directory.GetCurrentDirectory() + $@"{resSect["ResourceFolder"]}{resSect["BGFolder"]}"; string textResPath = System.IO.Directory.GetCurrentDirectory() + $@"{resSect["ResourceFolder"]}{resSect["TextFolder"]}"; ControlLayout ctrlLayout = new ControlLayout(); ctrlLayout.MakeCurvedBorder(this, 18, 18); this.BackgroundImage = Image.FromFile(bgResPath + @"\bg_tabpage.png"); ctrlLayout.Control_Sizing(Pnl_Drag, this.Size, 1, 0.2f); ctrlLayout.Control_Sizing(Pic_Title, this.Size, 0.05f, 0.1f); ctrlLayout.Control_Positioning(Pic_Title, this.Size, 0.1f, 0.2f); Pic_Title.Load(textResPath + @"\In.png"); ctrlLayout.Control_Sizing(Lbl_Title, this.Size, 0.15f, 0.1f); ctrlLayout.Control_Positioning(Lbl_Title, this.Size, 0.2f, 0.2f); ctrlLayout.Control_Sizing(Pic_ID, this.Size, 0.1f, 0.15f); ctrlLayout.Control_Positioning(Pic_ID, this.Size, 0.12f, 0.4f); Pic_ID.Load(textResPath + @"\Key.png"); ctrlLayout.Control_Sizing(Txt_ID, this.Size, 0.5f, 0.1f); ctrlLayout.Control_Positioning(Txt_ID, this.Size, 0.2f, 0.4f, ControlLayout.HorizontalSiding.Left); ctrlLayout.Control_Sizing(Pic_PW, this.Size, 0.1f, 0.15f); ctrlLayout.Control_Positioning(Pic_PW, this.Size, 0.12f, 0.6f); Pic_PW.Load(textResPath + @"\Lock.png"); ctrlLayout.Control_Sizing(Txt_PW, this.Size, 0.5f, 0.1f); ctrlLayout.Control_Positioning(Txt_PW, this.Size, 0.2f, 0.6f, ControlLayout.HorizontalSiding.Left); ctrlLayout.Control_Sizing(Btn_LogIn, this.Size, 0.2f, 0.15f); ctrlLayout.Control_Positioning(Btn_LogIn, this.Size, 0.5f, 0.85f); Btn_LogIn.Text = ""; Btn_LogIn.BackgroundImage = Image.FromFile(textResPath + @"\Login.png"); ctrlLayout.MakeCurvedBorder(Btn_LogIn, 18, 18); ctrlLayout.Control_Sizing(Btn_Exit, this.Size, 0.15f, 0.15f); ctrlLayout.Control_Positioning(Btn_Exit, this.Size, 0.9f, 0.1f); Btn_Exit.BackgroundImage = Image.FromFile(textResPath + @"\Exit.png"); ctrlLayout.MakeCurvedBorder(Btn_Exit, 18, 18); }