private void InitRibbon() { _ribbon = new Ribbon(); _ribbon.Height = 150; _ribbon.ThemeColor = RibbonTheme.Black; _ribbon.OrbDropDown.Width = 150; _ribbon.OrbStyle = RibbonOrbStyle.Office_2013; _ribbon.OrbText = GetText.Text("File"); _ribbon.QuickAccessToolbar.MenuButtonVisible = false; _ribbon.QuickAccessToolbar.Visible = false; _ribbon.QuickAccessToolbar.MinSizeMode = RibbonElementSizeMode.Compact; _ribbon.Dock = DockStyle.None; _ribbon.Top = -25; _ribbon.Left = 0; _ribbon.Width = this.Width; _ribbon.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); _ribbon.Tabs.Add(_intInf.Tsm); _btn_open = new RibbonButton(GetText.Text("Open")); _btn_open.Image = Tools.Utilities.UI.Resources.ResourceIconSet32Default.open_folder; _btn_open.SmallImage = Tools.Utilities.UI.Resources.ResourceIconSet16Default.open_folder; _btn_open.Click += B_open_Click; _ribbon.OrbDropDown.MenuItems.Add(_btn_open); _btn_exit = new RibbonButton(GetText.Text("Exit")); _btn_exit.Image = Tools.Utilities.UI.Resources.ResourceIconSet32Default.door_out; _btn_exit.SmallImage = Tools.Utilities.UI.Resources.ResourceIconSet16Default.door_out; _btn_exit.Click += B_exit_Click; _ribbon.OrbDropDown.MenuItems.Add(_btn_exit); _ribbon.OrbDropDown.Width = 700; this.Controls.Add(_ribbon); }
private void BuildPanelInfra() { _infraHome = new RibbonButton(); _infraHome.Name = "Home"; _infraHome.Text = GetText.Text(_infraHome.Name); _infraHome.Image = Tools.Utilities.UI.Resources.ResourceIconSet32Default.application_view_tile; _infraHome.SmallImage = Tools.Utilities.UI.Resources.ResourceIconSet16Default.application_view_tile; _infraHome.MaxSizeMode = RibbonElementSizeMode.Large; _infraHome.Click += _infra_Click; _infraOpen = new RibbonButton(); _infraOpen.Name = "Open"; _infraOpen.Text = GetText.Text(_infraOpen.Name); _infraOpen.Image = Tools.Utilities.UI.Resources.ResourceIconSet32Default.layer_open; _infraOpen.SmallImage = Tools.Utilities.UI.Resources.ResourceIconSet16Default.layer_open; _infraOpen.MaxSizeMode = RibbonElementSizeMode.Medium; _infraOpen.Click += _infra_Click; _infraSave = new RibbonButton(); _infraSave.Name = "Save"; _infraSave.Text = GetText.Text(_infraSave.Name); _infraSave.Image = Tools.Utilities.UI.Resources.ResourceIconSet32Default.layer_save; _infraSave.SmallImage = Tools.Utilities.UI.Resources.ResourceIconSet16Default.layer_save; _infraSave.MaxSizeMode = RibbonElementSizeMode.Medium; _infraSave.Click += _infra_Click; _infraNew = new RibbonButton(); _infraNew.Name = "New"; _infraNew.Text = GetText.Text(_infraNew.Name); _infraNew.Image = Tools.Utilities.UI.Resources.ResourceIconSet32Default.layer_create; _infraNew.SmallImage = Tools.Utilities.UI.Resources.ResourceIconSet16Default.layer_create; _infraNew.MaxSizeMode = RibbonElementSizeMode.Medium; _infraNew.Click += _infra_Click; _infraSettings = new RibbonButton(); _infraSettings.Name = "Setting"; _infraSettings.Text = GetText.Text(_infraSettings.Name); _infraSettings.Image = Tools.Utilities.UI.Resources.ResourceIconSet32Default.layers; _infraSettings.SmallImage = Tools.Utilities.UI.Resources.ResourceIconSet16Default.layers; _infraSettings.MaxSizeMode = RibbonElementSizeMode.Large; _infraSettings.Click += _infra_Click; _infraAdd = new RibbonButton(); _infraAdd.Name = "Add"; _infraAdd.Text = GetText.Text(_infraAdd.Name); _infraAdd.Image = Tools.Utilities.UI.Resources.ResourceIconSet32Default.layer_add; _infraAdd.SmallImage = Tools.Utilities.UI.Resources.ResourceIconSet16Default.layer_add; _infraAdd.MaxSizeMode = RibbonElementSizeMode.Large; _infraAdd.Click += _infra_Click; _panelInfra = new RibbonPanel(GetText.Text("Infra")); _panelInfra.Items.Add(_infraOpen); _panelInfra.Items.Add(_infraSave); _panelInfra.Items.Add(_infraNew); _panelInfra.Items.Add(_infraSettings); _panelInfra.Items.Add(_infraHome); _panelInfra.Items.Add(_infraAdd); this.Panels.Add(_panelInfra); }
public override void ChangeLanguage() { RefreshData(); labelDaemonStatus.Text = GetText.Text("daemonstatus"); labelConfigFolderPath.Text = GetText.Text("configFolderPath"); labelDaemonPID.Text = GetText.Text("daemonPid"); labelLogin.Text = GetText.Text("login"); labelPassword.Text = GetText.Text("password"); labelSynchroDate.Text = GetText.Text("synchroDate"); buttonSynchroStartStop.Text = _syncany.SynchronisationRunning ? GetText.Text("Started") : GetText.Text("Stopped"); }
private void SwitchSynchro() { if (_syncany.SynchronisationRunning) { _syncany.SuspendSynchro(); } else { _syncany.ResumeSynchro(); } buttonSynchroStartStop.Text = _syncany.SynchronisationRunning ? GetText.Text("Started") : GetText.Text("Stopped"); }
public override void RefreshData() { if (_syncany != null) { labelDaemonStatusValue.Text = Daemon.Started ? GetText.Text("Started") : GetText.Text("Stopped"); labelConfigFileValue.Text = string.IsNullOrEmpty(_syncany.CloudConfigPath) ? GetText.Text("Noconfigpathsaved") : _syncany.CloudConfigPath; labelDaemonPIDValue.Text = Daemon.ProcessId.ToString(); labelLoginValue.Text = string.IsNullOrEmpty(_syncany.Login) ? GetText.Text("Unknow") : _syncany.Login; labelPasswordValue.Text = string.IsNullOrEmpty(_syncany.Password) ? GetText.Text("Unknow") : "*******"; labelSynchroDateValue.Text = _syncany.LastSynchronisation.ToString(); buttonSynchroStartStop.Text = _syncany.SynchronisationRunning ? GetText.Text("Started") : GetText.Text("Stopped"); RefreshDataDirectories(); } }
private void Init() { BuildPanelInfra(); //BuildPanelComputer(); //BuildPanelDocker(); ////BuildPanelSyncany(); ////BuildPanelGitHub(); //BuildPanelBitbucket(); ////BuildPanelJenkins(); ////BuildPanelJira(); ////BuildPanelSonar(); //BuildPanelTeamCity(); //BuildPanelYoutrack(); //BuildPanelVPN(); //BuildPanelPostGreSql(); this.Text = GetText.Text("Infra"); }
public void ChangeLanguage() { _ribbon.OrbText = GetText.Text("File"); _btn_open.Text = GetText.Text("Open"); _btn_exit.Text = GetText.Text("Exit"); }