Beispiel #1
0
 public void SetStyle(Data.Style style)
 {
     Colors.StyleButton(this.selectDirectoryButton, style);
     Colors.StyleButton(this.selectJarButton, style);
     Colors.StyleButton(this.readyButton, style);
     Colors.StyleTextBox(this.serverName, style);
 }
Beispiel #2
0
 public void SetStyle(Data.Style style)
 {
     this.BackColor        = style.WindowBackColor;
     this.style.BackColor  = style.ControlBackColor;
     this.style.Image      = Utils.Icons.AddColor(Properties.Resources.MenuStyle, style.ForeColor);
     this.engine.BackColor = style.ControlBackColor;
     this.engine.Image     = Utils.Icons.AddColor(Properties.Resources.MenuEngine, style.ForeColor);
 }
 public void SetStyle(Data.Style style)
 {
     this.newStyle.SetStyle(style);
     foreach (Style s in StyleControls)
     {
         s.SetStyle(style);
     }
 }
 public void SetStyle(Data.Style style)
 {
     this.Style = style;
     foreach (Tab tab in tabs)
     {
         tab.SetStyle(style);
     }
 }
 public void SetStyle(Data.Style _style)
 {
     style = _style;
     this.readyButton.SetStyle(style);
     Utils.Colors.StyleComboBox(this.engineSelect, style);
     Utils.Colors.StyleComboBox(this.versionSelect, style);
     Utils.Colors.StyleTextBox(this.serverName, style);
 }
Beispiel #6
0
 public void SetStyle(Data.Style _style)
 {
     style = _style;
     this.readyButton.SetStyle(style);
     Colors.StyleComboBox(this.engineSelect, style);
     Colors.StyleComboBox(this.versionSelect, style);
     Colors.StyleTextBox(this.serverName, style);
 }
        public new void Load(Tabs _tabs)
        {
            this.tabs = _tabs;
            foreach (Tab t in tabs.tabs)
            {
                if (t.control is StyleEditor)
                {
                    tabs.SelectTab(t);
                    return;
                }
            }
            if (File.Exists(Main.DataDirectory + "Styles.xml"))
            {
                styles = Data.Styles.Deserialize();
            }
            else
            {
                styles = new Data.Styles();
                Data.Style brightGold = new Data.Style();
                brightGold.ForeColor = Color.Black;
                brightGold.ControlBackColor = Color.White;
                brightGold.WindowBackColor = Color.Gold;
                brightGold.Name = Language.GetString("StyleBrightGold");
                brightGold.Selected = true;
                brightGold.BuiltIn = true;
                Data.Style dark = new Data.Style();
                dark.ForeColor = Color.FromArgb(224, 224, 224);
                dark.ControlBackColor = Color.FromArgb(32, 32, 32);
                dark.WindowBackColor = Color.Black;
                dark.Name = Language.GetString("StyleDark");
                dark.BuiltIn = true;
                styles.styles.Add(brightGold);
                styles.styles.Add(dark);
            }
            foreach (Data.Style s in styles.styles)
            {
                if (s.Selected)
                    this.tabs.mainWindow.SetStyle(s);

                //fix old style names
                if (s.BuiltIn && (s.Name.ToLower() == "jasne złoto (wbudowany)" || s.Name.ToLower() == "bright gold (built-in)"))
                    s.Name = Language.GetString("StyleBrightGold");
                if (s.BuiltIn && (s.Name.ToLower() == "ciemny (wbudowany)" || s.Name.ToLower() == "dark (build-in)"))
                    s.Name = Language.GetString("StyleDark");

                //change language of style names
                if (s.BuiltIn && (s.Name == Resources.LanguagePL.StyleBrightGold || s.Name == Resources.LanguageEN.StyleBrightGold))
                    s.Name = Language.GetString("StyleBrightGold");
                if (s.BuiltIn && (s.Name == Resources.LanguagePL.StyleDark || s.Name == Resources.LanguageEN.StyleDark))
                    s.Name = Language.GetString("StyleDark");

                Style style = new Style();
                style.Load(this, s);
            }
            newStyle.Load(this);
            tabs.AddTab(Language.GetString("StyleEditorName"), this);
        }
        public void AddStyle(Data.Style s)
        {
            this.styles.styles.Add(s);
            Style style = new Style();

            style.Load(this, s);
            this.StyleEditor_Resize(null, null);
            RefreshStyles();
        }
