www.pudn.com > ppc_edit-1.2-src.zip > ProgressForm.cs


using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Text; 
using System.Windows.Forms; 
using Settings; 
 
namespace Modules 
{ 
    public partial class ProgressForm : Form 
    { 
        UserSettings s; 
        bool Saving; 
        public ProgressForm(UserSettings s,bool Saving) 
        { 
            this.s = s; 
            this.Saving = Saving; 
            InitializeComponent(); 
        } 
 
        private void RTFProgressForm_Load(object sender, EventArgs e) 
        { 
            if (Saving) 
            { 
                switch (s.Language) 
                { 
                    case Languages.SLOVAK: this.Text = "Ukladám...";  
                        break; 
                    case Languages.CZECH: this.Text = "Ukládám...";  
                        break; 
                    case Languages.ENGLISH: this.Text = "Saving...";  
                        break; 
                } 
            } 
            else 
            { 
                switch (s.Language) 
                { 
                    case Languages.SLOVAK: this.Text = "Otváram...";  
                        break; 
                    case Languages.CZECH: this.Text = "Otevírám...";  
                        break; 
                    case Languages.ENGLISH: this.Text = "Opening...";  
                        break; 
                } 
            } 
 
        } 
    } 
}