private void SetLocaleText(IAimpMUIManager muiManager) { lCaption.Text = muiManager.GetValue("DotNet.Plugins\\Caption"); tabPlugins.Text = muiManager.GetValue("DotNet.Plugins\\Plugins"); tabSettings.Text = muiManager.GetValue("DotNet.Plugins\\Settings"); cbDebugMode.Text = muiManager.GetValue("DotNet.Settings\\DebugMode"); var setText = muiManager.GetValue("DotNet.Plugins\\bSettings"); if (!string.IsNullOrWhiteSpace(setText)) { _settingButtonText = setText; } }
public SettingsForm(IntPtr parent, IAimpMUIManager player) : this() { SetParent(Handle, parent); var buttonCell = new DataGridViewDisableButtonColumn { Resizable = DataGridViewTriState.False, Width = 100, AutoSizeMode = DataGridViewAutoSizeColumnMode.None }; dataGridView1.Columns.Insert(2, buttonCell); SetLocaleText(player); cbDebugMode.CheckedChanged += CbDebugModeOnCheckedChanged; //RECT rect; //GetWindowRect(parent, out rect); //WINDOWINFO winfo = new WINDOWINFO(); //GetWindowInfo(parent, ref winfo); ////Location = new Point(rect.Left, rect.Top); //this.Left = rect.Left; //Top = rect.Top; //SetWindowText(parent.ToInt32(), "TEST"); //StringBuilder title = new StringBuilder(256); //GetWindowText(parent.ToInt32(), title, 256); //var a = new WindowHandleInfo(parent).GetAllChildHandles(); Show(); WindowState = FormWindowState.Maximized; }