Beispiel #9
0
 public static Data.Style GetDefaultStyle()
 {
     Data.Style brightGold = new Data.Style();
     brightGold.ForeColor        = Color.Black;
     brightGold.ControlBackColor = Color.White;
     brightGold.WindowBackColor  = Color.Gold;
     brightGold.Name             = Utils.Language.GetString("StyleBrightGold");
     brightGold.Selected         = true;
     return(brightGold);
 }
Beispiel #10
0
 public void SetStyle(Data.Style style)
 {
     this.BackColor = style.WindowBackColor;
     this.createLocalServer.BackColor   = style.ControlBackColor;
     this.createLocalServer.Image       = Utils.Icons.AddColor(Properties.Resources.MenuCreateLocalServer, style.ForeColor);
     this.connectLocalServer.BackColor  = style.ControlBackColor;
     this.connectLocalServer.Image      = Utils.Icons.AddColor(Properties.Resources.MenuConnectLocalServer, style.ForeColor);
     this.connectRemoteServer.BackColor = style.ControlBackColor;
     this.connectRemoteServer.Image     = Utils.Icons.AddColor(Properties.Resources.MenuConnectRemoteServer, style.ForeColor);
 }
 public static Data.Style GetDefaultStyle()
 {
     Data.Style brightGold = new Data.Style();
     brightGold.ForeColor = Color.Black;
     brightGold.ControlBackColor = Color.White;
     brightGold.WindowBackColor = Color.Gold;
     brightGold.Name = "Jasne złoto (Wbudowany)";
     brightGold.Selected = true;
     return brightGold;
 }
 public Console()
 {
     InitializeComponent();
     this.startButton.Text = Utils.Language.GetString("ConsoleRun");
     this.stopButton.Text = Utils.Language.GetString("ConsoleStop");
     this.restartButton.Text = Utils.Language.GetString("ConsoleRestart");
     this.killButton.Text = Utils.Language.GetString("ConsoleKill");
     this.tag = "[" + Utils.Language.GetString("ProgramName") + "]: ";
     Style = Utils.Colors.GetDefaultStyle();
 }
Beispiel #13
0
 public Console()
 {
     InitializeComponent();
     this.startButton.Text   = Utils.Language.GetString("ConsoleRun");
     this.stopButton.Text    = Utils.Language.GetString("ConsoleStop");
     this.restartButton.Text = Utils.Language.GetString("ConsoleRestart");
     this.killButton.Text    = Utils.Language.GetString("ConsoleKill");
     this.tag = "[" + Utils.Language.GetString("ProgramName") + "]: ";
     Style    = Utils.Colors.GetDefaultStyle();
 }
Beispiel #14
0
 public static void StyleButton(Button button, Data.Style style)
 {
     button.BackColor = style.ControlBackColor;
     button.FlatAppearance.MouseOverBackColor = style.WindowBackColor;
     button.FlatAppearance.MouseDownBackColor = style.WindowBackColor;
     button.FlatAppearance.BorderColor        = Color.FromArgb(255, 255, 255, 255);
     button.FlatAppearance.BorderSize         = 0;
     button.TabIndex = 0;
     button.TabStop  = false;
 }
        public void SetStyle(Data.Style style)
        {
            this.BackColor = style.ControlBackColor;
            this.ForeColor = style.ForeColor;

            _imageList.Images[0] = Icons.AddColor(Properties.Resources.FolderOpenIcon, this.ForeColor);
            _imageList.Images[1] = Icons.AddColor(Properties.Resources.FolderCloseIcon, this.ForeColor);
            _imageList.Images[2] = Icons.AddColor(Properties.Resources.LocalIcon, this.ForeColor);
            _imageList.Images[3] = Icons.AddColor(Properties.Resources.RemoteIcon, this.ForeColor);
            _imageList.Images[4] = Icons.AddColor(Properties.Resources.ConsoleIcon, this.ForeColor);
        }
