public override void InitWindow() { // Window's attr SetParameters(Controller.GetLanguage()["SetsTitle"], Controller.GetLanguage()["SetsTitle"], 900, 600, false); SetMinSize(900, 600); SetBackground(Factory.Palette.CommonDark); IsCentered = true; SetIcon(Factory.Resources.Icon, Factory.Resources.Icon); // Content _titleBar = Factory.Items.GetTitleBar(Controller.GetLanguage()["SetsTitle"]); CloseBtn = _titleBar.GetCloseButton(); VerticalStack layout = Factory.Items.GetLayout(); layout.SetMargin(0, _titleBar.GetHeight(), 0, 0); layout.SetPadding(0, 0, 0, 15); _tabArea = new TabView(); _tabArea.SetTabPolicy(SizePolicy.Expand); _common = new SettingsTab(Controller.GetLanguage()["SetsTabCommon"]); _commonContent = new CommonSettingsContainer(); _binds = new SettingsTab(Controller.GetLanguage()["SetsTabBinds"]); _bindsContent = new BindsSettingsContainer(); _sticks = new SettingsTab(Controller.GetLanguage()["SetsTabSticks"]); _sticksContent = new SticksSettingsContainer(); SaveBtn = Items.GetControlButton(Controller.GetLanguage()["SaveButton"]); // Adding content AddItems(_titleBar, layout); layout.AddItems( _tabArea, SaveBtn ); _tabArea.AddTab(_common); _tabArea.AddTab(_sticks); _tabArea.AddTab(_binds); _tabArea.AddItemToTab(_common, _commonContent as IBaseItem); _tabArea.AddItemToTab(_sticks, _sticksContent as IBaseItem); _tabArea.AddItemToTab(_binds, _bindsContent as IBaseItem); }
public Log(string reportingClassName, IUpdateUI uiToUpdate = null) { this.reportingClassName = reportingClassName; this.uiToUpdate = uiToUpdate; }
public Ping(IUpdateUI updateMessage) { _updateMessage = updateMessage; _context = new PayrollContext(Properties.Settings.Default); }
public void PerformUpdateUI(IUpdateUI updateUI, object userState = null) { updateUI.DoUpdateUI(new UpdateUIInformation(userState)); }