Beispiel #16
0
 public void SetStyle(Data.Style style)
 {
     Colors.StyleButton(readyButton, style);
     Colors.StyleTextBox(serverName, style);
     Colors.StyleTextBox(serverIP, style);
     Colors.StyleTextBox(ftpPassword, style);
     Colors.StyleTextBox(ftpPort, style);
     Colors.StyleTextBox(ftpUser, style);
     Colors.StyleTextBox(rconPassword, style);
     Colors.StyleTextBox(rconPort, style);
 }
Beispiel #17
0
 public void SetStyle(Data.Style style)
 {
     Utils.Colors.StyleButton(this.save, style);
     this.nameText.ForeColor              = style.ForeColor;
     this.nameText.BackColor              = style.ControlBackColor;
     this.foreColor.BackColor             = style.ForeColor;
     this.controlBackColor.BackColor      = style.ControlBackColor;
     this.windowBackColor.BackColor       = style.WindowBackColor;
     this.foreColorLabel.ForeColor        = Colors.Invert(this.foreColor.BackColor);
     this.controlBackColorLabel.ForeColor = Colors.Invert(this.controlBackColor.BackColor);
     this.windowBackColorLabel.ForeColor  = Colors.Invert(this.windowBackColor.BackColor);
 }
Beispiel #18
0
 public void SetStyle(Data.Style style)
 {
     this.StartBackColor = Utils.Colors.Bright(style.ControlBackColor, 32);
     this.ForeColor      = style.ForeColor;
     Tab_MouseLeave(null, null);
     this.control.BackColor = style.ControlBackColor;
     this.control.ForeColor = style.ForeColor;
     this.closeButton.Image = Utils.Icons.AddColor(Properties.Resources.CloseImage, style.ForeColor);
     if (this.control is IStyleableTab)
     {
         ((IStyleableTab)this.control).SetStyle(style);
     }
 }
Beispiel #19
0
 private void save_Click(object sender, EventArgs e)
 {
     if (this.nameText.Text == String.Empty)
     {
         Error.Show("ErrorNoStyleName");
         return;
     }
     Data.Style newStyle = new Data.Style();
     newStyle.Name             = nameText.Text;
     newStyle.ForeColor        = foreColor.BackColor;
     newStyle.ControlBackColor = controlBackColor.BackColor;
     newStyle.WindowBackColor  = windowBackColor.BackColor;
     styleEditor.AddStyle(newStyle);
 }
 public new void Load(StyleEditor _styleEditor, Data.Style _style)
 {
     this.styleEditor = _styleEditor;
     this.style = _style;
     if (style.Selected)
     {
         this.IgnoreCheckedChangedEvent = true;
         this.selectBox.Checked = true;
     }
     this.styleEditor.Controls.Add(this);
     this.styleEditor.StyleControls.Add(this);
     this.styleEditor.RefreshStyles();
     this.selectBox.Text = this.style.Name;
 }
 public new void Load(StyleEditor _styleEditor, Data.Style _style)
 {
     this.styleEditor = _styleEditor;
     this.style       = _style;
     if (style.Selected)
     {
         this.IgnoreCheckedChangedEvent = true;
         this.selectBox.Checked         = true;
     }
     this.styleEditor.Controls.Add(this);
     this.styleEditor.StyleControls.Add(this);
     this.styleEditor.RefreshStyles();
     this.selectBox.Text = this.style.Name;
 }
Beispiel #22
0
 public void SetStyle(Data.Style style)
 {
     this.Style = style;
     startButton_MouseLeave(null, null);
     stopButton_MouseLeave(null, null);
     restartButton_MouseLeave(null, null);
     killButton_MouseLeave(null, null);
     Utils.Colors.StyleButton(startButton, style);
     Utils.Colors.StyleButton(stopButton, style);
     Utils.Colors.StyleButton(restartButton, style);
     Utils.Colors.StyleButton(killButton, style);
     Utils.Colors.StyleFastColoredTextBox(text, style);
     Utils.Colors.StyleTextBox(consoleCommand, style);
     consoleCommand.BorderStyle = BorderStyle.None;
 }
 public new void Load(Tabs _tabs)
 {
     this.tabs = _tabs;
     foreach (Tab t in tabs.tabs)
     {
         if (t.control is StyleEditor)
         {
             tabs.SelectTab(t);
             return;
         }
     }
     if (File.Exists(Utils.Main.DataDirectory + "Styles.xml"))
     {
         styles = Data.Styles.Deserialize();
     }
     else
     {
         styles = new Data.Styles();
         Data.Style brightGold = new Data.Style();
         brightGold.ForeColor = Color.Black;
         brightGold.ControlBackColor = Color.White;
         brightGold.WindowBackColor = Color.Gold;
         brightGold.Name = "Jasne złoto (Wbudowany)";
         brightGold.Selected = true;
         brightGold.BuiltIn = true;
         Data.Style dark = new Data.Style();
         dark.ForeColor = Color.FromArgb(224, 224, 224);
         dark.ControlBackColor = Color.FromArgb(32, 32, 32);
         dark.WindowBackColor = Color.Black;
         dark.Name = "Ciemny (Wbudowany)";
         dark.BuiltIn = true;
         styles.styles.Add(brightGold);
         styles.styles.Add(dark);
     }
     foreach (Data.Style s in styles.styles)
     {
         if (s.Selected)
             this.tabs.mainWindow.SetStyle(s);
         Style style = new Style();
         style.Load(this, s);
     }
     newStyle.Load(this);
     tabs.AddTab("Zarządzaj stylami", this);
 }
 public void SetStyle(Data.Style style)
 {
     this.Style = style;
     foreach (Tab tab in tabs)
     {
         tab.SetStyle(style);
     }
 }
 public void SetStyle(Data.Style style)
 {
     this.Style = style;
 }
 public void SetStyle(Data.Style style)
 {
     this.Style = style;
     startButton_MouseLeave(null, null);
     stopButton_MouseLeave(null, null);
     restartButton_MouseLeave(null, null);
     killButton_MouseLeave(null, null);
     Utils.Colors.StyleButton(startButton, style);
     Utils.Colors.StyleButton(stopButton, style);
     Utils.Colors.StyleButton(restartButton, style);
     Utils.Colors.StyleButton(killButton, style);
     Utils.Colors.StyleFastColoredTextBox(text, style);
     Utils.Colors.StyleTextBox(consoleCommand, style);
     consoleCommand.BorderStyle = BorderStyle.None;
 }
 private void save_Click(object sender, EventArgs e)
 {
     if (this.nameText.Text == String.Empty)
     {
         Error.Show("ErrorNoStyleName");
         return;
     }
     Data.Style newStyle = new Data.Style();
     newStyle.Name = nameText.Text;
     newStyle.ForeColor = foreColor.BackColor;
     newStyle.ControlBackColor = controlBackColor.BackColor;
     newStyle.WindowBackColor = windowBackColor.BackColor;
     styleEditor.AddStyle(newStyle);
 }
Beispiel #28
0
 public void SetStyle(Data.Style style)
 {
     Colors.StyleFastColoredTextBox(text, style);
     Colors.StyleButton(saveButton, style);
 }
 private void save_Click(object sender, EventArgs e)
 {
     if (this.nameText.Text == String.Empty)
     {
         MessageBox.Show("Nazwa stylu nie może być pusta!", "Błąd", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     Data.Style newStyle = new Data.Style();
     newStyle.Name = nameText.Text;
     newStyle.ForeColor = foreColor.BackColor;
     newStyle.ControlBackColor = controlBackColor.BackColor;
     newStyle.WindowBackColor = windowBackColor.BackColor;
     styleEditor.AddStyle(newStyle);
 }
 public void DeleteStyle(Data.Style style)
 {
     this.styles.styles.Remove(style);
 }
Beispiel #31
0
 public static void StyleFastColoredTextBox(FastColoredTextBoxNS.FastColoredTextBox box, Data.Style style)
 {
     box.BackColor         = style.ControlBackColor;
     box.ForeColor         = style.ForeColor;
     box.CaretColor        = style.ForeColor;
     box.IndentBackColor   = style.ControlBackColor;
     box.ServiceLinesColor = style.WindowBackColor;
 }
Beispiel #32
0
 public void SetStyle(Data.Style style)
 {
     this.saveButton.SetStyle(style);
     this.engineTree.BackColor = style.ControlBackColor;
     this.engineTree.ForeColor = style.ForeColor;
 }
 public Console()
 {
     InitializeComponent();
     Style = Utils.Colors.GetDefaultStyle();
 }
Beispiel #34
0
 public void SetStyle(Data.Style style)
 {
     Colors.StyleFastColoredTextBox(text, style);
     Colors.StyleTextBox(consoleCommand, style);
     consoleCommand.BorderStyle = BorderStyle.None;
 }
Beispiel #35
0
 public static void StyleTextBox(TextBox textBox, Data.Style style)
 {
     textBox.BorderStyle = BorderStyle.FixedSingle;
     textBox.BackColor   = style.ControlBackColor;
     textBox.ForeColor   = style.ForeColor;
 }
Beispiel #36
0
 public void SetStyle(Data.Style style)
 {
     this.BackColor         = style.WindowBackColor;
     this.english.BackColor = style.ControlBackColor;
     this.polish.BackColor  = style.ControlBackColor;
 }
Beispiel #37
0
 public static void StyleComboBox(ComboBox comboBox, Data.Style style)
 {
     comboBox.BackColor = style.ControlBackColor;
     comboBox.ForeColor = style.ForeColor;
 }
 public void SetStyle(Data.Style style)
 {
     Utils.Colors.StyleButton(this.deleteButton, style);
 }
 public void SetStyle(Data.Style style)
 {
     this.Style = style;
 }
        public new void Load(Tabs _tabs)
        {
            this.tabs = _tabs;
            foreach (Tab t in tabs.tabs)
            {
                if (t.control is StyleEditor)
                {
                    tabs.SelectTab(t);
                    return;
                }
            }
            if (File.Exists(Main.DataDirectory + "Styles.xml"))
            {
                styles = Data.Styles.Deserialize();
            }
            else
            {
                styles = new Data.Styles();
                Data.Style brightGold = new Data.Style();
                brightGold.ForeColor        = Color.Black;
                brightGold.ControlBackColor = Color.White;
                brightGold.WindowBackColor  = Color.Gold;
                brightGold.Name             = Language.GetString("StyleBrightGold");
                brightGold.Selected         = true;
                brightGold.BuiltIn          = true;
                Data.Style dark = new Data.Style();
                dark.ForeColor        = Color.FromArgb(224, 224, 224);
                dark.ControlBackColor = Color.FromArgb(32, 32, 32);
                dark.WindowBackColor  = Color.Black;
                dark.Name             = Language.GetString("StyleDark");
                dark.BuiltIn          = true;
                styles.styles.Add(brightGold);
                styles.styles.Add(dark);
            }
            foreach (Data.Style s in styles.styles)
            {
                if (s.Selected)
                {
                    this.tabs.mainWindow.SetStyle(s);
                }

                //fix old style names
                if (s.BuiltIn && (s.Name.ToLower() == "jasne złoto (wbudowany)" || s.Name.ToLower() == "bright gold (built-in)"))
                {
                    s.Name = Language.GetString("StyleBrightGold");
                }
                if (s.BuiltIn && (s.Name.ToLower() == "ciemny (wbudowany)" || s.Name.ToLower() == "dark (build-in)"))
                {
                    s.Name = Language.GetString("StyleDark");
                }

                //change language of style names
                if (s.BuiltIn && (s.Name == Resources.LanguagePL.StyleBrightGold || s.Name == Resources.LanguageEN.StyleBrightGold))
                {
                    s.Name = Language.GetString("StyleBrightGold");
                }
                if (s.BuiltIn && (s.Name == Resources.LanguagePL.StyleDark || s.Name == Resources.LanguageEN.StyleDark))
                {
                    s.Name = Language.GetString("StyleDark");
                }

                Style style = new Style();
                style.Load(this, s);
            }
            newStyle.Load(this);
            tabs.AddTab(Language.GetString("StyleEditorName"), this);
        }