public RegularExpressionLocalizedAttribute(Type ResourceType, string valueToCompareName, string errorMessageResourceName)
        {

            base.ErrorMessageResourceName = errorMessageResourceName;
            base.ErrorMessageResourceType = ResourceType;
            string displayName = "";

            var resman = new System.Resources.ResourceManager(ResourceType);
            
            //error message
            displayName = resman.GetString(errorMessageResourceName);

            //base.ErrorMessage = string.IsNullOrEmpty(displayName)
            //    ? string.Format("[[{0}]]", errorMessageResourceName)
            //    : displayName;

            //value To Compare
            displayName = resman.GetString(valueToCompareName);

            _valueToCompare = string.IsNullOrEmpty(displayName)
                ? string.Format("[[{0}]]", valueToCompareName)
                : displayName;

            //ignore it
            _condition = Condition.EqualTo;
        }
Exemple #2
0
 public Form1()
 {
     InitializeComponent();
     rm = Properties.Resources.ResourceManager;
     textBoxConsole.Text = rm.GetString("Introduction") + "\r\n";
     Console.WriteLine(rm.GetString("ConsoleIntroduction"));
     GuiStatusUpdate();
 }
Exemple #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager( typeof( EncodingError ) );
     this.txLog = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // txLog
     //
     this.txLog.AccessibleDescription = resources.GetString( "txLog.AccessibleDescription" );
     this.txLog.AccessibleName = resources.GetString( "txLog.AccessibleName" );
     this.txLog.Anchor = ((System.Windows.Forms.AnchorStyles) (resources.GetObject( "txLog.Anchor" )));
     this.txLog.AutoSize = ((bool) (resources.GetObject( "txLog.AutoSize" )));
     this.txLog.BackgroundImage = ((System.Drawing.Image) (resources.GetObject( "txLog.BackgroundImage" )));
     this.txLog.Dock = ((System.Windows.Forms.DockStyle) (resources.GetObject( "txLog.Dock" )));
     this.txLog.Enabled = ((bool) (resources.GetObject( "txLog.Enabled" )));
     this.txLog.Font = ((System.Drawing.Font) (resources.GetObject( "txLog.Font" )));
     this.txLog.ImeMode = ((System.Windows.Forms.ImeMode) (resources.GetObject( "txLog.ImeMode" )));
     this.txLog.Location = ((System.Drawing.Point) (resources.GetObject( "txLog.Location" )));
     this.txLog.MaxLength = ((int) (resources.GetObject( "txLog.MaxLength" )));
     this.txLog.Multiline = ((bool) (resources.GetObject( "txLog.Multiline" )));
     this.txLog.Name = "txLog";
     this.txLog.PasswordChar = ((char) (resources.GetObject( "txLog.PasswordChar" )));
     this.txLog.ReadOnly = true;
     this.txLog.RightToLeft = ((System.Windows.Forms.RightToLeft) (resources.GetObject( "txLog.RightToLeft" )));
     this.txLog.ScrollBars = ((System.Windows.Forms.ScrollBars) (resources.GetObject( "txLog.ScrollBars" )));
     this.txLog.Size = ((System.Drawing.Size) (resources.GetObject( "txLog.Size" )));
     this.txLog.TabIndex = ((int) (resources.GetObject( "txLog.TabIndex" )));
     this.txLog.Text = resources.GetString( "txLog.Text" );
     this.txLog.TextAlign = ((System.Windows.Forms.HorizontalAlignment) (resources.GetObject( "txLog.TextAlign" )));
     this.txLog.Visible = ((bool) (resources.GetObject( "txLog.Visible" )));
     this.txLog.WordWrap = ((bool) (resources.GetObject( "txLog.WordWrap" )));
     //
     // EncodingError
     //
     this.AccessibleDescription = resources.GetString( "$this.AccessibleDescription" );
     this.AccessibleName = resources.GetString( "$this.AccessibleName" );
     this.AutoScaleBaseSize = ((System.Drawing.Size) (resources.GetObject( "$this.AutoScaleBaseSize" )));
     this.AutoScroll = ((bool) (resources.GetObject( "$this.AutoScroll" )));
     this.AutoScrollMargin = ((System.Drawing.Size) (resources.GetObject( "$this.AutoScrollMargin" )));
     this.AutoScrollMinSize = ((System.Drawing.Size) (resources.GetObject( "$this.AutoScrollMinSize" )));
     this.BackgroundImage = ((System.Drawing.Image) (resources.GetObject( "$this.BackgroundImage" )));
     this.ClientSize = ((System.Drawing.Size) (resources.GetObject( "$this.ClientSize" )));
     this.Controls.Add( this.txLog );
     this.Enabled = ((bool) (resources.GetObject( "$this.Enabled" )));
     this.Font = ((System.Drawing.Font) (resources.GetObject( "$this.Font" )));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.Icon = ((System.Drawing.Icon) (resources.GetObject( "$this.Icon" )));
     this.ImeMode = ((System.Windows.Forms.ImeMode) (resources.GetObject( "$this.ImeMode" )));
     this.Location = ((System.Drawing.Point) (resources.GetObject( "$this.Location" )));
     this.MaximumSize = ((System.Drawing.Size) (resources.GetObject( "$this.MaximumSize" )));
     this.MinimumSize = ((System.Drawing.Size) (resources.GetObject( "$this.MinimumSize" )));
     this.Name = "EncodingError";
     this.RightToLeft = ((System.Windows.Forms.RightToLeft) (resources.GetObject( "$this.RightToLeft" )));
     this.StartPosition = ((System.Windows.Forms.FormStartPosition) (resources.GetObject( "$this.StartPosition" )));
     this.Text = resources.GetString( "$this.Text" );
     this.ResumeLayout( false );
 }
Exemple #4
0
        public void Invoke(object Sender, object Element)
        {
            if (Element is CommandParameters)
            {
                CommandParameters cp = (CommandParameters)Element;

                string[] checkedElems = MCGrid.GetCheckedCollection(((CommandManager)Sender).Page, cp.CommandArguments["GridId"]);
                ArrayList alMas = new ArrayList();
                foreach (string elem in checkedElems)
                {
                    string[] elemMas = elem.Split(new string[] { "::" }, StringSplitOptions.RemoveEmptyEntries);
                    //type, id, _containerName, _containerKey
                    if (elemMas.Length != 4)
                        continue;
                    if (elemMas[0] == "2")
                    {
                        int id = Convert.ToInt32(elemMas[1], CultureInfo.InvariantCulture);
                        alMas.Add(id);
                    }

                    UserLightPropertyCollection pc = Mediachase.IBN.Business.Security.CurrentUser.Properties;
                    System.Resources.ResourceManager LocRM = new System.Resources.ResourceManager("Mediachase.UI.Web.App_GlobalResources.Modules.Resources.strTemplate", typeof(CopySelectedHandler).Assembly);
                    int iCount = 10;
                    if (pc["ClipboardItemsCount"] != null)
                        iCount = int.Parse(pc["ClipboardItemsCount"].ToString());
                    string ss = String.Empty;
                    try
                    {
                        foreach (int iFileId in alMas)
                        {
                            string sNewFileClip = "";
                            if (pc["ClipboardFiles"] != null)
                                sNewFileClip = pc["ClipboardFiles"].ToString();
                            sNewFileClip = WorkWithClipboard(iCount, iFileId.ToString() + "|" + sNewFileClip);
                            pc["ClipboardFiles"] = sNewFileClip;
                        }
                        ss = String.Format(LocRM.GetString("tFilesAdded"), alMas.Count.ToString());
                    }
                    catch
                    {
                        ss = LocRM.GetString("tFilesNotAdded");
                    }
                    CommandManager cm = Sender as CommandManager;
                    if (cm != null && !String.IsNullOrEmpty(ss))
                        cm.InfoMessage = ss;

                }
            }
        }
        public Collections(CollectionItem item)
        {
            InitializeComponent();
            _item = item;
            collectionRequests = new CollectionRequests(Constants.BaseApiUrl);
            collectionRequests.ItemsReceived += collectionRequests_ItemsReceived;
            this.FoundedStoryBoard.Completed += FoundedStoryBoard_Completed;
            this.HighlightFoundedStoryBoard.Completed += HighlightFoundedStoryBoard_Completed;

            rm = new System.Resources.ResourceManager(typeof(Earthwatchers.UI.Resources.Labels));
            this.PrizeText.Text = rm.GetString(_item.Name).ToUpper();
            this.CollectionNameText.Text = rm.GetString(_item.CollectionName);
            this.Image3.Source = Earthwatchers.UI.Resources.ResourceHelper.GetBitmap(string.Format("/Resources/Images/Collections/{0}", _item.Icon));
            ToolTipService.SetToolTip(this.Image3Border, rm.GetString(_item.Name));
        }
        /// <summary>
        /// Evaluate the file type expressions within a collection of IPolicyObjects to determine whether they are valid.
        /// For now, we assume that the collection of IPolicyObjects will consist of IConditionGroups only. If there are
        /// other IPolicyObject types in the collection, these will not be validated.
        /// </summary>
        /// <param name="conditions">The IPolicyObject to evaluate</param>
        /// <returns>True if all file type expressions with the IPolicyObject collection are valid, otherwise False</returns>
        public static bool ValidateIntraPolicy(string policyName, IPolicyObject policyObject, PolicySetValidator.AddViolationMessageHandler AddMessage)
        {
            if (policyObject is IConditionGroup)
            {
                if (!ValidateIntraPolicyConditionGroup((IConditionGroup)policyObject))
                {
                    if (null != AddMessage)
                    {
                        AddMessage(policyName, Properties.Resources.VALIDATION_INTRAPOLICY_FILETYPE_CONFLICT, false);
                    }
                    return false;
                }
            }
            else
            {
                //the following is for the developer - we are only expecting to find expressions in a 
                //Policy -> ConditionGroup -> Condition structure. You're in this code because presumably
                //we have now changed the way we structure expressions
                System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager("Workshare.Policy.Properties.Resources", typeof(PolicySuites).Assembly);
                string message = resourceManager.GetString("VALIDATION_INTRAPOLICY_EXPRESSIONS_UNSUPPORTEDSTRUCTURE", System.Globalization.CultureInfo.InvariantCulture);
                Logger.LogError(message);
                System.Diagnostics.Debug.Assert(false, message);
            }

            return true;
        }
        /// <summary>
        /// Evaluates the file type expressions within a condition group to determine whether they are all valid.
        /// For now, we assume that the conditionGroup.Conditions collection contains only ICondition objects. If there
        /// are any IPolicyObject objects within the collection that are not ICondition, these will not be validated.
        /// Validation is only performed on ConditionGroups with AND logic.
        /// </summary>
        /// <param name="conditionGroup">The condition group to evaluae</param>
        /// <returns></returns>
        private static bool ValidateIntraPolicyConditionGroup(IConditionGroup conditionGroup)
        {
            //For now, we only validate on AND logic
            if (ConditionLogic.AND == conditionGroup.Logic)
            {
                List<Workshare.Policy.FileType> fileTypesInConditionGroup = new List<Workshare.Policy.FileType>();

                foreach (IPolicyObject policyObject in conditionGroup.Conditions)
                {
                    if (policyObject is ICondition)
                    {
                        if (!ValidateIntraPolicyCondition((ICondition)policyObject, fileTypesInConditionGroup))
                        {
                            return false;
                        }
                    }
                    else
                    {
                        //the following is for the developer - we are only expecting to find expressions in a 
                        //Policy -> ConditionGroup -> Condition structure. You're in this code because presumably
                        //we have now changed the way we structure expressions
                        System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager("Workshare.Policy.Properties.Resources", typeof(PolicySuites).Assembly);
                        string message = resourceManager.GetString("VALIDATION_INTRAPOLICY_EXPRESSIONS_UNSUPPORTEDSTRUCTURE", System.Globalization.CultureInfo.InvariantCulture);
                        Logger.LogError(message);
                        System.Diagnostics.Debug.Assert(false, message);
                    }
                }
            }

            return true;
        }
 public void DisplayNoMatches()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NoiFolderMessage));
        this.richTextBox2.Text = resources.GetString("richTextBox2.NoMatchesText");
        this.richTextBox3.Visible = this.richTextBox4.Visible = false;
        this.pictureBox1.Visible = this.pictureBox2.Visible = false;
 }
Exemple #9
0
        public override string ToString()
        {
            //LANGFILE
            var resman = new System.Resources.ResourceManager(typeof(Strings).FullName, typeof(Strings).Assembly);

            return base.ToString() + this.TypeOfMaterial + " " + this.NameOfMaterial + " " + this.Weight + " " + resman.GetString("Weight");        
        }
Exemple #10
0
        public Form1()
        {
            InitializeComponent();

            rm = WavSynchro.Properties.Resources.ResourceManager;
            textBoxConsole.Text = rm.GetString("Introduction") + "\r\n";
            GuiStatusUpdate();
        }
        public Form1()
        {
            InitializeComponent();

            rm = BpsConvWin.Properties.Resources.ResourceManager;
            textBoxOutput.Text = rm.GetString("PleasePressBrowseButton") + "\r\n";
            Text = string.Format(CultureInfo.CurrentCulture, "BpsConvWin {0}", AssemblyVersion);
        }
Exemple #12
0
 public About()
 {
     InitializeComponent();
        System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager(typeof(About));
        title.Text = string.Format(resourceManager.GetString("title.Text"), Application.ProductVersion);
        centerString(title);
        centerString(label3);
 }
Exemple #13
0
        static void Main(string[] args)
        {
            System.Resources.ResourceManager rs = new System.Resources.ResourceManager("Con_Proj.Resource1", typeof(Resource1).Assembly);
            var title = rs.GetString("String2");//获取资源名为title的字符串

            Console.WriteLine(title);

            Console.ReadKey();

        }
Exemple #14
0
        internal static string Authenticate(IWin32Window dialogOwner, FlickrContext context)
        {
            object frob;

            FlickrNet.Flickr.CacheDisabled = true;

            System.Resources.ResourceManager mgr = new System.Resources.ResourceManager(typeof(Properties.Resources));
            FlickrNet.Flickr flickrProxy = new FlickrNet.Flickr(mgr.GetString("ApiKey"), mgr.GetString("SharedSecret"));

            // Leverage proxy settings if they are there.
            System.Net.WebProxy proxySettings = (System.Net.WebProxy)WindowsLive.Writer.Api.PluginHttpRequest.GetWriterProxy();
            if (proxySettings != null)
            {
                flickrProxy.Proxy = proxySettings;
            }

            using (AuthForm authf = new AuthForm(flickrProxy))
            {
                if (authf.ShowDialog(dialogOwner) != DialogResult.OK)
                {
                    return null;
                }

                frob = authf.Frob;
            }

            using (CompletedAuth complete = new CompletedAuth(flickrProxy, frob))
            {
                if (complete.ShowDialog(dialogOwner) != DialogResult.OK)
                {
                    // auth failed
                    MessageBox.Show(@"Authorization has failed.  Please try again", @"Authorization Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return null;
                }

                context.FlickrAuthToken = complete.AuthToken;
                context.FlickrAuthTokenSecret = complete.AuthTokenSecret;

                return complete.AuthToken;
            }
        }
Exemple #15
0
        }//get_CRMTicketGrade_Description


        public static string get_CRMTicketProcessFlag_Description(CRMTicketProcessFlag enu)
        {
            System.Resources.ResourceManager rm = new System.Resources.ResourceManager(typeof(CRMTicket));
            System.Globalization.CultureInfo cInfo = System.Globalization.CultureInfo.CurrentCulture;
            string enuName = string.Format("{0}.{1}.{2}", typeof(CRMTicketProcessFlag).BaseType.Name, typeof(CRMTicketProcessFlag).Name, enu.ToString());
            try
            {
                return rm.GetString(enuName, cInfo); ;
            }
            catch
            {
                throw new Exception("Enum Error");
            }
        }//get_CRMTicketProcessFlag_Description
Exemple #16
0
        public static string GetString(string strResourceContainer, string strResourceName, System.Reflection.Assembly asmContainer)
        {
            try
            {
                System.Resources.ResourceManager rm = new System.Resources.ResourceManager(asmContainer.GetName().Name + "." + strResourceContainer, asmContainer);

                return rm.GetString(strResourceName);
            }
            catch (Exception e)
            {
                ShowException(e, System.Reflection.Assembly.GetExecutingAssembly().FullName + ".GetString()", null);
                return String.Empty;
            }
        }
        }//DataAuthType

        public static string get_DataAuthType_Description(DataAuthType enu)
        {
            System.Resources.ResourceManager rm = new System.Resources.ResourceManager(typeof(MaintainDataAuthType));
            System.Globalization.CultureInfo cInfo = System.Globalization.CultureInfo.CurrentCulture;
            string enuName = string.Format("{0}.{1}.{2}", typeof(DataAuthType).BaseType.Name, typeof(DataAuthType).Name, enu.ToString());
            try
            {
                return rm.GetString(enuName, cInfo); ;
            }
            catch (Exception ex)
            {
                throw new Exception("Enum Error");
            }
        }//get_DataAuthType _Description
Exemple #18
0
        public MainForm()
        {
            //Locales
            this.Locales = new System.Resources.ResourceManager("ItemCreator.Resources.winFormStrings", typeof(MainForm).Assembly);

            SplashScreen splash = new SplashScreen();
            splash.Show();
            splash.updateState(Locales.GetString("splash_loading"), 0);

            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(Properties.Settings.Default.language);
            InitializeComponent();

            //Set language Menu
            this.setLanguagesMenu();

            //Hole alle Daten aus base.xml und lade sie in das From
            splash.updateState(Locales.GetString("splash_loading_xml"), 25);
            bool loadComboBoxesCheck = loadComboBoxes();
            //if (loadComboBoxesCheck == false) Application.ExitThread();

            splash.updateState(Locales.GetString("splash_loading_preferences"), 50);
            loadPreferences();

            splash.updateState(Locales.GetString("splash_checking_mysql_settings"), 75);
            setMysqlConnection();

            //Überprüfe nach neuen Verisonen wenn erwünscht
            if (basicRow.checkApplicationUpdates || basicRow.checkDatabaseUpdates)
            {
                splash.updateState(Locales.GetString("splash_checking_versions"), 85);

                updaterForm updater = new updaterForm(this);
                updater.checkVersions();
                if ((basicRow.checkApplicationUpdates && updater.IsNewApplicationVersionAvailable()) || (basicRow.checkDatabaseUpdates && updater.IsNewDatabaseUpdateAvailable()))
                {
                    //Message: New versions of Application or Databases are available!
                    MessageBox.Show(Locales.GetString("updater_new_versions_are_available"), Locales.GetString("updater_new_versions_are_available_title"), MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                updater.Dispose();
            }

            splash.updateState(Locales.GetString("splash_starting"), 100);
            splash.Close();
            splash.Dispose();

            this.versionInformation.Text = "v" + Application.ProductVersion;
        }
Exemple #19
0
 GetBamDirectory()
 {
     var bamAssembly = System.Reflection.Assembly.GetEntryAssembly();
     var rm = new System.Resources.ResourceManager(System.String.Format("{0}.PackageInfoResources", bamAssembly.GetName().Name), bamAssembly);
     // TODO: would be nice to check in advance if any exist
     try
     {
         return rm.GetString("BamInstallDir");
     }
     catch (System.Resources.MissingManifestResourceException)
     {
         // this assumes running an executable from the BAM! installation folder
         return System.IO.Path.GetDirectoryName(bamAssembly.Location);
     }
 }
        public AktivniClanoviIzvestaj(DateTime from, DateTime to)
        {
            fromDate = from.Date;
            toDate = to.Date;

            System.Resources.ResourceManager resourceManager = new
                System.Resources.ResourceManager("Soko.Resources.PreviewResursi", this.GetType().Assembly);

            Title = resourceManager.GetString("akt_clan_izvestaj_title");
            SubTitle = fromDate.ToShortDateString() + " - " + toDate.ToShortDateString();
            DocumentName = Title;

            Font itemFont = new Font("Courier New", 9);
            Font itemsHeaderFont = new Font("Courier New", 9);
            lista = new AktivniClanoviLista(fromDate, toDate, this, 1, 0f, itemFont, itemsHeaderFont);
        }
        public DnevniPrihodiKategorijeIzvestaj(DateTime dat)
        {
            datum = dat.Date;

            System.Resources.ResourceManager resourceManager = new
                System.Resources.ResourceManager("Soko.Resources.PreviewResursi", this.GetType().Assembly);
            Title = resourceManager.GetString("prihodi_izvestaj_dnevni_kategorije_title");
            SubTitle = datum.ToShortDateString();
            DocumentName = Title;

            Font itemFont = new Font("Times New Roman", 15);
            Font itemsHeaderFont = new Font("Times New Roman", 12);
            lista = new DnevniPrihodiKategorijeLista(datum,
                this, 1, 0f, itemFont, itemsHeaderFont);

            createFormats();
            createFonts();
        }
Exemple #22
0
 public NewiFolder()
 {
     InitializeComponent();
        int start = iFolderOverview.Text.IndexOf( "[hyperlink]" );
        if (start != -1)
        {
     System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager(typeof(NewiFolder));
     string s = resourceManager.GetString( "[hyperlink]" );
     iFolderOverview.Text = iFolderOverview.Text.Replace( "[hyperlink]", s );
     iFolderOverview.LinkArea = new LinkArea(start, s.Length );
        }
        else
        {
     iFolderOverview.LinkArea = new LinkArea(0, 0);
        }
        this.StartPosition = FormStartPosition.CenterScreen;
        migrate = false;
 }
        public static string GetResourceString(string resourceName, System.Reflection.Assembly assembly, Enum en)
        {
            Type type = en.GetType();
            System.Reflection.MemberInfo[] memInfo = type.GetMember(en.ToString());

            if (memInfo != null && memInfo.Length > 0)
            {
                object[] attrs = Attribute.GetCustomAttributes(memInfo[0], typeof(ResourceStringAttribute), false);

                if (attrs != null && attrs.Length > 0)
                {
                    System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager(resourceName, assembly);
                    return resourceManager.GetString(((ResourceStringAttribute)attrs[0]).ResourceKey);
                }
            }

            return en.ToString();
        }
Exemple #24
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(References));
			this.detail = new DataDynamics.ActiveReports.Detail();
			this.richTextBox1 = new DataDynamics.ActiveReports.RichTextBox();
			((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
			// 
			// detail
			// 
			this.detail.ColumnSpacing = 0F;
			this.detail.Controls.AddRange(new DataDynamics.ActiveReports.ARControl[] {
            this.richTextBox1});
			this.detail.Height = 0.5624999F;
			this.detail.Name = "detail";
			this.detail.Format += new System.EventHandler(this.detail_Format);
			// 
			// richTextBox1
			// 
			this.richTextBox1.AutoReplaceFields = true;
			this.richTextBox1.DataField = "Reference";
			this.richTextBox1.Font = new System.Drawing.Font("Arial", 10F);
			this.richTextBox1.Height = 0.271F;
			this.richTextBox1.Left = 0.052F;
			this.richTextBox1.Name = "richTextBox1";
			this.richTextBox1.RTF = resources.GetString("richTextBox1.RTF");
			this.richTextBox1.Top = 0F;
			this.richTextBox1.Width = 7.354F;
			// 
			// References
			// 
			this.MasterReport = false;
			this.PageSettings.PaperHeight = 11F;
			this.PageSettings.PaperWidth = 8.5F;
			this.PrintWidth = 7.47925F;
			this.Sections.Add(this.detail);
			this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" +
						"l; font-size: 10pt; color: Black", "Normal"));
			this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-size: 16pt; font-weight: bold", "Heading1", "Normal"));
			this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Times New Roman; font-size: 14pt; font-weight: bold; font-style: ita" +
						"lic", "Heading2", "Normal"));
			this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-size: 13pt; font-weight: bold", "Heading3", "Normal"));
			((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
Exemple #25
0
 public void TestFsaNodeAddChildOverriddenByExistingMatch()
 {
     AimlBot.Normalize.Utils.FsaNode fsagraph = new AimlBot.Normalize.Utils.FsaNode(0);
     AimlBot.Normalize.Utils.FsaNode leaf1 = fsagraph.Add("abc", "xyz");
     string msg = string.Empty;
     Exception e = null;
     try
     {
         AimlBot.Normalize.Utils.FsaNode leaf2 = fsagraph.Add("abcdefg", "tuvwxyz");
     }
     catch (Exception ex)
     {
         e = ex;
         msg = ex.Message;
     }
     Assert.AreEqual(true, (e is AimlBot.Normalize.NormalizationException));
     rm = new System.Resources.ResourceManager("AimlBot.Normalize.Utils.FsaNodeResources", System.Reflection.Assembly.GetAssembly(leaf1.GetType()));
     Assert.AreEqual(String.Format(rm.GetString("DuplicateSubstitution"), "abcdefg", "tuvwxyz", "abc", "xyz"), msg);
 }
Exemple #26
0
 /// <summary>
 /// This method will return the current culture or neutral culture string 
 /// associated with the resource identifier
 /// </summary>
 /// <param name="resourceId">The resource identifier to use</param>
 /// <param name="rootName">This is the name of the resource file (without the .resx)</param>
 /// <param name="containingAssembly">The assembly that contains the resource file</param>
 /// <returns>The string found or empty if not</returns>
 public static string GetString(string resourceId, string rootName, System.Reflection.Assembly containingAssembly)
 {
     string res = "";
     try
     {
         System.Resources.ResourceManager rm = new System.Resources.ResourceManager(rootName, containingAssembly);
         res = rm.GetString(resourceId, System.Threading.Thread.CurrentThread.CurrentCulture);
         
     }
     catch (System.Resources.MissingManifestResourceException e)
     {
         // Ignore the fact we are missing the resource
         // The following is for the developer because the resource file should have
         // been compiled within the assembly anyway!!!
         StringBuilder sb = new StringBuilder();
         sb.AppendFormat("The rootName [{0}] is missing - {1}", rootName, e.Message);
         System.Diagnostics.Debug.Assert(false, sb.ToString());
     }
     return res;
 }
        public AboutBox(Assembly ProductAssembly, string ProductAboutDescription)
        {
            InitializeComponent();

            var _generalResourceManager = new System.Resources.ResourceManager("PoorMansTSqlFormatterPluginShared.GeneralLanguageContent", System.Reflection.Assembly.GetExecutingAssembly());
            this.Text = String.Format(_generalResourceManager.GetString("AboutTitleLabel"), AssemblyTitle(ProductAssembly));

            this.labelProductName.Text = String.Format("{0}, v{1}", AssemblyProduct(ProductAssembly), AssemblyVersion(ProductAssembly));
            this.labelCopyright.Text = AssemblyCopyright(ProductAssembly);
            this.textBoxDescription.Text = ProductAboutDescription;

            string GPLText = "";

            using (Stream fileStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(typeof(AboutBox).Namespace + ".LICENSE.txt"))
            using (StreamReader textReader = new StreamReader(fileStream, System.Text.Encoding.ASCII))
            {
                GPLText = textReader.ReadToEnd();
            }  

            this.textBoxDescription.Text += System.Environment.NewLine + System.Environment.NewLine + GPLText;
        }
        public MesecniPrihodiIzvestaj(DateTime from, DateTime to)
        {
            fromDate = from;
            toDate = to;

            System.Resources.ResourceManager resourceManager = new
                System.Resources.ResourceManager("Soko.Resources.PreviewResursi", this.GetType().Assembly);
            Title = resourceManager.GetString("prihodi_izvestaj_mesecni_title");
            SubTitle = fromDate.ToShortDateString() + " - " +
                toDate.ToShortDateString();
            DocumentName = Title;

            ukupanPrihodCaptionFont = new Font("Arial", 10);
            ukupanPrihodIznosFont = new Font("Courier New", 10, FontStyle.Bold);

            Font itemFont = new Font("Courier New", 9);
            Font itemsHeaderFont = new Font("Courier New", 9);
            Font groupTitleFont = new Font("Courier New", 10, FontStyle.Bold);
            lista = new MesecniPrihodiLista(fromDate, toDate, this, 1, 0f,
                itemFont, itemsHeaderFont, groupTitleFont);
        }
        static void Main(string[] args)
        {
            try
            {
                Console.WriteLine("Upišite kraticu jezika:");
                string oznakaJezika = Console.ReadLine();
                System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(oznakaJezika);

                System.Resources.ResourceManager tekstovi = new System.Resources.ResourceManager("Vsite.CSharp.Poruke", System.Reflection.Assembly.GetExecutingAssembly());

                string poruka = tekstovi.GetString("Pozdrav", ci);
                Console.WriteLine(poruka);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            Console.WriteLine("GOTOVO!!!");
            Console.ReadKey();
        }
        public AktivniClanoviGrupeIzvestaj(DateTime from, DateTime to, 
            List<Grupa> grupe)
        {
            this.fromDate = from.Date;
            this.toDate = to.Date;
            this.grupe = grupe;

            System.Resources.ResourceManager resourceManager = new
                System.Resources.ResourceManager("Soko.Resources.PreviewResursi", this.GetType().Assembly);

            Title = resourceManager.GetString("akt_clan_izvestaj_title") + " po grupama";
            SubTitle = fromDate.ToShortDateString() + " - " + toDate.ToShortDateString();
            DocumentName = Title;

            ukupnoClanovaCaptionFont = new Font("Arial", 10);
            ukupnoClanovaBrojFont = new Font("Courier New", 10, FontStyle.Bold);

            Font itemFont = new Font("Courier New", 9);
            Font itemsHeaderFont = null;
            Font groupTitleFont = new Font("Courier New", 10, FontStyle.Bold);
            lista = new AktivniClanoviGrupeLista(fromDate, toDate, grupe, this, 1, 0f,
                itemFont, itemsHeaderFont, groupTitleFont);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(UserRoleForm));
     this.groupBox1     = new System.Windows.Forms.GroupBox();
     this.cancelButton  = new System.Windows.Forms.Button();
     this.okButton      = new System.Windows.Forms.Button();
     this.rolesComboBox = new System.Windows.Forms.ComboBox();
     this.label2        = new System.Windows.Forms.Label();
     this.usersComboBox = new System.Windows.Forms.ComboBox();
     this.label1        = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.AccessibleDescription = resources.GetString("groupBox1.AccessibleDescription");
     this.groupBox1.AccessibleName        = resources.GetString("groupBox1.AccessibleName");
     this.groupBox1.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("groupBox1.Anchor")));
     this.groupBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("groupBox1.BackgroundImage")));
     this.groupBox1.Controls.Add(this.cancelButton);
     this.groupBox1.Controls.Add(this.okButton);
     this.groupBox1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("groupBox1.Dock")));
     this.groupBox1.Enabled     = ((bool)(resources.GetObject("groupBox1.Enabled")));
     this.groupBox1.FlatStyle   = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Font        = ((System.Drawing.Font)(resources.GetObject("groupBox1.Font")));
     this.groupBox1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("groupBox1.ImeMode")));
     this.groupBox1.Location    = ((System.Drawing.Point)(resources.GetObject("groupBox1.Location")));
     this.groupBox1.Name        = "groupBox1";
     this.groupBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("groupBox1.RightToLeft")));
     this.groupBox1.Size        = ((System.Drawing.Size)(resources.GetObject("groupBox1.Size")));
     this.groupBox1.TabIndex    = ((int)(resources.GetObject("groupBox1.TabIndex")));
     this.groupBox1.TabStop     = false;
     this.groupBox1.Text        = resources.GetString("groupBox1.Text");
     this.groupBox1.Visible     = ((bool)(resources.GetObject("groupBox1.Visible")));
     //
     // cancelButton
     //
     this.cancelButton.AccessibleDescription = resources.GetString("cancelButton.AccessibleDescription");
     this.cancelButton.AccessibleName        = resources.GetString("cancelButton.AccessibleName");
     this.cancelButton.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cancelButton.Anchor")));
     this.cancelButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cancelButton.BackgroundImage")));
     this.cancelButton.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("cancelButton.Dock")));
     this.cancelButton.Enabled         = ((bool)(resources.GetObject("cancelButton.Enabled")));
     this.cancelButton.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("cancelButton.FlatStyle")));
     this.cancelButton.Font            = ((System.Drawing.Font)(resources.GetObject("cancelButton.Font")));
     this.cancelButton.Image           = ((System.Drawing.Image)(resources.GetObject("cancelButton.Image")));
     this.cancelButton.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("cancelButton.ImageAlign")));
     this.cancelButton.ImageIndex      = ((int)(resources.GetObject("cancelButton.ImageIndex")));
     this.cancelButton.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("cancelButton.ImeMode")));
     this.cancelButton.Location        = ((System.Drawing.Point)(resources.GetObject("cancelButton.Location")));
     this.cancelButton.Name            = "cancelButton";
     this.cancelButton.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cancelButton.RightToLeft")));
     this.cancelButton.Size            = ((System.Drawing.Size)(resources.GetObject("cancelButton.Size")));
     this.cancelButton.TabIndex        = ((int)(resources.GetObject("cancelButton.TabIndex")));
     this.cancelButton.Text            = resources.GetString("cancelButton.Text");
     this.cancelButton.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("cancelButton.TextAlign")));
     this.cancelButton.Visible         = ((bool)(resources.GetObject("cancelButton.Visible")));
     this.cancelButton.Click          += new System.EventHandler(this.cancelButton_Click);
     //
     // okButton
     //
     this.okButton.AccessibleDescription = resources.GetString("okButton.AccessibleDescription");
     this.okButton.AccessibleName        = resources.GetString("okButton.AccessibleName");
     this.okButton.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("okButton.Anchor")));
     this.okButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("okButton.BackgroundImage")));
     this.okButton.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("okButton.Dock")));
     this.okButton.Enabled         = ((bool)(resources.GetObject("okButton.Enabled")));
     this.okButton.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("okButton.FlatStyle")));
     this.okButton.Font            = ((System.Drawing.Font)(resources.GetObject("okButton.Font")));
     this.okButton.Image           = ((System.Drawing.Image)(resources.GetObject("okButton.Image")));
     this.okButton.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("okButton.ImageAlign")));
     this.okButton.ImageIndex      = ((int)(resources.GetObject("okButton.ImageIndex")));
     this.okButton.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("okButton.ImeMode")));
     this.okButton.Location        = ((System.Drawing.Point)(resources.GetObject("okButton.Location")));
     this.okButton.Name            = "okButton";
     this.okButton.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("okButton.RightToLeft")));
     this.okButton.Size            = ((System.Drawing.Size)(resources.GetObject("okButton.Size")));
     this.okButton.TabIndex        = ((int)(resources.GetObject("okButton.TabIndex")));
     this.okButton.Text            = resources.GetString("okButton.Text");
     this.okButton.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("okButton.TextAlign")));
     this.okButton.Visible         = ((bool)(resources.GetObject("okButton.Visible")));
     this.okButton.Click          += new System.EventHandler(this.okButton_Click);
     //
     // rolesComboBox
     //
     this.rolesComboBox.AccessibleDescription = resources.GetString("rolesComboBox.AccessibleDescription");
     this.rolesComboBox.AccessibleName        = resources.GetString("rolesComboBox.AccessibleName");
     this.rolesComboBox.Anchor           = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("rolesComboBox.Anchor")));
     this.rolesComboBox.BackgroundImage  = ((System.Drawing.Image)(resources.GetObject("rolesComboBox.BackgroundImage")));
     this.rolesComboBox.Dock             = ((System.Windows.Forms.DockStyle)(resources.GetObject("rolesComboBox.Dock")));
     this.rolesComboBox.DropDownStyle    = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.rolesComboBox.Enabled          = ((bool)(resources.GetObject("rolesComboBox.Enabled")));
     this.rolesComboBox.Font             = ((System.Drawing.Font)(resources.GetObject("rolesComboBox.Font")));
     this.rolesComboBox.ImeMode          = ((System.Windows.Forms.ImeMode)(resources.GetObject("rolesComboBox.ImeMode")));
     this.rolesComboBox.IntegralHeight   = ((bool)(resources.GetObject("rolesComboBox.IntegralHeight")));
     this.rolesComboBox.ItemHeight       = ((int)(resources.GetObject("rolesComboBox.ItemHeight")));
     this.rolesComboBox.Location         = ((System.Drawing.Point)(resources.GetObject("rolesComboBox.Location")));
     this.rolesComboBox.MaxDropDownItems = ((int)(resources.GetObject("rolesComboBox.MaxDropDownItems")));
     this.rolesComboBox.MaxLength        = ((int)(resources.GetObject("rolesComboBox.MaxLength")));
     this.rolesComboBox.Name             = "rolesComboBox";
     this.rolesComboBox.RightToLeft      = ((System.Windows.Forms.RightToLeft)(resources.GetObject("rolesComboBox.RightToLeft")));
     this.rolesComboBox.Size             = ((System.Drawing.Size)(resources.GetObject("rolesComboBox.Size")));
     this.rolesComboBox.TabIndex         = ((int)(resources.GetObject("rolesComboBox.TabIndex")));
     this.rolesComboBox.Text             = resources.GetString("rolesComboBox.Text");
     this.rolesComboBox.Visible          = ((bool)(resources.GetObject("rolesComboBox.Visible")));
     //
     // label2
     //
     this.label2.AccessibleDescription = resources.GetString("label2.AccessibleDescription");
     this.label2.AccessibleName        = resources.GetString("label2.AccessibleName");
     this.label2.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label2.Anchor")));
     this.label2.AutoSize    = ((bool)(resources.GetObject("label2.AutoSize")));
     this.label2.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label2.Dock")));
     this.label2.Enabled     = ((bool)(resources.GetObject("label2.Enabled")));
     this.label2.Font        = ((System.Drawing.Font)(resources.GetObject("label2.Font")));
     this.label2.Image       = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
     this.label2.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.ImageAlign")));
     this.label2.ImageIndex  = ((int)(resources.GetObject("label2.ImageIndex")));
     this.label2.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label2.ImeMode")));
     this.label2.Location    = ((System.Drawing.Point)(resources.GetObject("label2.Location")));
     this.label2.Name        = "label2";
     this.label2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label2.RightToLeft")));
     this.label2.Size        = ((System.Drawing.Size)(resources.GetObject("label2.Size")));
     this.label2.TabIndex    = ((int)(resources.GetObject("label2.TabIndex")));
     this.label2.Text        = resources.GetString("label2.Text");
     this.label2.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.TextAlign")));
     this.label2.Visible     = ((bool)(resources.GetObject("label2.Visible")));
     //
     // usersComboBox
     //
     this.usersComboBox.AccessibleDescription = resources.GetString("usersComboBox.AccessibleDescription");
     this.usersComboBox.AccessibleName        = resources.GetString("usersComboBox.AccessibleName");
     this.usersComboBox.Anchor                = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("usersComboBox.Anchor")));
     this.usersComboBox.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("usersComboBox.BackgroundImage")));
     this.usersComboBox.Dock                  = ((System.Windows.Forms.DockStyle)(resources.GetObject("usersComboBox.Dock")));
     this.usersComboBox.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.usersComboBox.Enabled               = ((bool)(resources.GetObject("usersComboBox.Enabled")));
     this.usersComboBox.Font                  = ((System.Drawing.Font)(resources.GetObject("usersComboBox.Font")));
     this.usersComboBox.ImeMode               = ((System.Windows.Forms.ImeMode)(resources.GetObject("usersComboBox.ImeMode")));
     this.usersComboBox.IntegralHeight        = ((bool)(resources.GetObject("usersComboBox.IntegralHeight")));
     this.usersComboBox.ItemHeight            = ((int)(resources.GetObject("usersComboBox.ItemHeight")));
     this.usersComboBox.Location              = ((System.Drawing.Point)(resources.GetObject("usersComboBox.Location")));
     this.usersComboBox.MaxDropDownItems      = ((int)(resources.GetObject("usersComboBox.MaxDropDownItems")));
     this.usersComboBox.MaxLength             = ((int)(resources.GetObject("usersComboBox.MaxLength")));
     this.usersComboBox.Name                  = "usersComboBox";
     this.usersComboBox.RightToLeft           = ((System.Windows.Forms.RightToLeft)(resources.GetObject("usersComboBox.RightToLeft")));
     this.usersComboBox.Size                  = ((System.Drawing.Size)(resources.GetObject("usersComboBox.Size")));
     this.usersComboBox.TabIndex              = ((int)(resources.GetObject("usersComboBox.TabIndex")));
     this.usersComboBox.Text                  = resources.GetString("usersComboBox.Text");
     this.usersComboBox.Visible               = ((bool)(resources.GetObject("usersComboBox.Visible")));
     this.usersComboBox.SelectedIndexChanged += new System.EventHandler(this.usersComboBox_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
     this.label1.AccessibleName        = resources.GetString("label1.AccessibleName");
     this.label1.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
     this.label1.AutoSize    = ((bool)(resources.GetObject("label1.AutoSize")));
     this.label1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
     this.label1.Enabled     = ((bool)(resources.GetObject("label1.Enabled")));
     this.label1.Font        = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
     this.label1.Image       = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
     this.label1.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
     this.label1.ImageIndex  = ((int)(resources.GetObject("label1.ImageIndex")));
     this.label1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
     this.label1.Location    = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
     this.label1.Name        = "label1";
     this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
     this.label1.Size        = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
     this.label1.TabIndex    = ((int)(resources.GetObject("label1.TabIndex")));
     this.label1.Text        = resources.GetString("label1.Text");
     this.label1.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
     this.label1.Visible     = ((bool)(resources.GetObject("label1.Visible")));
     //
     // UserRoleForm
     //
     this.AcceptButton          = this.okButton;
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.CancelButton          = this.cancelButton;
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.rolesComboBox);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.usersComboBox);
     this.Controls.Add(this.label1);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox     = false;
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimizeBox     = false;
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "UserRoleForm";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #32
0
        internal static void Main(string[] args)
        {
            string arg = string.Join(" ", args);

            if (arg.Length < PREFIX.Length)
            {
                Forms.MessageBox.Show("Missing Argument. exitting...", TITLE, Forms.MessageBoxButtons.OK, Forms.MessageBoxIcon.Exclamation);
                return;
            }

            arg  = arg.Substring(PREFIX.Length); // trim a prefix
            args = arg.Split('#');
            string path = args[0];

#if !DEBUG
            // Dialog
            System.Reflection.Assembly asm;
            asm = System.Reflection.Assembly.GetExecutingAssembly();
            System.Resources.ResourceManager rm =
                new System.Resources.ResourceManager(
                    asm.GetName().Name + ".Properties.Resources", asm);

            string guardDialogMessage = rm.GetString("GuardDialog");
#endif

            try
            {
                if (path.EndsWith(".xlsx"))
                {
#if !DEBUG
                    Forms.DialogResult result = Forms.MessageBox.Show(
                        String.Format(guardDialogMessage, "Microsoft Excel", arg),
                        TITLE, Forms.MessageBoxButtons.YesNo,
                        Forms.MessageBoxIcon.Exclamation,
                        Forms.MessageBoxDefaultButton.Button2);
                    if (result == Forms.DialogResult.No)
                    {
                        return;
                    }
#endif
                    Excel._Application appl      = GetExcel();
                    Excel.Workbooks    workbooks = appl.Workbooks;
                    Excel.Workbook     workbook;
                    appl.Visible = true;
                    if (!path.Contains("%"))
                    {
                        workbook = workbooks.Open(path);
                    }
                    else
                    {
                        path     = Uri.UnescapeDataString(path);
                        workbook = workbooks.Open(path);
                    }

                    if (args.Length > 0) // if fragment exists
                    {
                        if (Exists(appl.Names, args[1]))
                        {
                            appl.Goto(args[1]);
                        }
                        else
                        {
                            SelectFragment(workbook, args[1]);
                        }
                    }
                    // bring up
                    workbook.Activate();
                    SetForegroundWindow(appl.Hwnd);
                }
                else if (path.EndsWith(".pptx"))
                {
#if !DEBUG
                    Forms.DialogResult result = Forms.MessageBox.Show(
                        String.Format(guardDialogMessage, "Microsoft PowerPoint", arg),
                        TITLE, Forms.MessageBoxButtons.YesNo,
                        Forms.MessageBoxIcon.Exclamation,
                        Forms.MessageBoxDefaultButton.Button2);
                    if (result == Forms.DialogResult.No)
                    {
                        return;
                    }
#endif
                    PowerPoint._Application  appl = GetPowerPoint();
                    PowerPoint.Presentations ppts = appl.Presentations;
                    PowerPoint.Presentation  ppt;
                    if (!path.Contains("%"))
                    {
                        ppt = ppts.Open(path);
                    }
                    else
                    {
                        path = Uri.UnescapeDataString(path);
                        ppt  = ppts.Open(path);
                    }

                    if (args.Length > 0) // if fragment exists
                    {
                        SelectFragment(ppt, args[1]);
                    }
                    // bring up
                    appl.Activate();
                    appl.Visible = MsoTriState.msoTrue;
                    SetForegroundWindow(appl.HWND);
                }
                else
                { // TODO: add another suffixes supporting
                    Forms.MessageBox.Show("only .xlsx is supported. exitting.", TITLE, Forms.MessageBoxButtons.OK, Forms.MessageBoxIcon.Exclamation);
                    return;
                }
            }
            catch (COMException ex)
            {
                Forms.MessageBox.Show(
                    (GetExcel().Name.Equals(ex.Source) ? ex.Message : "ファイルを開けませんでした。")
#if DEBUG
                    + "\r\n\r\n" + ex.StackTrace
#endif
                    , TITLE, Forms.MessageBoxButtons.OK, Forms.MessageBoxIcon.Exclamation);
            }
        }
Exemple #33
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutForm));
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.linkLabel1  = new System.Windows.Forms.LinkLabel();
     this.okButton    = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // pictureBox1
     //
     this.pictureBox1.AccessibleDescription = resources.GetString("pictureBox1.AccessibleDescription");
     this.pictureBox1.AccessibleName        = resources.GetString("pictureBox1.AccessibleName");
     this.pictureBox1.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("pictureBox1.Anchor")));
     this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
     this.pictureBox1.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("pictureBox1.Dock")));
     this.pictureBox1.Enabled         = ((bool)(resources.GetObject("pictureBox1.Enabled")));
     this.pictureBox1.Font            = ((System.Drawing.Font)(resources.GetObject("pictureBox1.Font")));
     this.pictureBox1.Image           = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("pictureBox1.ImeMode")));
     this.pictureBox1.Location        = ((System.Drawing.Point)(resources.GetObject("pictureBox1.Location")));
     this.pictureBox1.Name            = "pictureBox1";
     this.pictureBox1.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("pictureBox1.RightToLeft")));
     this.pictureBox1.Size            = ((System.Drawing.Size)(resources.GetObject("pictureBox1.Size")));
     this.pictureBox1.SizeMode        = ((System.Windows.Forms.PictureBoxSizeMode)(resources.GetObject("pictureBox1.SizeMode")));
     this.pictureBox1.TabIndex        = ((int)(resources.GetObject("pictureBox1.TabIndex")));
     this.pictureBox1.TabStop         = false;
     this.pictureBox1.Text            = resources.GetString("pictureBox1.Text");
     this.pictureBox1.Visible         = ((bool)(resources.GetObject("pictureBox1.Visible")));
     //
     // linkLabel1
     //
     this.linkLabel1.AccessibleDescription = resources.GetString("linkLabel1.AccessibleDescription");
     this.linkLabel1.AccessibleName        = resources.GetString("linkLabel1.AccessibleName");
     this.linkLabel1.Anchor       = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("linkLabel1.Anchor")));
     this.linkLabel1.AutoSize     = ((bool)(resources.GetObject("linkLabel1.AutoSize")));
     this.linkLabel1.Dock         = ((System.Windows.Forms.DockStyle)(resources.GetObject("linkLabel1.Dock")));
     this.linkLabel1.Enabled      = ((bool)(resources.GetObject("linkLabel1.Enabled")));
     this.linkLabel1.Font         = ((System.Drawing.Font)(resources.GetObject("linkLabel1.Font")));
     this.linkLabel1.Image        = ((System.Drawing.Image)(resources.GetObject("linkLabel1.Image")));
     this.linkLabel1.ImageAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("linkLabel1.ImageAlign")));
     this.linkLabel1.ImageIndex   = ((int)(resources.GetObject("linkLabel1.ImageIndex")));
     this.linkLabel1.ImeMode      = ((System.Windows.Forms.ImeMode)(resources.GetObject("linkLabel1.ImeMode")));
     this.linkLabel1.LinkArea     = ((System.Windows.Forms.LinkArea)(resources.GetObject("linkLabel1.LinkArea")));
     this.linkLabel1.Location     = ((System.Drawing.Point)(resources.GetObject("linkLabel1.Location")));
     this.linkLabel1.Name         = "linkLabel1";
     this.linkLabel1.RightToLeft  = ((System.Windows.Forms.RightToLeft)(resources.GetObject("linkLabel1.RightToLeft")));
     this.linkLabel1.Size         = ((System.Drawing.Size)(resources.GetObject("linkLabel1.Size")));
     this.linkLabel1.TabIndex     = ((int)(resources.GetObject("linkLabel1.TabIndex")));
     this.linkLabel1.TabStop      = true;
     this.linkLabel1.Text         = resources.GetString("linkLabel1.Text");
     this.linkLabel1.TextAlign    = ((System.Drawing.ContentAlignment)(resources.GetObject("linkLabel1.TextAlign")));
     this.linkLabel1.Visible      = ((bool)(resources.GetObject("linkLabel1.Visible")));
     this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OnLinkClick);
     //
     // okButton
     //
     this.okButton.AccessibleDescription = resources.GetString("okButton.AccessibleDescription");
     this.okButton.AccessibleName        = resources.GetString("okButton.AccessibleName");
     this.okButton.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("okButton.Anchor")));
     this.okButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("okButton.BackgroundImage")));
     this.okButton.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("okButton.Dock")));
     this.okButton.Enabled         = ((bool)(resources.GetObject("okButton.Enabled")));
     this.okButton.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("okButton.FlatStyle")));
     this.okButton.Font            = ((System.Drawing.Font)(resources.GetObject("okButton.Font")));
     this.okButton.Image           = ((System.Drawing.Image)(resources.GetObject("okButton.Image")));
     this.okButton.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("okButton.ImageAlign")));
     this.okButton.ImageIndex      = ((int)(resources.GetObject("okButton.ImageIndex")));
     this.okButton.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("okButton.ImeMode")));
     this.okButton.Location        = ((System.Drawing.Point)(resources.GetObject("okButton.Location")));
     this.okButton.Name            = "okButton";
     this.okButton.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("okButton.RightToLeft")));
     this.okButton.Size            = ((System.Drawing.Size)(resources.GetObject("okButton.Size")));
     this.okButton.TabIndex        = ((int)(resources.GetObject("okButton.TabIndex")));
     this.okButton.Text            = resources.GetString("okButton.Text");
     this.okButton.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("okButton.TextAlign")));
     this.okButton.Visible         = ((bool)(resources.GetObject("okButton.Visible")));
     this.okButton.Click          += new System.EventHandler(this.OnOkButtonClick);
     //
     // AboutForm
     //
     this.AcceptButton          = this.okButton;
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.okButton);
     this.Controls.Add(this.linkLabel1);
     this.Controls.Add(this.pictureBox1);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox     = false;
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimizeBox     = false;
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "AboutForm";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.ShowInTaskbar   = false;
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.Load           += new System.EventHandler(this.OnFormLoad);
     this.ResumeLayout(false);
 }
Exemple #34
0
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PalettePanel));
     this.Picture2            = new System.Windows.Forms.PictureBox();
     this.Picture2.Paint     += new System.Windows.Forms.PaintEventHandler(Picture2_Paint);
     this.TextColor           = new System.Windows.Forms.TextBox();
     this.Picture1            = new System.Windows.Forms.PictureBox();
     this.Picture1.MouseMove += new System.Windows.Forms.MouseEventHandler(Picture1_MouseMove);
     this.Picture1.Paint     += new System.Windows.Forms.PaintEventHandler(Picture1_Paint);
     this.Label1              = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     //Picture2
     //
     this.Picture2.AccessibleDescription = resources.GetString("Picture2.AccessibleDescription");
     this.Picture2.AccessibleName        = resources.GetString("Picture2.AccessibleName");
     this.Picture2.Anchor          = (System.Windows.Forms.AnchorStyles)resources.GetObject("Picture2.Anchor");
     this.Picture2.BackgroundImage = (System.Drawing.Image)resources.GetObject("Picture2.BackgroundImage");
     this.Picture2.BorderStyle     = System.Windows.Forms.BorderStyle.Fixed3D;
     this.Picture2.Dock            = (System.Windows.Forms.DockStyle)resources.GetObject("Picture2.Dock");
     this.Picture2.Enabled         = System.Convert.ToBoolean(resources.GetObject("Picture2.Enabled"));
     this.Picture2.Font            = (System.Drawing.Font)resources.GetObject("Picture2.Font");
     this.Picture2.Image           = (System.Drawing.Image)resources.GetObject("Picture2.Image");
     this.Picture2.ImeMode         = (System.Windows.Forms.ImeMode)resources.GetObject("Picture2.ImeMode");
     this.Picture2.Location        = (System.Drawing.Point)resources.GetObject("Picture2.Location");
     this.Picture2.Name            = "Picture2";
     this.Picture2.RightToLeft     = (System.Windows.Forms.RightToLeft)resources.GetObject("Picture2.RightToLeft");
     this.Picture2.Size            = (System.Drawing.Size)resources.GetObject("Picture2.Size");
     this.Picture2.SizeMode        = (System.Windows.Forms.PictureBoxSizeMode)resources.GetObject("Picture2.SizeMode");
     this.Picture2.TabIndex        = System.Convert.ToInt32(resources.GetObject("Picture2.TabIndex"));
     this.Picture2.TabStop         = false;
     this.Picture2.Text            = resources.GetString("Picture2.Text");
     this.Picture2.Visible         = System.Convert.ToBoolean(resources.GetObject("Picture2.Visible"));
     //
     //TextColor
     //
     this.TextColor.AcceptsReturn         = true;
     this.TextColor.AccessibleDescription = resources.GetString("TextColor.AccessibleDescription");
     this.TextColor.AccessibleName        = resources.GetString("TextColor.AccessibleName");
     this.TextColor.Anchor          = (System.Windows.Forms.AnchorStyles)resources.GetObject("TextColor.Anchor");
     this.TextColor.AutoSize        = System.Convert.ToBoolean(resources.GetObject("TextColor.AutoSize"));
     this.TextColor.BackgroundImage = (System.Drawing.Image)resources.GetObject("TextColor.BackgroundImage");
     this.TextColor.Dock            = (System.Windows.Forms.DockStyle)resources.GetObject("TextColor.Dock");
     this.TextColor.Enabled         = System.Convert.ToBoolean(resources.GetObject("TextColor.Enabled"));
     this.TextColor.Font            = (System.Drawing.Font)resources.GetObject("TextColor.Font");
     this.TextColor.ImeMode         = (System.Windows.Forms.ImeMode)resources.GetObject("TextColor.ImeMode");
     this.TextColor.Location        = (System.Drawing.Point)resources.GetObject("TextColor.Location");
     this.TextColor.MaxLength       = System.Convert.ToInt32(resources.GetObject("TextColor.MaxLength"));
     this.TextColor.Multiline       = System.Convert.ToBoolean(resources.GetObject("TextColor.Multiline"));
     this.TextColor.Name            = "TextColor";
     this.TextColor.PasswordChar    = System.Convert.ToChar(resources.GetObject("TextColor.PasswordChar"));
     this.TextColor.ReadOnly        = true;
     this.TextColor.RightToLeft     = (System.Windows.Forms.RightToLeft)resources.GetObject("TextColor.RightToLeft");
     this.TextColor.ScrollBars      = (System.Windows.Forms.ScrollBars)resources.GetObject("TextColor.ScrollBars");
     this.TextColor.Size            = (System.Drawing.Size)resources.GetObject("TextColor.Size");
     this.TextColor.TabIndex        = System.Convert.ToInt32(resources.GetObject("TextColor.TabIndex"));
     this.TextColor.Text            = resources.GetString("TextColor.Text");
     this.TextColor.TextAlign       = (System.Windows.Forms.HorizontalAlignment)resources.GetObject("TextColor.TextAlign");
     this.TextColor.Visible         = System.Convert.ToBoolean(resources.GetObject("TextColor.Visible"));
     this.TextColor.WordWrap        = System.Convert.ToBoolean(resources.GetObject("TextColor.WordWrap"));
     //
     //Picture1
     //
     this.Picture1.AccessibleDescription = resources.GetString("Picture1.AccessibleDescription");
     this.Picture1.AccessibleName        = resources.GetString("Picture1.AccessibleName");
     this.Picture1.Anchor          = (System.Windows.Forms.AnchorStyles)resources.GetObject("Picture1.Anchor");
     this.Picture1.BackgroundImage = (System.Drawing.Image)resources.GetObject("Picture1.BackgroundImage");
     this.Picture1.BorderStyle     = System.Windows.Forms.BorderStyle.Fixed3D;
     this.Picture1.Dock            = (System.Windows.Forms.DockStyle)resources.GetObject("Picture1.Dock");
     this.Picture1.Enabled         = System.Convert.ToBoolean(resources.GetObject("Picture1.Enabled"));
     this.Picture1.Font            = (System.Drawing.Font)resources.GetObject("Picture1.Font");
     this.Picture1.Image           = (System.Drawing.Image)resources.GetObject("Picture1.Image");
     this.Picture1.ImeMode         = (System.Windows.Forms.ImeMode)resources.GetObject("Picture1.ImeMode");
     this.Picture1.Location        = (System.Drawing.Point)resources.GetObject("Picture1.Location");
     this.Picture1.Name            = "Picture1";
     this.Picture1.RightToLeft     = (System.Windows.Forms.RightToLeft)resources.GetObject("Picture1.RightToLeft");
     this.Picture1.Size            = (System.Drawing.Size)resources.GetObject("Picture1.Size");
     this.Picture1.SizeMode        = (System.Windows.Forms.PictureBoxSizeMode)resources.GetObject("Picture1.SizeMode");
     this.Picture1.TabIndex        = System.Convert.ToInt32(resources.GetObject("Picture1.TabIndex"));
     this.Picture1.TabStop         = false;
     this.Picture1.Text            = resources.GetString("Picture1.Text");
     this.Picture1.Visible         = System.Convert.ToBoolean(resources.GetObject("Picture1.Visible"));
     //
     //Label1
     //
     this.Label1.AccessibleDescription = resources.GetString("Label1.AccessibleDescription");
     this.Label1.AccessibleName        = resources.GetString("Label1.AccessibleName");
     this.Label1.Anchor      = (System.Windows.Forms.AnchorStyles)resources.GetObject("Label1.Anchor");
     this.Label1.AutoSize    = System.Convert.ToBoolean(resources.GetObject("Label1.AutoSize"));
     this.Label1.Dock        = (System.Windows.Forms.DockStyle)resources.GetObject("Label1.Dock");
     this.Label1.Enabled     = System.Convert.ToBoolean(resources.GetObject("Label1.Enabled"));
     this.Label1.Font        = (System.Drawing.Font)resources.GetObject("Label1.Font");
     this.Label1.Image       = (System.Drawing.Image)resources.GetObject("Label1.Image");
     this.Label1.ImageAlign  = (System.Drawing.ContentAlignment)resources.GetObject("Label1.ImageAlign");
     this.Label1.ImageIndex  = System.Convert.ToInt32(resources.GetObject("Label1.ImageIndex"));
     this.Label1.ImeMode     = (System.Windows.Forms.ImeMode)resources.GetObject("Label1.ImeMode");
     this.Label1.Location    = (System.Drawing.Point)resources.GetObject("Label1.Location");
     this.Label1.Name        = "Label1";
     this.Label1.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("Label1.RightToLeft");
     this.Label1.Size        = (System.Drawing.Size)resources.GetObject("Label1.Size");
     this.Label1.TabIndex    = System.Convert.ToInt32(resources.GetObject("Label1.TabIndex"));
     this.Label1.Text        = resources.GetString("Label1.Text");
     this.Label1.TextAlign   = (System.Drawing.ContentAlignment)resources.GetObject("Label1.TextAlign");
     this.Label1.Visible     = System.Convert.ToBoolean(resources.GetObject("Label1.Visible"));
     //
     //PalettePanel
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScroll            = System.Convert.ToBoolean(resources.GetObject("$this.AutoScroll"));
     this.AutoScrollMargin      = (System.Drawing.Size)resources.GetObject("$this.AutoScrollMargin");
     this.AutoScrollMinSize     = (System.Drawing.Size)resources.GetObject("$this.AutoScrollMinSize");
     this.BackgroundImage       = (System.Drawing.Image)resources.GetObject("$this.BackgroundImage");
     this.Controls.Add(this.Picture2);
     this.Controls.Add(this.TextColor);
     this.Controls.Add(this.Picture1);
     this.Controls.Add(this.Label1);
     this.Enabled     = System.Convert.ToBoolean(resources.GetObject("$this.Enabled"));
     this.Font        = (System.Drawing.Font)resources.GetObject("$this.Font");
     this.ImeMode     = (System.Windows.Forms.ImeMode)resources.GetObject("$this.ImeMode");
     this.Location    = (System.Drawing.Point)resources.GetObject("$this.Location");
     this.Name        = "PalettePanel";
     this.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("$this.RightToLeft");
     this.Size        = (System.Drawing.Size)resources.GetObject("$this.Size");
     this.ResumeLayout(false);
 }
Exemple #35
0
        private static void SignFileInternal(X509Certificate2 cert, Uri timestampUrl, string path, bool targetFrameworkSupportsSha256, System.Resources.ResourceManager resources)
        {
            if (cert == null)
            {
                throw new ArgumentNullException("cert");
            }

            if (String.IsNullOrEmpty(path))
            {
                throw new ArgumentNullException("path");
            }

            if (!File.Exists(path))
            {
                throw new FileNotFoundException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SignTargetNotFound"), path), path);
            }

            bool useSha256 = UseSha256Algorithm(cert) && targetFrameworkSupportsSha256;

            if (PathUtil.IsPEFile(path))
            {
                if (IsCertInStore(cert))
                {
                    SignPEFile(cert, timestampUrl, path, resources, useSha256);
                }
                else
                {
                    throw new InvalidOperationException(resources.GetString("SignFile.CertNotInStore"));
                }
            }
            else
            {
                if (cert.PrivateKey == null)
                {
                    throw new InvalidOperationException(resources.GetString("SignFile.CertMissingPrivateKey"));
                }

                if (cert.PrivateKey.GetType() != typeof(RSACryptoServiceProvider))
                {
                    throw new ApplicationException(resources.GetString("SecurityUtil.OnlyRSACertsAreAllowed"));
                }
                try
                {
                    XmlDocument doc = new XmlDocument();
                    doc.PreserveWhitespace = true;
                    XmlReaderSettings xrSettings = new XmlReaderSettings();
                    xrSettings.DtdProcessing = DtdProcessing.Ignore;
                    using (XmlReader xr = XmlReader.Create(path, xrSettings))
                    {
                        doc.Load(xr);
                    }
                    SignedCmiManifest2       manifest = new SignedCmiManifest2(doc, useSha256);
                    RSACryptoServiceProvider csp;

                    if (useSha256)
                    {
                        csp = SignedCmiManifest2.GetFixedRSACryptoServiceProvider(cert.PrivateKey as RSACryptoServiceProvider, useSha256);
                    }
                    else
                    {
                        csp = cert.PrivateKey as RSACryptoServiceProvider;
                    }

                    CmiManifestSigner2 signer = new CmiManifestSigner2(csp, cert, useSha256);
                    if (timestampUrl == null)
                    {
                        manifest.Sign(signer);
                    }
                    else
                    {
                        manifest.Sign(signer, timestampUrl.ToString());
                    }
                    doc.Save(path);
                }
                catch (Exception ex)
                {
                    int exceptionHR = System.Runtime.InteropServices.Marshal.GetHRForException(ex);
                    if (exceptionHR == -2147012889 || exceptionHR == -2147012867)
                    {
                        throw new ApplicationException(resources.GetString("SecurityUtil.TimestampUrlNotFound"), ex);
                    }
                    throw new ApplicationException(ex.Message, ex);
                }
            }
        }
Exemple #36
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TableGroup));
     this.btnHelp      = new System.Windows.Forms.Button();
     this.btnCancel    = new System.Windows.Forms.Button();
     this.btnSave      = new System.Windows.Forms.Button();
     this.txtGroupName = new System.Windows.Forms.TextBox();
     this.label2       = new System.Windows.Forms.Label();
     this.txtGroupCode = new System.Windows.Forms.TextBox();
     this.label1       = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // btnHelp
     //
     this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
     this.btnHelp.AccessibleName        = resources.GetString("btnHelp.AccessibleName");
     this.btnHelp.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
     this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
     this.btnHelp.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
     this.btnHelp.Enabled         = ((bool)(resources.GetObject("btnHelp.Enabled")));
     this.btnHelp.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
     this.btnHelp.Font            = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
     this.btnHelp.Image           = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
     this.btnHelp.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
     this.btnHelp.ImageIndex      = ((int)(resources.GetObject("btnHelp.ImageIndex")));
     this.btnHelp.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
     this.btnHelp.Location        = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
     this.btnHelp.Name            = "btnHelp";
     this.btnHelp.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
     this.btnHelp.Size            = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
     this.btnHelp.TabIndex        = ((int)(resources.GetObject("btnHelp.TabIndex")));
     this.btnHelp.Text            = resources.GetString("btnHelp.Text");
     this.btnHelp.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
     this.btnHelp.Visible         = ((bool)(resources.GetObject("btnHelp.Visible")));
     this.btnHelp.Click          += new System.EventHandler(this.btnHelp_Click);
     //
     // btnCancel
     //
     this.btnCancel.AccessibleDescription = resources.GetString("btnCancel.AccessibleDescription");
     this.btnCancel.AccessibleName        = resources.GetString("btnCancel.AccessibleName");
     this.btnCancel.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCancel.Anchor")));
     this.btnCancel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCancel.BackgroundImage")));
     this.btnCancel.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCancel.Dock")));
     this.btnCancel.Enabled         = ((bool)(resources.GetObject("btnCancel.Enabled")));
     this.btnCancel.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCancel.FlatStyle")));
     this.btnCancel.Font            = ((System.Drawing.Font)(resources.GetObject("btnCancel.Font")));
     this.btnCancel.Image           = ((System.Drawing.Image)(resources.GetObject("btnCancel.Image")));
     this.btnCancel.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCancel.ImageAlign")));
     this.btnCancel.ImageIndex      = ((int)(resources.GetObject("btnCancel.ImageIndex")));
     this.btnCancel.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCancel.ImeMode")));
     this.btnCancel.Location        = ((System.Drawing.Point)(resources.GetObject("btnCancel.Location")));
     this.btnCancel.Name            = "btnCancel";
     this.btnCancel.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCancel.RightToLeft")));
     this.btnCancel.Size            = ((System.Drawing.Size)(resources.GetObject("btnCancel.Size")));
     this.btnCancel.TabIndex        = ((int)(resources.GetObject("btnCancel.TabIndex")));
     this.btnCancel.Text            = resources.GetString("btnCancel.Text");
     this.btnCancel.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCancel.TextAlign")));
     this.btnCancel.Visible         = ((bool)(resources.GetObject("btnCancel.Visible")));
     this.btnCancel.Click          += new System.EventHandler(this.btnCancel_Click);
     //
     // btnSave
     //
     this.btnSave.AccessibleDescription = resources.GetString("btnSave.AccessibleDescription");
     this.btnSave.AccessibleName        = resources.GetString("btnSave.AccessibleName");
     this.btnSave.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSave.Anchor")));
     this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
     this.btnSave.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSave.Dock")));
     this.btnSave.Enabled         = ((bool)(resources.GetObject("btnSave.Enabled")));
     this.btnSave.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSave.FlatStyle")));
     this.btnSave.Font            = ((System.Drawing.Font)(resources.GetObject("btnSave.Font")));
     this.btnSave.Image           = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
     this.btnSave.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.ImageAlign")));
     this.btnSave.ImageIndex      = ((int)(resources.GetObject("btnSave.ImageIndex")));
     this.btnSave.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSave.ImeMode")));
     this.btnSave.Location        = ((System.Drawing.Point)(resources.GetObject("btnSave.Location")));
     this.btnSave.Name            = "btnSave";
     this.btnSave.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSave.RightToLeft")));
     this.btnSave.Size            = ((System.Drawing.Size)(resources.GetObject("btnSave.Size")));
     this.btnSave.TabIndex        = ((int)(resources.GetObject("btnSave.TabIndex")));
     this.btnSave.Text            = resources.GetString("btnSave.Text");
     this.btnSave.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.TextAlign")));
     this.btnSave.Visible         = ((bool)(resources.GetObject("btnSave.Visible")));
     this.btnSave.Click          += new System.EventHandler(this.btnSave_Click);
     //
     // txtGroupName
     //
     this.txtGroupName.AccessibleDescription = resources.GetString("txtGroupName.AccessibleDescription");
     this.txtGroupName.AccessibleName        = resources.GetString("txtGroupName.AccessibleName");
     this.txtGroupName.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtGroupName.Anchor")));
     this.txtGroupName.AutoSize        = ((bool)(resources.GetObject("txtGroupName.AutoSize")));
     this.txtGroupName.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtGroupName.BackgroundImage")));
     this.txtGroupName.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtGroupName.Dock")));
     this.txtGroupName.Enabled         = ((bool)(resources.GetObject("txtGroupName.Enabled")));
     this.txtGroupName.Font            = ((System.Drawing.Font)(resources.GetObject("txtGroupName.Font")));
     this.txtGroupName.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtGroupName.ImeMode")));
     this.txtGroupName.Location        = ((System.Drawing.Point)(resources.GetObject("txtGroupName.Location")));
     this.txtGroupName.MaxLength       = ((int)(resources.GetObject("txtGroupName.MaxLength")));
     this.txtGroupName.Multiline       = ((bool)(resources.GetObject("txtGroupName.Multiline")));
     this.txtGroupName.Name            = "txtGroupName";
     this.txtGroupName.PasswordChar    = ((char)(resources.GetObject("txtGroupName.PasswordChar")));
     this.txtGroupName.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtGroupName.RightToLeft")));
     this.txtGroupName.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtGroupName.ScrollBars")));
     this.txtGroupName.Size            = ((System.Drawing.Size)(resources.GetObject("txtGroupName.Size")));
     this.txtGroupName.TabIndex        = ((int)(resources.GetObject("txtGroupName.TabIndex")));
     this.txtGroupName.Text            = resources.GetString("txtGroupName.Text");
     this.txtGroupName.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtGroupName.TextAlign")));
     this.txtGroupName.Visible         = ((bool)(resources.GetObject("txtGroupName.Visible")));
     this.txtGroupName.WordWrap        = ((bool)(resources.GetObject("txtGroupName.WordWrap")));
     this.txtGroupName.TextChanged    += new System.EventHandler(this.txtGroupName_TextChanged);
     this.txtGroupName.Leave          += new System.EventHandler(this.OnLeaveControl);
     this.txtGroupName.Enter          += new System.EventHandler(this.OnEnterControl);
     //
     // label2
     //
     this.label2.AccessibleDescription = resources.GetString("label2.AccessibleDescription");
     this.label2.AccessibleName        = resources.GetString("label2.AccessibleName");
     this.label2.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label2.Anchor")));
     this.label2.AutoSize    = ((bool)(resources.GetObject("label2.AutoSize")));
     this.label2.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label2.Dock")));
     this.label2.Enabled     = ((bool)(resources.GetObject("label2.Enabled")));
     this.label2.Font        = ((System.Drawing.Font)(resources.GetObject("label2.Font")));
     this.label2.Image       = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
     this.label2.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.ImageAlign")));
     this.label2.ImageIndex  = ((int)(resources.GetObject("label2.ImageIndex")));
     this.label2.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label2.ImeMode")));
     this.label2.Location    = ((System.Drawing.Point)(resources.GetObject("label2.Location")));
     this.label2.Name        = "label2";
     this.label2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label2.RightToLeft")));
     this.label2.Size        = ((System.Drawing.Size)(resources.GetObject("label2.Size")));
     this.label2.TabIndex    = ((int)(resources.GetObject("label2.TabIndex")));
     this.label2.Text        = resources.GetString("label2.Text");
     this.label2.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.TextAlign")));
     this.label2.Visible     = ((bool)(resources.GetObject("label2.Visible")));
     //
     // txtGroupCode
     //
     this.txtGroupCode.AccessibleDescription = resources.GetString("txtGroupCode.AccessibleDescription");
     this.txtGroupCode.AccessibleName        = resources.GetString("txtGroupCode.AccessibleName");
     this.txtGroupCode.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtGroupCode.Anchor")));
     this.txtGroupCode.AutoSize        = ((bool)(resources.GetObject("txtGroupCode.AutoSize")));
     this.txtGroupCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtGroupCode.BackgroundImage")));
     this.txtGroupCode.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtGroupCode.Dock")));
     this.txtGroupCode.Enabled         = ((bool)(resources.GetObject("txtGroupCode.Enabled")));
     this.txtGroupCode.Font            = ((System.Drawing.Font)(resources.GetObject("txtGroupCode.Font")));
     this.txtGroupCode.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtGroupCode.ImeMode")));
     this.txtGroupCode.Location        = ((System.Drawing.Point)(resources.GetObject("txtGroupCode.Location")));
     this.txtGroupCode.MaxLength       = ((int)(resources.GetObject("txtGroupCode.MaxLength")));
     this.txtGroupCode.Multiline       = ((bool)(resources.GetObject("txtGroupCode.Multiline")));
     this.txtGroupCode.Name            = "txtGroupCode";
     this.txtGroupCode.PasswordChar    = ((char)(resources.GetObject("txtGroupCode.PasswordChar")));
     this.txtGroupCode.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtGroupCode.RightToLeft")));
     this.txtGroupCode.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtGroupCode.ScrollBars")));
     this.txtGroupCode.Size            = ((System.Drawing.Size)(resources.GetObject("txtGroupCode.Size")));
     this.txtGroupCode.TabIndex        = ((int)(resources.GetObject("txtGroupCode.TabIndex")));
     this.txtGroupCode.Text            = resources.GetString("txtGroupCode.Text");
     this.txtGroupCode.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtGroupCode.TextAlign")));
     this.txtGroupCode.Visible         = ((bool)(resources.GetObject("txtGroupCode.Visible")));
     this.txtGroupCode.WordWrap        = ((bool)(resources.GetObject("txtGroupCode.WordWrap")));
     this.txtGroupCode.TextChanged    += new System.EventHandler(this.txtGroupCode_TextChanged);
     this.txtGroupCode.Leave          += new System.EventHandler(this.OnLeaveControl);
     this.txtGroupCode.Enter          += new System.EventHandler(this.OnEnterControl);
     //
     // label1
     //
     this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
     this.label1.AccessibleName        = resources.GetString("label1.AccessibleName");
     this.label1.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
     this.label1.AutoSize    = ((bool)(resources.GetObject("label1.AutoSize")));
     this.label1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
     this.label1.Enabled     = ((bool)(resources.GetObject("label1.Enabled")));
     this.label1.Font        = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
     this.label1.Image       = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
     this.label1.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
     this.label1.ImageIndex  = ((int)(resources.GetObject("label1.ImageIndex")));
     this.label1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
     this.label1.Location    = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
     this.label1.Name        = "label1";
     this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
     this.label1.Size        = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
     this.label1.TabIndex    = ((int)(resources.GetObject("label1.TabIndex")));
     this.label1.Text        = resources.GetString("label1.Text");
     this.label1.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
     this.label1.Visible     = ((bool)(resources.GetObject("label1.Visible")));
     //
     // TableGroup
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.CancelButton          = this.btnCancel;
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.btnHelp);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnSave);
     this.Controls.Add(this.txtGroupName);
     this.Controls.Add(this.txtGroupCode);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Enabled       = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font          = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode       = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location      = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox   = false;
     this.MaximumSize   = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimumSize   = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name          = "TableGroup";
     this.RightToLeft   = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text          = resources.GetString("$this.Text");
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.TableGroup_Closing);
     this.Load         += new System.EventHandler(this.TableGroup_Load);
     this.ResumeLayout(false);
 }
Exemple #37
0
        /// <summary>
        /// Display Error MEssage
        /// </summary>
        /// <param name="ex">Exception</param>
        private void DisplayErrorMesg(Exception ex)
        {
            MyMessageBox mmb;
            string       message;

            System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager(typeof(CreateiFolder));
            System.Resources.ResourceManager resourcemanager = new System.Resources.ResourceManager(typeof(GlobalProperties));
            string caption = resourceManager.GetString("pathInvalidErrorTitle");

            if (ex.Message.IndexOf("InvalidCharactersPath") != -1)
            {
                message = resourceManager.GetString("invalidCharsError");
            }
            else if (ex.Message.IndexOf("AtOrInsideStorePath") != -1)
            {
                message = resourceManager.GetString("pathInStoreError");
            }
            else if (ex.Message.IndexOf("ContainsStorePath") != -1)
            {
                message = resourceManager.GetString("pathContainsStoreError");
            }
            else if (ex.Message.IndexOf("SystemDirectoryPath") != -1)
            {
                message = resourceManager.GetString("systemDirError");
            }
            else if (ex.Message.IndexOf("SystemDrivePath") != -1)
            {
                message = resourceManager.GetString("systemDriveError");
            }
            else if (ex.Message.IndexOf("IncludesWinDirPath") != -1)
            {
                message = resourceManager.GetString("winDirError");
            }
            else if (ex.Message.IndexOf("IncludesProgFilesPath") != -1)
            {
                message = resourceManager.GetString("progFilesDirError");
            }
            else if (ex.Message.IndexOf("ContainsCollectionPath") != -1)
            {
                message = resourceManager.GetString("containsiFolderError");
            }
            else if (ex.Message.IndexOf("AtOrInsideCollectionPath") != -1)
            {
                message = resourceManager.GetString("pathIniFolderError");
            }
            else if (ex.Message.IndexOf("RootOfDrivePath") != -1)
            {
                message = resourceManager.GetString("rootDriveError");
            }
            else if (ex.Message.IndexOf("NotFixedDrivePath") != -1)
            {
                message = resourceManager.GetString("networkPathError");
            }
            else if (ex.Message.IndexOf("PathExists") != -1)
            {
                message = resourcemanager.GetString("pathExistsError");
            }
            else if (this.upload == true)
            {
                message = resourceManager.GetString("iFolderCreateError");
                caption = resourceManager.GetString("errorTitle");
            }
            else
            {
                message = resourceManager.GetString("acceptError");
                caption = resourceManager.GetString("errorTitle");
            }

            mmb = new MyMessageBox(message, caption, string.Empty, MyMessageBoxButtons.OK, MyMessageBoxIcon.Error);
            mmb.ShowDialog();
        }
 private static string GetMessageFromResource(Type ResourceFile, string resourceId)
 {
     System.Resources.ResourceManager obj = new System.Resources.ResourceManager(ResourceFile);
     return(obj.GetString(resourceId));
 }
            public SkinnedMessageBoxForm(Skinning.Skin skin, IWin32Window owner, string message, string caption = "", MessageBoxButtons buttons = MessageBoxButtons.OK, MessageBoxIcon icon = MessageBoxIcon.None, MessageBoxDefaultButton defaultbutton = MessageBoxDefaultButton.Button1, MessageBoxOptions options = 0)
            {
                InitComponentNew();

                //if (owner != null)
                //{
                //    this.Owner = owner;
                //}
                if (owner != null)
                {
                    Owner = Control.FromHandle(owner.Handle).FindForm();
                }
                else
                {
                    Owner = Form.ActiveForm;
                }

                this.Text = caption;

                Padding lblMargin   = new Padding(14, 0, 14, 45);
                Point   lblLocation = new Point(14, 14);
                Size    lblMinSize  = new Size(this.ClientSize.Width - lblLocation.X - lblMargin.Right, 0);
                Size    lblMaxSize  = new Size(600, 0);
                Label   MessageLbl  = new Label()
                {
                    Text = message, AutoSize = true, Margin = lblMargin, Location = lblLocation, MinimumSize = lblMinSize, MaximumSize = lblMaxSize
                };

                Controls.Add(MessageLbl);

                if (buttons == MessageBoxButtons.OK)
                {
                    numbuttons = 1;
                    Button OkBtn = AddBtn(DialogResMgr.GetString("BtnOK"), DialogResult.OK, 0);
                    this.CancelButton = OkBtn;
                    //(not sure why, but this matches official .NET behaviour)
                }
                else if (buttons == MessageBoxButtons.OKCancel)
                {
                    numbuttons = 2;
                    AddBtn(DialogResMgr.GetString("BtnOK"), DialogResult.OK, 0);
                    Button CancelBtn = AddBtn(DialogResMgr.GetString("BtnCancel"), DialogResult.Cancel, 1);
                    this.CancelButton = CancelBtn;
                }
                else if (buttons == MessageBoxButtons.YesNo)
                {
                    numbuttons = 2;
                    AddBtn(DialogResMgr.GetString("BtnYes"), DialogResult.Yes, 0);
                    Button NoBtn = AddBtn(DialogResMgr.GetString("BtnNo"), DialogResult.No, 1);
                    this.CancelButton = NoBtn;
                    //(official .NET doesn't set cancel button, but this seems pretty clear to me...)
                }
                else if (buttons == MessageBoxButtons.RetryCancel)
                {
                    numbuttons = 2;
                    AddBtn(DialogResMgr.GetString("BtnRetry"), DialogResult.Retry, 0);
                    Button CancelBtn = AddBtn(DialogResMgr.GetString("BtnCancel"), DialogResult.Cancel, 1);
                    this.CancelButton = CancelBtn;
                }
                else if (buttons == MessageBoxButtons.YesNoCancel)
                {
                    numbuttons = 3;
                    AddBtn(DialogResMgr.GetString("BtnYes"), DialogResult.Yes, 0);
                    AddBtn(DialogResMgr.GetString("BtnNo"), DialogResult.No, 1);
                    Button CancelBtn = AddBtn(DialogResMgr.GetString("BtnCancel"), DialogResult.Cancel, 2);
                    this.CancelButton = CancelBtn;
                }
                else if (buttons == MessageBoxButtons.AbortRetryIgnore)
                {
                    numbuttons = 3;
                    AddBtn(DialogResMgr.GetString("BtnAbort"), DialogResult.Abort, 0);
                    AddBtn(DialogResMgr.GetString("BtnRetry"), DialogResult.Retry, 1);
                    AddBtn(DialogResMgr.GetString("BtnIgnore"), DialogResult.Ignore, 2);
                    //this.CancelButton = IgnoreBtn;
                    //(official .NET doesn't set cancel button)
                }
                else
                {
                    throw new InvalidEnumArgumentException("buttons", (int)buttons, typeof(MessageBoxButtons));
                }

                if (this.CancelButton == null)
                {
                    this.ControlBox = false;
                }


                if (icon != MessageBoxIcon.None)
                {
                    int iconsize    = 32;
                    int iconpadding = 12;
                    int textpadding = -8;

                    PictureBox iconPB = new PictureBox()
                    {
                        Width = iconsize, Height = iconsize, Top = 10, Left = 10, AccessibleName = "Icon"
                    };

                    // there are many duplicated values:
                    // https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.messageboxicon?view=netframework-4.7.2
                    if (icon == MessageBoxIcon.Error) // also Hand and Stop
                    {
                        Icon erricon = new Icon(SystemIcons.Error, iconsize, iconsize);
                        iconPB.Image = erricon.ToBitmap();
                        iconPB.AccessibleDescription = "Error";
                        //this.Icon = SystemIcons.Error;
                        System.Media.SystemSounds.Hand.Play();
                    }
                    else if (icon == MessageBoxIcon.Question)
                    {
                        Icon qicon = new Icon(SystemIcons.Question, iconsize, iconsize);
                        iconPB.Image = qicon.ToBitmap();
                        iconPB.AccessibleDescription = "Question";
                        //this.Icon = SystemIcons.Question;
                        System.Media.SystemSounds.Question.Play();
                    }
                    else if (icon == MessageBoxIcon.Warning) // also Exclamation
                    {
                        Icon warnicon = new Icon(SystemIcons.Warning, iconsize, iconsize);
                        iconPB.Image = warnicon.ToBitmap();
                        iconPB.AccessibleDescription = "Warning";
                        //this.Icon = SystemIcons.Warning;
                        textpadding -= 2; // triangle shape looks worse without this
                        System.Media.SystemSounds.Exclamation.Play();
                    }
                    else if (icon == MessageBoxIcon.Information) // also Asterisk
                    {
                        Icon infoicon = new Icon(SystemIcons.Information, iconsize, iconsize);
                        iconPB.Image = infoicon.ToBitmap();
                        iconPB.AccessibleDescription = "Information";
                        //this.Icon = SystemIcons.Information;
                        System.Media.SystemSounds.Asterisk.Play();
                    }
                    else
                    {
                        throw new InvalidEnumArgumentException("icon", (int)icon, typeof(MessageBoxIcon));
                    }

                    MessageLbl.MinimumSize = new Size(MessageLbl.MinimumSize.Width - (iconsize + iconpadding + textpadding), MessageLbl.MinimumSize.Height);
                    MessageLbl.Left       += (iconsize + iconpadding + textpadding);
                    Controls.Add(iconPB);
                }

                if (defaultbutton == MessageBoxDefaultButton.Button1)
                {
                    this.AcceptButton = buttonrefs[0];
                    ActiveControl     = buttonrefs[0];
                }
                else if (defaultbutton == MessageBoxDefaultButton.Button2)
                {
                    if (buttonrefs[1] == null)
                    {
                        throw new ArgumentOutOfRangeException("defaultbutton", "defaultbutton cannot be set to a button number that does not exist");
                    }
                    this.AcceptButton = buttonrefs[1];
                    ActiveControl     = buttonrefs[1];
                }
                else if (defaultbutton == MessageBoxDefaultButton.Button3)
                {
                    if (buttonrefs[2] == null)
                    {
                        throw new ArgumentOutOfRangeException("defaultbutton", "defaultbutton cannot be set to a button number that does not exist");
                    }
                    this.AcceptButton = buttonrefs[2];
                    ActiveControl     = buttonrefs[2];
                }
                else
                {
                    throw new InvalidEnumArgumentException("defaultbutton", (int)defaultbutton, typeof(MessageBoxDefaultButton));
                }


                // MessageBoxOptions are more like flags than concrete settings.
                // For ease of use, we assume default value is whatever winforms gives us in current locale -- but we override if any value is set
                if ((options & MessageBoxOptions.RightAlign) == MessageBoxOptions.RightAlign)
                {
                    MessageLbl.TextAlign = ContentAlignment.TopRight;
                }
                else if (options != 0)
                {
                    MessageLbl.TextAlign = ContentAlignment.TopLeft;
                }

                // RtlReading should be what actually affects layout, and RightAlign only affects the text label
                if ((options & MessageBoxOptions.RtlReading) == MessageBoxOptions.RtlReading)
                {
                    foreach (Control control in this.Controls)
                    {
                        control.Left        = this.ClientSize.Width - control.Right;
                        control.RightToLeft = RightToLeft.Yes;
                    }
                    this.RightToLeft       = RightToLeft.Yes;
                    this.RightToLeftLayout = true;
                }
                else if (options != 0)
                {
                    foreach (Control control in this.Controls)
                    {
                        control.RightToLeft = RightToLeft.No;
                    }
                    this.RightToLeft       = RightToLeft.No;
                    this.RightToLeftLayout = false;
                }


                Skinning.SetBackCol(this, skin.UIColours[UIColours.UIColourDefs.Form_BG.TypeName]);
                Skinning.SetForeCol(this, skin.UIColours[UIColours.UIColourDefs.Form_Text.TypeName]);
                Skinning.SetUIStyle(this, skin.UIStyle);

                //Can use this to compare against official .NET
                //DialogResult test = MessageBox.Show("test test test test test test test test test test test test", "", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading);
                //Console.WriteLine(test);
            }
Exemple #40
0
        }// CTrustAppWiz3

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTrustAppWiz3));
            this.m_lblSelectedAssem  = new System.Windows.Forms.Label();
            this.m_txtSelectedAssem  = new System.Windows.Forms.TextBox();
            this.m_lblHowToTrust     = new System.Windows.Forms.Label();
            this.m_radOneAssem       = new System.Windows.Forms.RadioButton();
            this.m_radPublisher      = new System.Windows.Forms.RadioButton();
            this.m_lblPublisher      = new System.Windows.Forms.Label();
            this.m_txtPublisher      = new System.Windows.Forms.TextBox();
            this.m_radStrongName     = new System.Windows.Forms.RadioButton();
            this.m_lblPublicKeyToken = new System.Windows.Forms.Label();
            this.m_txtPublicKeyToken = new System.Windows.Forms.TextBox();
            this.m_chkVersion        = new System.Windows.Forms.CheckBox();
            this.m_txtVersion        = new System.Windows.Forms.TextBox();
            this.m_llblHelp          = new System.Windows.Forms.LinkLabel();
            //
            // m_lblSelectedAssem
            //
            this.m_lblSelectedAssem.AccessibleDescription = ((string)(resources.GetObject("m_lblSelectedAssem.AccessibleDescription")));
            this.m_lblSelectedAssem.AccessibleName        = ((string)(resources.GetObject("m_lblSelectedAssem.AccessibleName")));
            this.m_lblSelectedAssem.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_lblSelectedAssem.Anchor")));
            this.m_lblSelectedAssem.AutoSize    = ((bool)(resources.GetObject("m_lblSelectedAssem.AutoSize")));
            this.m_lblSelectedAssem.Cursor      = ((System.Windows.Forms.Cursor)(resources.GetObject("m_lblSelectedAssem.Cursor")));
            this.m_lblSelectedAssem.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_lblSelectedAssem.Dock")));
            this.m_lblSelectedAssem.Enabled     = ((bool)(resources.GetObject("m_lblSelectedAssem.Enabled")));
            this.m_lblSelectedAssem.Font        = ((System.Drawing.Font)(resources.GetObject("m_lblSelectedAssem.Font")));
            this.m_lblSelectedAssem.Image       = ((System.Drawing.Image)(resources.GetObject("m_lblSelectedAssem.Image")));
            this.m_lblSelectedAssem.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblSelectedAssem.ImageAlign")));
            this.m_lblSelectedAssem.ImageIndex  = ((int)(resources.GetObject("m_lblSelectedAssem.ImageIndex")));
            this.m_lblSelectedAssem.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_lblSelectedAssem.ImeMode")));
            this.m_lblSelectedAssem.Location    = ((System.Drawing.Point)(resources.GetObject("m_lblSelectedAssem.Location")));
            this.m_lblSelectedAssem.Name        = "SelectedAssemblyLabel";
            this.m_lblSelectedAssem.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_lblSelectedAssem.RightToLeft")));
            this.m_lblSelectedAssem.Size        = ((System.Drawing.Size)(resources.GetObject("m_lblSelectedAssem.Size")));
            this.m_lblSelectedAssem.Text        = resources.GetString("m_lblSelectedAssem.Text");
            this.m_lblSelectedAssem.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblSelectedAssem.TextAlign")));
            this.m_lblSelectedAssem.Visible     = ((bool)(resources.GetObject("m_lblSelectedAssem.Visible")));
            //
            // m_txtSelectedAssem
            //
            this.m_txtSelectedAssem.AccessibleDescription = ((string)(resources.GetObject("m_txtSelectedAssem.AccessibleDescription")));
            this.m_txtSelectedAssem.AccessibleName        = ((string)(resources.GetObject("m_txtSelectedAssem.AccessibleName")));
            this.m_txtSelectedAssem.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_txtSelectedAssem.Anchor")));
            this.m_txtSelectedAssem.AutoSize        = ((bool)(resources.GetObject("m_txtSelectedAssem.AutoSize")));
            this.m_txtSelectedAssem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_txtSelectedAssem.BackgroundImage")));
            this.m_txtSelectedAssem.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("m_txtSelectedAssem.Cursor")));
            this.m_txtSelectedAssem.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_txtSelectedAssem.Dock")));
            this.m_txtSelectedAssem.Enabled         = ((bool)(resources.GetObject("m_txtSelectedAssem.Enabled")));
            this.m_txtSelectedAssem.Font            = ((System.Drawing.Font)(resources.GetObject("m_txtSelectedAssem.Font")));
            this.m_txtSelectedAssem.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_txtSelectedAssem.ImeMode")));
            this.m_txtSelectedAssem.Location        = ((System.Drawing.Point)(resources.GetObject("m_txtSelectedAssem.Location")));
            this.m_txtSelectedAssem.MaxLength       = ((int)(resources.GetObject("m_txtSelectedAssem.MaxLength")));
            this.m_txtSelectedAssem.Multiline       = ((bool)(resources.GetObject("m_txtSelectedAssem.Multiline")));
            this.m_txtSelectedAssem.Name            = "SelectedAssembly";
            this.m_txtSelectedAssem.PasswordChar    = ((char)(resources.GetObject("m_txtSelectedAssem.PasswordChar")));
            this.m_txtSelectedAssem.ReadOnly        = true;
            this.m_txtSelectedAssem.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_txtSelectedAssem.RightToLeft")));
            this.m_txtSelectedAssem.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("m_txtSelectedAssem.ScrollBars")));
            this.m_txtSelectedAssem.Size            = ((System.Drawing.Size)(resources.GetObject("m_txtSelectedAssem.Size")));
            this.m_txtSelectedAssem.TabStop         = false;
            this.m_txtSelectedAssem.Text            = resources.GetString("m_txtSelectedAssem.Text");
            this.m_txtSelectedAssem.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("m_txtSelectedAssem.TextAlign")));
            this.m_txtSelectedAssem.Visible         = ((bool)(resources.GetObject("m_txtSelectedAssem.Visible")));
            this.m_txtSelectedAssem.WordWrap        = ((bool)(resources.GetObject("m_txtSelectedAssem.WordWrap")));
            //
            // m_lblHowToTrust
            //
            this.m_lblHowToTrust.AccessibleDescription = ((string)(resources.GetObject("m_lblHowToTrust.AccessibleDescription")));
            this.m_lblHowToTrust.AccessibleName        = ((string)(resources.GetObject("m_lblHowToTrust.AccessibleName")));
            this.m_lblHowToTrust.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_lblHowToTrust.Anchor")));
            this.m_lblHowToTrust.AutoSize    = ((bool)(resources.GetObject("m_lblHowToTrust.AutoSize")));
            this.m_lblHowToTrust.Cursor      = ((System.Windows.Forms.Cursor)(resources.GetObject("m_lblHowToTrust.Cursor")));
            this.m_lblHowToTrust.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_lblHowToTrust.Dock")));
            this.m_lblHowToTrust.Enabled     = ((bool)(resources.GetObject("m_lblHowToTrust.Enabled")));
            this.m_lblHowToTrust.Font        = ((System.Drawing.Font)(resources.GetObject("m_lblHowToTrust.Font")));
            this.m_lblHowToTrust.Image       = ((System.Drawing.Image)(resources.GetObject("m_lblHowToTrust.Image")));
            this.m_lblHowToTrust.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblHowToTrust.ImageAlign")));
            this.m_lblHowToTrust.ImageIndex  = ((int)(resources.GetObject("m_lblHowToTrust.ImageIndex")));
            this.m_lblHowToTrust.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_lblHowToTrust.ImeMode")));
            this.m_lblHowToTrust.Location    = ((System.Drawing.Point)(resources.GetObject("m_lblHowToTrust.Location")));
            this.m_lblHowToTrust.Name        = "HowToTrustLabel";
            this.m_lblHowToTrust.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_lblHowToTrust.RightToLeft")));
            this.m_lblHowToTrust.Size        = ((System.Drawing.Size)(resources.GetObject("m_lblHowToTrust.Size")));
            this.m_lblHowToTrust.Text        = resources.GetString("m_lblHowToTrust.Text");
            this.m_lblHowToTrust.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblHowToTrust.TextAlign")));
            this.m_lblHowToTrust.Visible     = ((bool)(resources.GetObject("m_lblHowToTrust.Visible")));
            //
            // m_radOneAssem
            //
            this.m_radOneAssem.AccessibleDescription = ((string)(resources.GetObject("m_radOneAssem.AccessibleDescription")));
            this.m_radOneAssem.AccessibleName        = ((string)(resources.GetObject("m_radOneAssem.AccessibleName")));
            this.m_radOneAssem.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_radOneAssem.Anchor")));
            this.m_radOneAssem.Appearance      = ((System.Windows.Forms.Appearance)(resources.GetObject("m_radOneAssem.Appearance")));
            this.m_radOneAssem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_radOneAssem.BackgroundImage")));
            this.m_radOneAssem.CheckAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radOneAssem.CheckAlign")));
            this.m_radOneAssem.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("m_radOneAssem.Cursor")));
            this.m_radOneAssem.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_radOneAssem.Dock")));
            this.m_radOneAssem.Enabled         = ((bool)(resources.GetObject("m_radOneAssem.Enabled")));
            this.m_radOneAssem.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("m_radOneAssem.FlatStyle")));
            this.m_radOneAssem.Font            = ((System.Drawing.Font)(resources.GetObject("m_radOneAssem.Font")));
            this.m_radOneAssem.Image           = ((System.Drawing.Image)(resources.GetObject("m_radOneAssem.Image")));
            this.m_radOneAssem.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radOneAssem.ImageAlign")));
            this.m_radOneAssem.ImageIndex      = ((int)(resources.GetObject("m_radOneAssem.ImageIndex")));
            this.m_radOneAssem.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_radOneAssem.ImeMode")));
            this.m_radOneAssem.Location        = ((System.Drawing.Point)(resources.GetObject("m_radOneAssem.Location")));
            this.m_radOneAssem.Name            = "TrustThisOneAssembly";
            this.m_radOneAssem.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_radOneAssem.RightToLeft")));
            this.m_radOneAssem.Size            = ((System.Drawing.Size)(resources.GetObject("m_radOneAssem.Size")));
            this.m_radOneAssem.Text            = resources.GetString("m_radOneAssem.Text");
            this.m_radOneAssem.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radOneAssem.TextAlign")));
            this.m_radOneAssem.Visible         = ((bool)(resources.GetObject("m_radOneAssem.Visible")));
            //
            // m_radPublisher
            //
            this.m_radPublisher.AccessibleDescription = ((string)(resources.GetObject("m_radPublisher.AccessibleDescription")));
            this.m_radPublisher.AccessibleName        = ((string)(resources.GetObject("m_radPublisher.AccessibleName")));
            this.m_radPublisher.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_radPublisher.Anchor")));
            this.m_radPublisher.Appearance      = ((System.Windows.Forms.Appearance)(resources.GetObject("m_radPublisher.Appearance")));
            this.m_radPublisher.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_radPublisher.BackgroundImage")));
            this.m_radPublisher.CheckAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radPublisher.CheckAlign")));
            this.m_radPublisher.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("m_radPublisher.Cursor")));
            this.m_radPublisher.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_radPublisher.Dock")));
            this.m_radPublisher.Enabled         = ((bool)(resources.GetObject("m_radPublisher.Enabled")));
            this.m_radPublisher.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("m_radPublisher.FlatStyle")));
            this.m_radPublisher.Font            = ((System.Drawing.Font)(resources.GetObject("m_radPublisher.Font")));
            this.m_radPublisher.Image           = ((System.Drawing.Image)(resources.GetObject("m_radPublisher.Image")));
            this.m_radPublisher.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radPublisher.ImageAlign")));
            this.m_radPublisher.ImageIndex      = ((int)(resources.GetObject("m_radPublisher.ImageIndex")));
            this.m_radPublisher.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_radPublisher.ImeMode")));
            this.m_radPublisher.Location        = ((System.Drawing.Point)(resources.GetObject("m_radPublisher.Location")));
            this.m_radPublisher.Name            = "TrustByPublisher";
            this.m_radPublisher.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_radPublisher.RightToLeft")));
            this.m_radPublisher.Size            = ((System.Drawing.Size)(resources.GetObject("m_radPublisher.Size")));
            this.m_radPublisher.Text            = resources.GetString("m_radPublisher.Text");
            this.m_radPublisher.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radPublisher.TextAlign")));
            this.m_radPublisher.Visible         = ((bool)(resources.GetObject("m_radPublisher.Visible")));
            //
            // m_lblPublisher
            //
            this.m_lblPublisher.AccessibleDescription = ((string)(resources.GetObject("m_lblPublisher.AccessibleDescription")));
            this.m_lblPublisher.AccessibleName        = ((string)(resources.GetObject("m_lblPublisher.AccessibleName")));
            this.m_lblPublisher.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_lblPublisher.Anchor")));
            this.m_lblPublisher.AutoSize    = ((bool)(resources.GetObject("m_lblPublisher.AutoSize")));
            this.m_lblPublisher.Cursor      = ((System.Windows.Forms.Cursor)(resources.GetObject("m_lblPublisher.Cursor")));
            this.m_lblPublisher.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_lblPublisher.Dock")));
            this.m_lblPublisher.Enabled     = ((bool)(resources.GetObject("m_lblPublisher.Enabled")));
            this.m_lblPublisher.Font        = ((System.Drawing.Font)(resources.GetObject("m_lblPublisher.Font")));
            this.m_lblPublisher.Image       = ((System.Drawing.Image)(resources.GetObject("m_lblPublisher.Image")));
            this.m_lblPublisher.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblPublisher.ImageAlign")));
            this.m_lblPublisher.ImageIndex  = ((int)(resources.GetObject("m_lblPublisher.ImageIndex")));
            this.m_lblPublisher.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_lblPublisher.ImeMode")));
            this.m_lblPublisher.Location    = ((System.Drawing.Point)(resources.GetObject("m_lblPublisher.Location")));
            this.m_lblPublisher.Name        = "PublisherLabel";
            this.m_lblPublisher.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_lblPublisher.RightToLeft")));
            this.m_lblPublisher.Size        = ((System.Drawing.Size)(resources.GetObject("m_lblPublisher.Size")));
            this.m_lblPublisher.Text        = resources.GetString("m_lblPublisher.Text");
            this.m_lblPublisher.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblPublisher.TextAlign")));
            this.m_lblPublisher.Visible     = ((bool)(resources.GetObject("m_lblPublisher.Visible")));
            //
            // m_txtPublisher
            //
            this.m_txtPublisher.AccessibleDescription = ((string)(resources.GetObject("m_txtPublisher.AccessibleDescription")));
            this.m_txtPublisher.AccessibleName        = ((string)(resources.GetObject("m_txtPublisher.AccessibleName")));
            this.m_txtPublisher.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_txtPublisher.Anchor")));
            this.m_txtPublisher.AutoSize        = ((bool)(resources.GetObject("m_txtPublisher.AutoSize")));
            this.m_txtPublisher.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_txtPublisher.BackgroundImage")));
            this.m_txtPublisher.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("m_txtPublisher.Cursor")));
            this.m_txtPublisher.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_txtPublisher.Dock")));
            this.m_txtPublisher.Enabled         = ((bool)(resources.GetObject("m_txtPublisher.Enabled")));
            this.m_txtPublisher.Font            = ((System.Drawing.Font)(resources.GetObject("m_txtPublisher.Font")));
            this.m_txtPublisher.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_txtPublisher.ImeMode")));
            this.m_txtPublisher.Location        = ((System.Drawing.Point)(resources.GetObject("m_txtPublisher.Location")));
            this.m_txtPublisher.MaxLength       = ((int)(resources.GetObject("m_txtPublisher.MaxLength")));
            this.m_txtPublisher.Multiline       = ((bool)(resources.GetObject("m_txtPublisher.Multiline")));
            this.m_txtPublisher.Name            = "Publisher";
            this.m_txtPublisher.PasswordChar    = ((char)(resources.GetObject("m_txtPublisher.PasswordChar")));
            this.m_txtPublisher.ReadOnly        = true;
            this.m_txtPublisher.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_txtPublisher.RightToLeft")));
            this.m_txtPublisher.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("m_txtPublisher.ScrollBars")));
            this.m_txtPublisher.Size            = ((System.Drawing.Size)(resources.GetObject("m_txtPublisher.Size")));
            this.m_txtPublisher.TabStop         = false;
            this.m_txtPublisher.Text            = resources.GetString("m_txtPublisher.Text");
            this.m_txtPublisher.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("m_txtPublisher.TextAlign")));
            this.m_txtPublisher.Visible         = ((bool)(resources.GetObject("m_txtPublisher.Visible")));
            this.m_txtPublisher.WordWrap        = ((bool)(resources.GetObject("m_txtPublisher.WordWrap")));
            //
            // m_radStrongName
            //
            this.m_radStrongName.AccessibleDescription = ((string)(resources.GetObject("m_radStrongName.AccessibleDescription")));
            this.m_radStrongName.AccessibleName        = ((string)(resources.GetObject("m_radStrongName.AccessibleName")));
            this.m_radStrongName.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_radStrongName.Anchor")));
            this.m_radStrongName.Appearance      = ((System.Windows.Forms.Appearance)(resources.GetObject("m_radStrongName.Appearance")));
            this.m_radStrongName.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_radStrongName.BackgroundImage")));
            this.m_radStrongName.CheckAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radStrongName.CheckAlign")));
            this.m_radStrongName.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("m_radStrongName.Cursor")));
            this.m_radStrongName.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_radStrongName.Dock")));
            this.m_radStrongName.Enabled         = ((bool)(resources.GetObject("m_radStrongName.Enabled")));
            this.m_radStrongName.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("m_radStrongName.FlatStyle")));
            this.m_radStrongName.Font            = ((System.Drawing.Font)(resources.GetObject("m_radStrongName.Font")));
            this.m_radStrongName.Image           = ((System.Drawing.Image)(resources.GetObject("m_radStrongName.Image")));
            this.m_radStrongName.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radStrongName.ImageAlign")));
            this.m_radStrongName.ImageIndex      = ((int)(resources.GetObject("m_radStrongName.ImageIndex")));
            this.m_radStrongName.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_radStrongName.ImeMode")));
            this.m_radStrongName.Location        = ((System.Drawing.Point)(resources.GetObject("m_radStrongName.Location")));
            this.m_radStrongName.Name            = "TrustByStrongName";
            this.m_radStrongName.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_radStrongName.RightToLeft")));
            this.m_radStrongName.Size            = ((System.Drawing.Size)(resources.GetObject("m_radStrongName.Size")));
            this.m_radStrongName.Text            = resources.GetString("m_radStrongName.Text");
            this.m_radStrongName.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radStrongName.TextAlign")));
            this.m_radStrongName.Visible         = ((bool)(resources.GetObject("m_radStrongName.Visible")));
            //
            // m_lblPublicKeyToken
            //
            this.m_lblPublicKeyToken.AccessibleDescription = ((string)(resources.GetObject("m_lblPublicKeyToken.AccessibleDescription")));
            this.m_lblPublicKeyToken.AccessibleName        = ((string)(resources.GetObject("m_lblPublicKeyToken.AccessibleName")));
            this.m_lblPublicKeyToken.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_lblPublicKeyToken.Anchor")));
            this.m_lblPublicKeyToken.AutoSize    = ((bool)(resources.GetObject("m_lblPublicKeyToken.AutoSize")));
            this.m_lblPublicKeyToken.Cursor      = ((System.Windows.Forms.Cursor)(resources.GetObject("m_lblPublicKeyToken.Cursor")));
            this.m_lblPublicKeyToken.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_lblPublicKeyToken.Dock")));
            this.m_lblPublicKeyToken.Enabled     = ((bool)(resources.GetObject("m_lblPublicKeyToken.Enabled")));
            this.m_lblPublicKeyToken.Font        = ((System.Drawing.Font)(resources.GetObject("m_lblPublicKeyToken.Font")));
            this.m_lblPublicKeyToken.Image       = ((System.Drawing.Image)(resources.GetObject("m_lblPublicKeyToken.Image")));
            this.m_lblPublicKeyToken.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblPublicKeyToken.ImageAlign")));
            this.m_lblPublicKeyToken.ImageIndex  = ((int)(resources.GetObject("m_lblPublicKeyToken.ImageIndex")));
            this.m_lblPublicKeyToken.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_lblPublicKeyToken.ImeMode")));
            this.m_lblPublicKeyToken.Location    = ((System.Drawing.Point)(resources.GetObject("m_lblPublicKeyToken.Location")));
            this.m_lblPublicKeyToken.Name        = "PublicKeyTokenLabel";
            this.m_lblPublicKeyToken.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_lblPublicKeyToken.RightToLeft")));
            this.m_lblPublicKeyToken.Size        = ((System.Drawing.Size)(resources.GetObject("m_lblPublicKeyToken.Size")));
            this.m_lblPublicKeyToken.Text        = resources.GetString("m_lblPublicKeyToken.Text");
            this.m_lblPublicKeyToken.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblPublicKeyToken.TextAlign")));
            this.m_lblPublicKeyToken.Visible     = ((bool)(resources.GetObject("m_lblPublicKeyToken.Visible")));
            //
            // m_txtPublicKeyToken
            //
            this.m_txtPublicKeyToken.AccessibleDescription = ((string)(resources.GetObject("m_txtPublicKeyToken.AccessibleDescription")));
            this.m_txtPublicKeyToken.AccessibleName        = ((string)(resources.GetObject("m_txtPublicKeyToken.AccessibleName")));
            this.m_txtPublicKeyToken.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_txtPublicKeyToken.Anchor")));
            this.m_txtPublicKeyToken.AutoSize        = ((bool)(resources.GetObject("m_txtPublicKeyToken.AutoSize")));
            this.m_txtPublicKeyToken.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_txtPublicKeyToken.BackgroundImage")));
            this.m_txtPublicKeyToken.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("m_txtPublicKeyToken.Cursor")));
            this.m_txtPublicKeyToken.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_txtPublicKeyToken.Dock")));
            this.m_txtPublicKeyToken.Enabled         = ((bool)(resources.GetObject("m_txtPublicKeyToken.Enabled")));
            this.m_txtPublicKeyToken.Font            = ((System.Drawing.Font)(resources.GetObject("m_txtPublicKeyToken.Font")));
            this.m_txtPublicKeyToken.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_txtPublicKeyToken.ImeMode")));
            this.m_txtPublicKeyToken.Location        = ((System.Drawing.Point)(resources.GetObject("m_txtPublicKeyToken.Location")));
            this.m_txtPublicKeyToken.MaxLength       = ((int)(resources.GetObject("m_txtPublicKeyToken.MaxLength")));
            this.m_txtPublicKeyToken.Multiline       = ((bool)(resources.GetObject("m_txtPublicKeyToken.Multiline")));
            this.m_txtPublicKeyToken.Name            = "PublicKeyToken";
            this.m_txtPublicKeyToken.PasswordChar    = ((char)(resources.GetObject("m_txtPublicKeyToken.PasswordChar")));
            this.m_txtPublicKeyToken.ReadOnly        = true;
            this.m_txtPublicKeyToken.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_txtPublicKeyToken.RightToLeft")));
            this.m_txtPublicKeyToken.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("m_txtPublicKeyToken.ScrollBars")));
            this.m_txtPublicKeyToken.Size            = ((System.Drawing.Size)(resources.GetObject("m_txtPublicKeyToken.Size")));
            this.m_txtPublicKeyToken.TabStop         = false;
            this.m_txtPublicKeyToken.Text            = resources.GetString("m_txtPublicKeyToken.Text");
            this.m_txtPublicKeyToken.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("m_txtPublicKeyToken.TextAlign")));
            this.m_txtPublicKeyToken.Visible         = ((bool)(resources.GetObject("m_txtPublicKeyToken.Visible")));
            this.m_txtPublicKeyToken.WordWrap        = ((bool)(resources.GetObject("m_txtPublicKeyToken.WordWrap")));
            //
            // m_chkVersion
            //
            this.m_chkVersion.AccessibleDescription = ((string)(resources.GetObject("m_chkVersion.AccessibleDescription")));
            this.m_chkVersion.AccessibleName        = ((string)(resources.GetObject("m_chkVersion.AccessibleName")));
            this.m_chkVersion.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_chkVersion.Anchor")));
            this.m_chkVersion.Appearance      = ((System.Windows.Forms.Appearance)(resources.GetObject("m_chkVersion.Appearance")));
            this.m_chkVersion.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_chkVersion.BackgroundImage")));
            this.m_chkVersion.CheckAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("m_chkVersion.CheckAlign")));
            this.m_chkVersion.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("m_chkVersion.Cursor")));
            this.m_chkVersion.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_chkVersion.Dock")));
            this.m_chkVersion.Enabled         = ((bool)(resources.GetObject("m_chkVersion.Enabled")));
            this.m_chkVersion.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("m_chkVersion.FlatStyle")));
            this.m_chkVersion.Font            = ((System.Drawing.Font)(resources.GetObject("m_chkVersion.Font")));
            this.m_chkVersion.Image           = ((System.Drawing.Image)(resources.GetObject("m_chkVersion.Image")));
            this.m_chkVersion.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("m_chkVersion.ImageAlign")));
            this.m_chkVersion.ImageIndex      = ((int)(resources.GetObject("m_chkVersion.ImageIndex")));
            this.m_chkVersion.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_chkVersion.ImeMode")));
            this.m_chkVersion.Location        = ((System.Drawing.Point)(resources.GetObject("m_chkVersion.Location")));
            this.m_chkVersion.Name            = "VersionCheckbox";
            this.m_chkVersion.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_chkVersion.RightToLeft")));
            this.m_chkVersion.Size            = ((System.Drawing.Size)(resources.GetObject("m_chkVersion.Size")));
            this.m_chkVersion.Text            = resources.GetString("m_chkVersion.Text");
            this.m_chkVersion.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("m_chkVersion.TextAlign")));
            this.m_chkVersion.Visible         = ((bool)(resources.GetObject("m_chkVersion.Visible")));
            //
            // m_txtVersion
            //
            this.m_txtVersion.AccessibleDescription = ((string)(resources.GetObject("m_txtVersion.AccessibleDescription")));
            this.m_txtVersion.AccessibleName        = ((string)(resources.GetObject("m_txtVersion.AccessibleName")));
            this.m_txtVersion.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_txtVersion.Anchor")));
            this.m_txtVersion.AutoSize        = ((bool)(resources.GetObject("m_txtVersion.AutoSize")));
            this.m_txtVersion.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_txtVersion.BackgroundImage")));
            this.m_txtVersion.Cursor          = ((System.Windows.Forms.Cursor)(resources.GetObject("m_txtVersion.Cursor")));
            this.m_txtVersion.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_txtVersion.Dock")));
            this.m_txtVersion.Enabled         = ((bool)(resources.GetObject("m_txtVersion.Enabled")));
            this.m_txtVersion.Font            = ((System.Drawing.Font)(resources.GetObject("m_txtVersion.Font")));
            this.m_txtVersion.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_txtVersion.ImeMode")));
            this.m_txtVersion.Location        = ((System.Drawing.Point)(resources.GetObject("m_txtVersion.Location")));
            this.m_txtVersion.MaxLength       = ((int)(resources.GetObject("m_txtVersion.MaxLength")));
            this.m_txtVersion.Multiline       = ((bool)(resources.GetObject("m_txtVersion.Multiline")));
            this.m_txtVersion.Name            = "Version";
            this.m_txtVersion.PasswordChar    = ((char)(resources.GetObject("m_txtVersion.PasswordChar")));
            this.m_txtVersion.ReadOnly        = true;
            this.m_txtVersion.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_txtVersion.RightToLeft")));
            this.m_txtVersion.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("m_txtVersion.ScrollBars")));
            this.m_txtVersion.Size            = ((System.Drawing.Size)(resources.GetObject("m_txtVersion.Size")));
            this.m_txtVersion.TabStop         = false;
            this.m_txtVersion.Text            = resources.GetString("m_txtVersion.Text");
            this.m_txtVersion.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("m_txtVersion.TextAlign")));
            this.m_txtVersion.Visible         = ((bool)(resources.GetObject("m_txtVersion.Visible")));
            this.m_txtVersion.WordWrap        = ((bool)(resources.GetObject("m_txtVersion.WordWrap")));
            //
            // m_llblHelp
            //
            this.m_llblHelp.AccessibleDescription = ((string)(resources.GetObject("m_llblHelp.AccessibleDescription")));
            this.m_llblHelp.AccessibleName        = ((string)(resources.GetObject("m_llblHelp.AccessibleName")));
            this.m_llblHelp.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_llblHelp.Anchor")));
            this.m_llblHelp.AutoSize    = ((bool)(resources.GetObject("m_llblHelp.AutoSize")));
            this.m_llblHelp.Cursor      = ((System.Windows.Forms.Cursor)(resources.GetObject("m_llblHelp.Cursor")));
            this.m_llblHelp.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_llblHelp.Dock")));
            this.m_llblHelp.Enabled     = ((bool)(resources.GetObject("m_llblHelp.Enabled")));
            this.m_llblHelp.Font        = ((System.Drawing.Font)(resources.GetObject("m_llblHelp.Font")));
            this.m_llblHelp.Image       = ((System.Drawing.Image)(resources.GetObject("m_llblHelp.Image")));
            this.m_llblHelp.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("m_llblHelp.ImageAlign")));
            this.m_llblHelp.ImageIndex  = ((int)(resources.GetObject("m_llblHelp.ImageIndex")));
            this.m_llblHelp.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_llblHelp.ImeMode")));
            this.m_llblHelp.LinkArea    = ((System.Windows.Forms.LinkArea)(resources.GetObject("m_llblHelp.LinkArea")));
            this.m_llblHelp.Location    = ((System.Drawing.Point)(resources.GetObject("m_llblHelp.Location")));
            this.m_llblHelp.Name        = "Help";
            this.m_llblHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_llblHelp.RightToLeft")));
            this.m_llblHelp.Size        = ((System.Drawing.Size)(resources.GetObject("m_llblHelp.Size")));
            this.m_llblHelp.TabStop     = true;
            this.m_llblHelp.Text        = resources.GetString("m_llblHelp.Text");
            this.m_llblHelp.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("m_llblHelp.TextAlign")));
            this.m_llblHelp.Visible     = ((bool)(resources.GetObject("m_llblHelp.Visible")));
            m_llblHelp.LinkColor        = m_llblHelp.ActiveLinkColor = m_llblHelp.VisitedLinkColor = SystemColors.ActiveCaption;

            PageControls.AddRange(new System.Windows.Forms.Control[] {
                this.m_radOneAssem,
                this.m_radPublisher,
                this.m_radStrongName,
                this.m_chkVersion,
                this.m_llblHelp,
                this.m_txtVersion,
                this.m_txtPublicKeyToken,
                this.m_lblPublicKeyToken,
                this.m_txtPublisher,
                this.m_lblPublisher,
                this.m_lblHowToTrust,
                this.m_txtSelectedAssem,
                this.m_lblSelectedAssem
            });

            m_radOneAssem.Click   += new EventHandler(onRadioButtonChange);
            m_radPublisher.Click  += new EventHandler(onRadioButtonChange);
            m_radStrongName.Click += new EventHandler(onRadioButtonChange);
            m_llblHelp.Click      += new EventHandler(onHelpClick);

            // Put in some of our own tweaks now
            return(1);
        }// InsertPropSheetPageControls
 [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ShadowPropertyPage));
     this.TrackBarTextDistance = new Main.TrackBarText();
     this.TrackBarTextSpread   = new Main.TrackBarText();
     this.Label1     = new System.Windows.Forms.Label();
     this.AngleText1 = new Main.AngleText();
     this.SuspendLayout();
     //
     //TrackBarTextDistance
     //
     this.TrackBarTextDistance.AccessibleDescription = resources.GetString("TrackBarTextDistance.AccessibleDescription");
     this.TrackBarTextDistance.AccessibleName        = resources.GetString("TrackBarTextDistance.AccessibleName");
     this.TrackBarTextDistance.Anchor            = (System.Windows.Forms.AnchorStyles)resources.GetObject("TrackBarTextDistance.Anchor");
     this.TrackBarTextDistance.AutoScroll        = System.Convert.ToBoolean(resources.GetObject("TrackBarTextDistance.AutoScroll"));
     this.TrackBarTextDistance.AutoScrollMargin  = (System.Drawing.Size)resources.GetObject("TrackBarTextDistance.AutoScrollMargin");
     this.TrackBarTextDistance.AutoScrollMinSize = (System.Drawing.Size)resources.GetObject("TrackBarTextDistance.AutoScrollMinSize");
     this.TrackBarTextDistance.BackgroundImage   = (System.Drawing.Image)resources.GetObject("TrackBarTextDistance.BackgroundImage");
     this.TrackBarTextDistance.Dock          = (System.Windows.Forms.DockStyle)resources.GetObject("TrackBarTextDistance.Dock");
     this.TrackBarTextDistance.Enabled       = System.Convert.ToBoolean(resources.GetObject("TrackBarTextDistance.Enabled"));
     this.TrackBarTextDistance.Font          = (System.Drawing.Font)resources.GetObject("TrackBarTextDistance.Font");
     this.TrackBarTextDistance.ImeMode       = (System.Windows.Forms.ImeMode)resources.GetObject("TrackBarTextDistance.ImeMode");
     this.TrackBarTextDistance.Location      = (System.Drawing.Point)resources.GetObject("TrackBarTextDistance.Location");
     this.TrackBarTextDistance.Maximum       = 100;
     this.TrackBarTextDistance.Minimum       = 1;
     this.TrackBarTextDistance.Name          = "TrackBarTextDistance";
     this.TrackBarTextDistance.RightToLeft   = (System.Windows.Forms.RightToLeft)resources.GetObject("TrackBarTextDistance.RightToLeft");
     this.TrackBarTextDistance.Size          = (System.Drawing.Size)resources.GetObject("TrackBarTextDistance.Size");
     this.TrackBarTextDistance.TabIndex      = System.Convert.ToInt32(resources.GetObject("TrackBarTextDistance.TabIndex"));
     this.TrackBarTextDistance.Text          = resources.GetString("TrackBarTextDistance.Text");
     this.TrackBarTextDistance.TickFrequency = 5;
     this.TrackBarTextDistance.Unit          = "pixels";
     this.TrackBarTextDistance.Value         = 7;
     this.TrackBarTextDistance.Visible       = System.Convert.ToBoolean(resources.GetObject("TrackBarTextDistance.Visible"));
     //
     //TrackBarTextSpread
     //
     this.TrackBarTextSpread.AccessibleDescription = resources.GetString("TrackBarTextSpread.AccessibleDescription");
     this.TrackBarTextSpread.AccessibleName        = resources.GetString("TrackBarTextSpread.AccessibleName");
     this.TrackBarTextSpread.Anchor            = (System.Windows.Forms.AnchorStyles)resources.GetObject("TrackBarTextSpread.Anchor");
     this.TrackBarTextSpread.AutoScroll        = System.Convert.ToBoolean(resources.GetObject("TrackBarTextSpread.AutoScroll"));
     this.TrackBarTextSpread.AutoScrollMargin  = (System.Drawing.Size)resources.GetObject("TrackBarTextSpread.AutoScrollMargin");
     this.TrackBarTextSpread.AutoScrollMinSize = (System.Drawing.Size)resources.GetObject("TrackBarTextSpread.AutoScrollMinSize");
     this.TrackBarTextSpread.BackgroundImage   = (System.Drawing.Image)resources.GetObject("TrackBarTextSpread.BackgroundImage");
     this.TrackBarTextSpread.Dock          = (System.Windows.Forms.DockStyle)resources.GetObject("TrackBarTextSpread.Dock");
     this.TrackBarTextSpread.Enabled       = System.Convert.ToBoolean(resources.GetObject("TrackBarTextSpread.Enabled"));
     this.TrackBarTextSpread.Font          = (System.Drawing.Font)resources.GetObject("TrackBarTextSpread.Font");
     this.TrackBarTextSpread.ImeMode       = (System.Windows.Forms.ImeMode)resources.GetObject("TrackBarTextSpread.ImeMode");
     this.TrackBarTextSpread.Location      = (System.Drawing.Point)resources.GetObject("TrackBarTextSpread.Location");
     this.TrackBarTextSpread.Maximum       = 100;
     this.TrackBarTextSpread.Minimum       = 1;
     this.TrackBarTextSpread.Name          = "TrackBarTextSpread";
     this.TrackBarTextSpread.RightToLeft   = (System.Windows.Forms.RightToLeft)resources.GetObject("TrackBarTextSpread.RightToLeft");
     this.TrackBarTextSpread.Size          = (System.Drawing.Size)resources.GetObject("TrackBarTextSpread.Size");
     this.TrackBarTextSpread.TabIndex      = System.Convert.ToInt32(resources.GetObject("TrackBarTextSpread.TabIndex"));
     this.TrackBarTextSpread.Text          = resources.GetString("TrackBarTextSpread.Text");
     this.TrackBarTextSpread.TickFrequency = 5;
     this.TrackBarTextSpread.Unit          = "pixels";
     this.TrackBarTextSpread.Value         = 10;
     this.TrackBarTextSpread.Visible       = System.Convert.ToBoolean(resources.GetObject("TrackBarTextSpread.Visible"));
     //
     //Label1
     //
     this.Label1.AccessibleDescription = resources.GetString("Label1.AccessibleDescription");
     this.Label1.AccessibleName        = resources.GetString("Label1.AccessibleName");
     this.Label1.Anchor      = (System.Windows.Forms.AnchorStyles)resources.GetObject("Label1.Anchor");
     this.Label1.AutoSize    = System.Convert.ToBoolean(resources.GetObject("Label1.AutoSize"));
     this.Label1.Dock        = (System.Windows.Forms.DockStyle)resources.GetObject("Label1.Dock");
     this.Label1.Enabled     = System.Convert.ToBoolean(resources.GetObject("Label1.Enabled"));
     this.Label1.Font        = (System.Drawing.Font)resources.GetObject("Label1.Font");
     this.Label1.Image       = (System.Drawing.Image)resources.GetObject("Label1.Image");
     this.Label1.ImageAlign  = (System.Drawing.ContentAlignment)resources.GetObject("Label1.ImageAlign");
     this.Label1.ImageIndex  = System.Convert.ToInt32(resources.GetObject("Label1.ImageIndex"));
     this.Label1.ImeMode     = (System.Windows.Forms.ImeMode)resources.GetObject("Label1.ImeMode");
     this.Label1.Location    = (System.Drawing.Point)resources.GetObject("Label1.Location");
     this.Label1.Name        = "Label1";
     this.Label1.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("Label1.RightToLeft");
     this.Label1.Size        = (System.Drawing.Size)resources.GetObject("Label1.Size");
     this.Label1.TabIndex    = System.Convert.ToInt32(resources.GetObject("Label1.TabIndex"));
     this.Label1.Text        = resources.GetString("Label1.Text");
     this.Label1.TextAlign   = (System.Drawing.ContentAlignment)resources.GetObject("Label1.TextAlign");
     this.Label1.Visible     = System.Convert.ToBoolean(resources.GetObject("Label1.Visible"));
     //
     //AngleText1
     //
     this.AngleText1.AccessibleDescription = resources.GetString("AngleText1.AccessibleDescription");
     this.AngleText1.AccessibleName        = resources.GetString("AngleText1.AccessibleName");
     this.AngleText1.Anchor            = (System.Windows.Forms.AnchorStyles)resources.GetObject("AngleText1.Anchor");
     this.AngleText1.AutoScroll        = System.Convert.ToBoolean(resources.GetObject("AngleText1.AutoScroll"));
     this.AngleText1.AutoScrollMargin  = (System.Drawing.Size)resources.GetObject("AngleText1.AutoScrollMargin");
     this.AngleText1.AutoScrollMinSize = (System.Drawing.Size)resources.GetObject("AngleText1.AutoScrollMinSize");
     this.AngleText1.BackgroundImage   = (System.Drawing.Image)resources.GetObject("AngleText1.BackgroundImage");
     this.AngleText1.Dock        = (System.Windows.Forms.DockStyle)resources.GetObject("AngleText1.Dock");
     this.AngleText1.Enabled     = System.Convert.ToBoolean(resources.GetObject("AngleText1.Enabled"));
     this.AngleText1.Font        = (System.Drawing.Font)resources.GetObject("AngleText1.Font");
     this.AngleText1.ImeMode     = (System.Windows.Forms.ImeMode)resources.GetObject("AngleText1.ImeMode");
     this.AngleText1.Location    = (System.Drawing.Point)resources.GetObject("AngleText1.Location");
     this.AngleText1.Name        = "AngleText1";
     this.AngleText1.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("AngleText1.RightToLeft");
     this.AngleText1.Size        = (System.Drawing.Size)resources.GetObject("AngleText1.Size");
     this.AngleText1.TabIndex    = System.Convert.ToInt32(resources.GetObject("AngleText1.TabIndex"));
     this.AngleText1.Value       = 45;
     this.AngleText1.Visible     = System.Convert.ToBoolean(resources.GetObject("AngleText1.Visible"));
     //
     //ShadowPropertyPage
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScroll            = System.Convert.ToBoolean(resources.GetObject("$this.AutoScroll"));
     this.AutoScrollMargin      = (System.Drawing.Size)resources.GetObject("$this.AutoScrollMargin");
     this.AutoScrollMinSize     = (System.Drawing.Size)resources.GetObject("$this.AutoScrollMinSize");
     this.BackgroundImage       = (System.Drawing.Image)resources.GetObject("$this.BackgroundImage");
     this.Controls.Add(this.Label1);
     this.Controls.Add(this.AngleText1);
     this.Controls.Add(this.TrackBarTextDistance);
     this.Controls.Add(this.TrackBarTextSpread);
     this.Enabled     = System.Convert.ToBoolean(resources.GetObject("$this.Enabled"));
     this.Font        = (System.Drawing.Font)resources.GetObject("$this.Font");
     this.ImeMode     = (System.Windows.Forms.ImeMode)resources.GetObject("$this.ImeMode");
     this.Location    = (System.Drawing.Point)resources.GetObject("$this.Location");
     this.Name        = "ShadowPropertyPage";
     this.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("$this.RightToLeft");
     this.Size        = (System.Drawing.Size)resources.GetObject("$this.Size");
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PixelFormatConverterPropertyPage));
     this.TrackBarTextIntensity = new Main.TrackBarText();
     this.TrackBarTextColors = new Main.TrackBarText();
     this.ComboBoxPaletteType = new System.Windows.Forms.ComboBox();
     this.ComboBoxPaletteType.SelectedIndexChanged += new System.EventHandler(ComboBoxPaletteType_SelectedIndexChanged);
     this.ComboBoxDitheringType = new System.Windows.Forms.ComboBox();
     this.CheckBoxDithering = new System.Windows.Forms.CheckBox();
     this.CheckBoxDithering.CheckedChanged += new System.EventHandler(CheckBoxDithering_CheckedChanged);
     this.LabelPaletteType = new System.Windows.Forms.Label();
     this.LabelDitheringType = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // TrackBarTextIntensity
     //
     this.TrackBarTextIntensity.AccessibleDescription = resources.GetString("TrackBarTextIntensity.AccessibleDescription");
     this.TrackBarTextIntensity.AccessibleName = resources.GetString("TrackBarTextIntensity.AccessibleName");
     this.TrackBarTextIntensity.Anchor = (System.Windows.Forms.AnchorStyles)resources.GetObject("TrackBarTextIntensity.Anchor");
     this.TrackBarTextIntensity.AutoScroll = System.Convert.ToBoolean(resources.GetObject("TrackBarTextIntensity.AutoScroll"));
     this.TrackBarTextIntensity.AutoScrollMargin = (System.Drawing.Size)resources.GetObject("TrackBarTextIntensity.AutoScrollMargin");
     this.TrackBarTextIntensity.AutoScrollMinSize = (System.Drawing.Size)resources.GetObject("TrackBarTextIntensity.AutoScrollMinSize");
     this.TrackBarTextIntensity.BackgroundImage = (System.Drawing.Image)resources.GetObject("TrackBarTextIntensity.BackgroundImage");
     this.TrackBarTextIntensity.Dock = (System.Windows.Forms.DockStyle)resources.GetObject("TrackBarTextIntensity.Dock");
     this.TrackBarTextIntensity.Enabled = System.Convert.ToBoolean(resources.GetObject("TrackBarTextIntensity.Enabled"));
     this.TrackBarTextIntensity.Font = (System.Drawing.Font)resources.GetObject("TrackBarTextIntensity.Font");
     this.TrackBarTextIntensity.ImeMode = (System.Windows.Forms.ImeMode)resources.GetObject("TrackBarTextIntensity.ImeMode");
     this.TrackBarTextIntensity.Location = (System.Drawing.Point)resources.GetObject("TrackBarTextIntensity.Location");
     this.TrackBarTextIntensity.Maximum = 100;
     this.TrackBarTextIntensity.Minimum = 0;
     this.TrackBarTextIntensity.Name = "TrackBarTextIntensity";
     this.TrackBarTextIntensity.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("TrackBarTextIntensity.RightToLeft");
     this.TrackBarTextIntensity.Size = (System.Drawing.Size)resources.GetObject("TrackBarTextIntensity.Size");
     this.TrackBarTextIntensity.TabIndex = System.Convert.ToInt32(resources.GetObject("TrackBarTextIntensity.TabIndex"));
     this.TrackBarTextIntensity.Text = resources.GetString("TrackBarTextIntensity.Text");
     this.TrackBarTextIntensity.TickFrequency = 10;
     this.TrackBarTextIntensity.Unit = "%";
     this.TrackBarTextIntensity.Value = 100;
     this.TrackBarTextIntensity.Visible = System.Convert.ToBoolean(resources.GetObject("TrackBarTextIntensity.Visible"));
     //
     // TrackBarTextColors
     //
     this.TrackBarTextColors.AccessibleDescription = resources.GetString("TrackBarTextColors.AccessibleDescription");
     this.TrackBarTextColors.AccessibleName = resources.GetString("TrackBarTextColors.AccessibleName");
     this.TrackBarTextColors.Anchor = (System.Windows.Forms.AnchorStyles)resources.GetObject("TrackBarTextColors.Anchor");
     this.TrackBarTextColors.AutoScroll = System.Convert.ToBoolean(resources.GetObject("TrackBarTextColors.AutoScroll"));
     this.TrackBarTextColors.AutoScrollMargin = (System.Drawing.Size)resources.GetObject("TrackBarTextColors.AutoScrollMargin");
     this.TrackBarTextColors.AutoScrollMinSize = (System.Drawing.Size)resources.GetObject("TrackBarTextColors.AutoScrollMinSize");
     this.TrackBarTextColors.BackgroundImage = (System.Drawing.Image)resources.GetObject("TrackBarTextColors.BackgroundImage");
     this.TrackBarTextColors.Dock = (System.Windows.Forms.DockStyle)resources.GetObject("TrackBarTextColors.Dock");
     this.TrackBarTextColors.Enabled = System.Convert.ToBoolean(resources.GetObject("TrackBarTextColors.Enabled"));
     this.TrackBarTextColors.Font = (System.Drawing.Font)resources.GetObject("TrackBarTextColors.Font");
     this.TrackBarTextColors.ImeMode = (System.Windows.Forms.ImeMode)resources.GetObject("TrackBarTextColors.ImeMode");
     this.TrackBarTextColors.Location = (System.Drawing.Point)resources.GetObject("TrackBarTextColors.Location");
     this.TrackBarTextColors.Maximum = 256;
     this.TrackBarTextColors.Minimum = 2;
     this.TrackBarTextColors.Name = "TrackBarTextColors";
     this.TrackBarTextColors.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("TrackBarTextColors.RightToLeft");
     this.TrackBarTextColors.Size = (System.Drawing.Size)resources.GetObject("TrackBarTextColors.Size");
     this.TrackBarTextColors.TabIndex = System.Convert.ToInt32(resources.GetObject("TrackBarTextColors.TabIndex"));
     this.TrackBarTextColors.Text = resources.GetString("TrackBarTextColors.Text");
     this.TrackBarTextColors.TickFrequency = 10;
     this.TrackBarTextColors.Unit = string.Empty;
     this.TrackBarTextColors.Value = 256;
     this.TrackBarTextColors.Visible = System.Convert.ToBoolean(resources.GetObject("TrackBarTextColors.Visible"));
     //
     // ComboBoxPaletteType
     //
     this.ComboBoxPaletteType.AccessibleDescription = resources.GetString("ComboBoxPaletteType.AccessibleDescription");
     this.ComboBoxPaletteType.AccessibleName = resources.GetString("ComboBoxPaletteType.AccessibleName");
     this.ComboBoxPaletteType.Anchor = (System.Windows.Forms.AnchorStyles)resources.GetObject("ComboBoxPaletteType.Anchor");
     this.ComboBoxPaletteType.BackColor = System.Drawing.SystemColors.Window;
     this.ComboBoxPaletteType.BackgroundImage = (System.Drawing.Image)resources.GetObject("ComboBoxPaletteType.BackgroundImage");
     this.ComboBoxPaletteType.Cursor = System.Windows.Forms.Cursors.Default;
     this.ComboBoxPaletteType.Dock = (System.Windows.Forms.DockStyle)resources.GetObject("ComboBoxPaletteType.Dock");
     this.ComboBoxPaletteType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ComboBoxPaletteType.Enabled = System.Convert.ToBoolean(resources.GetObject("ComboBoxPaletteType.Enabled"));
     this.ComboBoxPaletteType.Font = (System.Drawing.Font)resources.GetObject("ComboBoxPaletteType.Font");
     this.ComboBoxPaletteType.ForeColor = System.Drawing.SystemColors.WindowText;
     this.ComboBoxPaletteType.ImeMode = (System.Windows.Forms.ImeMode)resources.GetObject("ComboBoxPaletteType.ImeMode");
     this.ComboBoxPaletteType.IntegralHeight = System.Convert.ToBoolean(resources.GetObject("ComboBoxPaletteType.IntegralHeight"));
     this.ComboBoxPaletteType.ItemHeight = System.Convert.ToInt32(resources.GetObject("ComboBoxPaletteType.ItemHeight"));
     this.ComboBoxPaletteType.Items.AddRange(new object[] { resources.GetString("ComboBoxPaletteType.Items"), resources.GetString("ComboBoxPaletteType.Items1"), resources.GetString("ComboBoxPaletteType.Items2"), resources.GetString("ComboBoxPaletteType.Items3") });
     this.ComboBoxPaletteType.Location = (System.Drawing.Point)resources.GetObject("ComboBoxPaletteType.Location");
     this.ComboBoxPaletteType.MaxDropDownItems = System.Convert.ToInt32(resources.GetObject("ComboBoxPaletteType.MaxDropDownItems"));
     this.ComboBoxPaletteType.MaxLength = System.Convert.ToInt32(resources.GetObject("ComboBoxPaletteType.MaxLength"));
     this.ComboBoxPaletteType.Name = "ComboBoxPaletteType";
     this.ComboBoxPaletteType.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("ComboBoxPaletteType.RightToLeft");
     this.ComboBoxPaletteType.Size = (System.Drawing.Size)resources.GetObject("ComboBoxPaletteType.Size");
     this.ComboBoxPaletteType.TabIndex = System.Convert.ToInt32(resources.GetObject("ComboBoxPaletteType.TabIndex"));
     this.ComboBoxPaletteType.Text = resources.GetString("ComboBoxPaletteType.Text");
     this.ComboBoxPaletteType.Visible = System.Convert.ToBoolean(resources.GetObject("ComboBoxPaletteType.Visible"));
     //
     // ComboBoxDitheringType
     //
     this.ComboBoxDitheringType.AccessibleDescription = resources.GetString("ComboBoxDitheringType.AccessibleDescription");
     this.ComboBoxDitheringType.AccessibleName = resources.GetString("ComboBoxDitheringType.AccessibleName");
     this.ComboBoxDitheringType.Anchor = (System.Windows.Forms.AnchorStyles)resources.GetObject("ComboBoxDitheringType.Anchor");
     this.ComboBoxDitheringType.BackColor = System.Drawing.SystemColors.Window;
     this.ComboBoxDitheringType.BackgroundImage = (System.Drawing.Image)resources.GetObject("ComboBoxDitheringType.BackgroundImage");
     this.ComboBoxDitheringType.Cursor = System.Windows.Forms.Cursors.Default;
     this.ComboBoxDitheringType.Dock = (System.Windows.Forms.DockStyle)resources.GetObject("ComboBoxDitheringType.Dock");
     this.ComboBoxDitheringType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.ComboBoxDitheringType.Enabled = System.Convert.ToBoolean(resources.GetObject("ComboBoxDitheringType.Enabled"));
     this.ComboBoxDitheringType.Font = (System.Drawing.Font)resources.GetObject("ComboBoxDitheringType.Font");
     this.ComboBoxDitheringType.ForeColor = System.Drawing.SystemColors.WindowText;
     this.ComboBoxDitheringType.ImeMode = (System.Windows.Forms.ImeMode)resources.GetObject("ComboBoxDitheringType.ImeMode");
     this.ComboBoxDitheringType.IntegralHeight = System.Convert.ToBoolean(resources.GetObject("ComboBoxDitheringType.IntegralHeight"));
     this.ComboBoxDitheringType.ItemHeight = System.Convert.ToInt32(resources.GetObject("ComboBoxDitheringType.ItemHeight"));
     this.ComboBoxDitheringType.Items.AddRange(new object[] { resources.GetString("ComboBoxDitheringType.Items"), resources.GetString("ComboBoxDitheringType.Items1"), resources.GetString("ComboBoxDitheringType.Items2"), resources.GetString("ComboBoxDitheringType.Items3"), resources.GetString("ComboBoxDitheringType.Items4"), resources.GetString("ComboBoxDitheringType.Items5"), resources.GetString("ComboBoxDitheringType.Items6"), resources.GetString("ComboBoxDitheringType.Items7"), resources.GetString("ComboBoxDitheringType.Items8"), resources.GetString
     ("ComboBoxDitheringType.Items9"), resources.GetString("ComboBoxDitheringType.Items10"), resources.GetString("ComboBoxDitheringType.Items11"), resources.GetString("ComboBoxDitheringType.Items12"), resources.GetString("ComboBoxDitheringType.Items13"), resources.GetString("ComboBoxDitheringType.Items14") }
     );
     this.ComboBoxDitheringType.Location = (System.Drawing.Point)resources.GetObject("ComboBoxDitheringType.Location");
     this.ComboBoxDitheringType.MaxDropDownItems = System.Convert.ToInt32(resources.GetObject("ComboBoxDitheringType.MaxDropDownItems"));
     this.ComboBoxDitheringType.MaxLength = System.Convert.ToInt32(resources.GetObject("ComboBoxDitheringType.MaxLength"));
     this.ComboBoxDitheringType.Name = "ComboBoxDitheringType";
     this.ComboBoxDitheringType.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("ComboBoxDitheringType.RightToLeft");
     this.ComboBoxDitheringType.Size = (System.Drawing.Size)resources.GetObject("ComboBoxDitheringType.Size");
     this.ComboBoxDitheringType.TabIndex = System.Convert.ToInt32(resources.GetObject("ComboBoxDitheringType.TabIndex"));
     this.ComboBoxDitheringType.Text = resources.GetString("ComboBoxDitheringType.Text");
     this.ComboBoxDitheringType.Visible = System.Convert.ToBoolean(resources.GetObject("ComboBoxDitheringType.Visible"));
     //
     // CheckBoxDithering
     //
     this.CheckBoxDithering.AccessibleDescription = resources.GetString("CheckBoxDithering.AccessibleDescription");
     this.CheckBoxDithering.AccessibleName = resources.GetString("CheckBoxDithering.AccessibleName");
     this.CheckBoxDithering.Anchor = (System.Windows.Forms.AnchorStyles)resources.GetObject("CheckBoxDithering.Anchor");
     this.CheckBoxDithering.Appearance = (System.Windows.Forms.Appearance)resources.GetObject("CheckBoxDithering.Appearance");
     this.CheckBoxDithering.BackColor = System.Drawing.SystemColors.Control;
     this.CheckBoxDithering.BackgroundImage = (System.Drawing.Image)resources.GetObject("CheckBoxDithering.BackgroundImage");
     this.CheckBoxDithering.CheckAlign = (System.Drawing.ContentAlignment)resources.GetObject("CheckBoxDithering.CheckAlign");
     this.CheckBoxDithering.Checked = true;
     this.CheckBoxDithering.CheckState = System.Windows.Forms.CheckState.Checked;
     this.CheckBoxDithering.Cursor = System.Windows.Forms.Cursors.Default;
     this.CheckBoxDithering.Dock = (System.Windows.Forms.DockStyle)resources.GetObject("CheckBoxDithering.Dock");
     this.CheckBoxDithering.Enabled = System.Convert.ToBoolean(resources.GetObject("CheckBoxDithering.Enabled"));
     this.CheckBoxDithering.FlatStyle = (System.Windows.Forms.FlatStyle)resources.GetObject("CheckBoxDithering.FlatStyle");
     this.CheckBoxDithering.Font = (System.Drawing.Font)resources.GetObject("CheckBoxDithering.Font");
     this.CheckBoxDithering.ForeColor = System.Drawing.SystemColors.ControlText;
     this.CheckBoxDithering.Image = (System.Drawing.Image)resources.GetObject("CheckBoxDithering.Image");
     this.CheckBoxDithering.ImageAlign = (System.Drawing.ContentAlignment)resources.GetObject("CheckBoxDithering.ImageAlign");
     this.CheckBoxDithering.ImageIndex = System.Convert.ToInt32(resources.GetObject("CheckBoxDithering.ImageIndex"));
     this.CheckBoxDithering.ImeMode = (System.Windows.Forms.ImeMode)resources.GetObject("CheckBoxDithering.ImeMode");
     this.CheckBoxDithering.Location = (System.Drawing.Point)resources.GetObject("CheckBoxDithering.Location");
     this.CheckBoxDithering.Name = "CheckBoxDithering";
     this.CheckBoxDithering.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("CheckBoxDithering.RightToLeft");
     this.CheckBoxDithering.Size = (System.Drawing.Size)resources.GetObject("CheckBoxDithering.Size");
     this.CheckBoxDithering.TabIndex = System.Convert.ToInt32(resources.GetObject("CheckBoxDithering.TabIndex"));
     this.CheckBoxDithering.Text = resources.GetString("CheckBoxDithering.Text");
     this.CheckBoxDithering.TextAlign = (System.Drawing.ContentAlignment)resources.GetObject("CheckBoxDithering.TextAlign");
     this.CheckBoxDithering.Visible = System.Convert.ToBoolean(resources.GetObject("CheckBoxDithering.Visible"));
     //
     // LabelPaletteType
     //
     this.LabelPaletteType.AccessibleDescription = resources.GetString("LabelPaletteType.AccessibleDescription");
     this.LabelPaletteType.AccessibleName = resources.GetString("LabelPaletteType.AccessibleName");
     this.LabelPaletteType.Anchor = (System.Windows.Forms.AnchorStyles)resources.GetObject("LabelPaletteType.Anchor");
     this.LabelPaletteType.AutoSize = System.Convert.ToBoolean(resources.GetObject("LabelPaletteType.AutoSize"));
     this.LabelPaletteType.BackColor = System.Drawing.SystemColors.Control;
     this.LabelPaletteType.Cursor = System.Windows.Forms.Cursors.Default;
     this.LabelPaletteType.Dock = (System.Windows.Forms.DockStyle)resources.GetObject("LabelPaletteType.Dock");
     this.LabelPaletteType.Enabled = System.Convert.ToBoolean(resources.GetObject("LabelPaletteType.Enabled"));
     this.LabelPaletteType.Font = (System.Drawing.Font)resources.GetObject("LabelPaletteType.Font");
     this.LabelPaletteType.ForeColor = System.Drawing.SystemColors.ControlText;
     this.LabelPaletteType.Image = (System.Drawing.Image)resources.GetObject("LabelPaletteType.Image");
     this.LabelPaletteType.ImageAlign = (System.Drawing.ContentAlignment)resources.GetObject("LabelPaletteType.ImageAlign");
     this.LabelPaletteType.ImageIndex = System.Convert.ToInt32(resources.GetObject("LabelPaletteType.ImageIndex"));
     this.LabelPaletteType.ImeMode = (System.Windows.Forms.ImeMode)resources.GetObject("LabelPaletteType.ImeMode");
     this.LabelPaletteType.Location = (System.Drawing.Point)resources.GetObject("LabelPaletteType.Location");
     this.LabelPaletteType.Name = "LabelPaletteType";
     this.LabelPaletteType.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("LabelPaletteType.RightToLeft");
     this.LabelPaletteType.Size = (System.Drawing.Size)resources.GetObject("LabelPaletteType.Size");
     this.LabelPaletteType.TabIndex = System.Convert.ToInt32(resources.GetObject("LabelPaletteType.TabIndex"));
     this.LabelPaletteType.Text = resources.GetString("LabelPaletteType.Text");
     this.LabelPaletteType.TextAlign = (System.Drawing.ContentAlignment)resources.GetObject("LabelPaletteType.TextAlign");
     this.LabelPaletteType.Visible = System.Convert.ToBoolean(resources.GetObject("LabelPaletteType.Visible"));
     //
     // LabelDitheringType
     //
     this.LabelDitheringType.AccessibleDescription = resources.GetString("LabelDitheringType.AccessibleDescription");
     this.LabelDitheringType.AccessibleName = resources.GetString("LabelDitheringType.AccessibleName");
     this.LabelDitheringType.Anchor = (System.Windows.Forms.AnchorStyles)resources.GetObject("LabelDitheringType.Anchor");
     this.LabelDitheringType.AutoSize = System.Convert.ToBoolean(resources.GetObject("LabelDitheringType.AutoSize"));
     this.LabelDitheringType.BackColor = System.Drawing.SystemColors.Control;
     this.LabelDitheringType.Cursor = System.Windows.Forms.Cursors.Default;
     this.LabelDitheringType.Dock = (System.Windows.Forms.DockStyle)resources.GetObject("LabelDitheringType.Dock");
     this.LabelDitheringType.Enabled = System.Convert.ToBoolean(resources.GetObject("LabelDitheringType.Enabled"));
     this.LabelDitheringType.Font = (System.Drawing.Font)resources.GetObject("LabelDitheringType.Font");
     this.LabelDitheringType.ForeColor = System.Drawing.SystemColors.ControlText;
     this.LabelDitheringType.Image = (System.Drawing.Image)resources.GetObject("LabelDitheringType.Image");
     this.LabelDitheringType.ImageAlign = (System.Drawing.ContentAlignment)resources.GetObject("LabelDitheringType.ImageAlign");
     this.LabelDitheringType.ImageIndex = System.Convert.ToInt32(resources.GetObject("LabelDitheringType.ImageIndex"));
     this.LabelDitheringType.ImeMode = (System.Windows.Forms.ImeMode)resources.GetObject("LabelDitheringType.ImeMode");
     this.LabelDitheringType.Location = (System.Drawing.Point)resources.GetObject("LabelDitheringType.Location");
     this.LabelDitheringType.Name = "LabelDitheringType";
     this.LabelDitheringType.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("LabelDitheringType.RightToLeft");
     this.LabelDitheringType.Size = (System.Drawing.Size)resources.GetObject("LabelDitheringType.Size");
     this.LabelDitheringType.TabIndex = System.Convert.ToInt32(resources.GetObject("LabelDitheringType.TabIndex"));
     this.LabelDitheringType.Text = resources.GetString("LabelDitheringType.Text");
     this.LabelDitheringType.TextAlign = (System.Drawing.ContentAlignment)resources.GetObject("LabelDitheringType.TextAlign");
     this.LabelDitheringType.Visible = System.Convert.ToBoolean(resources.GetObject("LabelDitheringType.Visible"));
     //
     // PixelFormatConverterPropertyPage
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName = resources.GetString("$this.AccessibleName");
     this.AutoScroll = System.Convert.ToBoolean(resources.GetObject("$this.AutoScroll"));
     this.AutoScrollMargin = (System.Drawing.Size)resources.GetObject("$this.AutoScrollMargin");
     this.AutoScrollMinSize = (System.Drawing.Size)resources.GetObject("$this.AutoScrollMinSize");
     this.BackgroundImage = (System.Drawing.Image)resources.GetObject("$this.BackgroundImage");
     this.Controls.Add(this.TrackBarTextIntensity);
     this.Controls.Add(this.TrackBarTextColors);
     this.Controls.Add(this.ComboBoxPaletteType);
     this.Controls.Add(this.ComboBoxDitheringType);
     this.Controls.Add(this.CheckBoxDithering);
     this.Controls.Add(this.LabelPaletteType);
     this.Controls.Add(this.LabelDitheringType);
     this.Enabled = System.Convert.ToBoolean(resources.GetObject("$this.Enabled"));
     this.Font = (System.Drawing.Font)resources.GetObject("$this.Font");
     this.ImeMode = (System.Windows.Forms.ImeMode)resources.GetObject("$this.ImeMode");
     this.Location = (System.Drawing.Point)resources.GetObject("$this.Location");
     this.Name = "PixelFormatConverterPropertyPage";
     this.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("$this.RightToLeft");
     this.Size = (System.Drawing.Size)resources.GetObject("$this.Size");
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(InputForm));
     this.instructionsLabel = new System.Windows.Forms.Label();
     this.inputTextBox      = new System.Windows.Forms.TextBox();
     this.okButton          = new System.Windows.Forms.Button();
     this.groupBox1         = new System.Windows.Forms.GroupBox();
     this.cancelButton      = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // instructionsLabel
     //
     this.instructionsLabel.AccessibleDescription = resources.GetString("instructionsLabel.AccessibleDescription");
     this.instructionsLabel.AccessibleName        = resources.GetString("instructionsLabel.AccessibleName");
     this.instructionsLabel.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("instructionsLabel.Anchor")));
     this.instructionsLabel.AutoSize    = ((bool)(resources.GetObject("instructionsLabel.AutoSize")));
     this.instructionsLabel.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("instructionsLabel.Dock")));
     this.instructionsLabel.Enabled     = ((bool)(resources.GetObject("instructionsLabel.Enabled")));
     this.instructionsLabel.Font        = ((System.Drawing.Font)(resources.GetObject("instructionsLabel.Font")));
     this.instructionsLabel.Image       = ((System.Drawing.Image)(resources.GetObject("instructionsLabel.Image")));
     this.instructionsLabel.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("instructionsLabel.ImageAlign")));
     this.instructionsLabel.ImageIndex  = ((int)(resources.GetObject("instructionsLabel.ImageIndex")));
     this.instructionsLabel.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("instructionsLabel.ImeMode")));
     this.instructionsLabel.Location    = ((System.Drawing.Point)(resources.GetObject("instructionsLabel.Location")));
     this.instructionsLabel.Name        = "instructionsLabel";
     this.instructionsLabel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("instructionsLabel.RightToLeft")));
     this.instructionsLabel.Size        = ((System.Drawing.Size)(resources.GetObject("instructionsLabel.Size")));
     this.instructionsLabel.TabIndex    = ((int)(resources.GetObject("instructionsLabel.TabIndex")));
     this.instructionsLabel.Text        = resources.GetString("instructionsLabel.Text");
     this.instructionsLabel.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("instructionsLabel.TextAlign")));
     this.instructionsLabel.Visible     = ((bool)(resources.GetObject("instructionsLabel.Visible")));
     //
     // inputTextBox
     //
     this.inputTextBox.AccessibleDescription = resources.GetString("inputTextBox.AccessibleDescription");
     this.inputTextBox.AccessibleName        = resources.GetString("inputTextBox.AccessibleName");
     this.inputTextBox.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("inputTextBox.Anchor")));
     this.inputTextBox.AutoSize        = ((bool)(resources.GetObject("inputTextBox.AutoSize")));
     this.inputTextBox.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("inputTextBox.BackgroundImage")));
     this.inputTextBox.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("inputTextBox.Dock")));
     this.inputTextBox.Enabled         = ((bool)(resources.GetObject("inputTextBox.Enabled")));
     this.inputTextBox.Font            = ((System.Drawing.Font)(resources.GetObject("inputTextBox.Font")));
     this.inputTextBox.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("inputTextBox.ImeMode")));
     this.inputTextBox.Location        = ((System.Drawing.Point)(resources.GetObject("inputTextBox.Location")));
     this.inputTextBox.MaxLength       = ((int)(resources.GetObject("inputTextBox.MaxLength")));
     this.inputTextBox.Multiline       = ((bool)(resources.GetObject("inputTextBox.Multiline")));
     this.inputTextBox.Name            = "inputTextBox";
     this.inputTextBox.PasswordChar    = ((char)(resources.GetObject("inputTextBox.PasswordChar")));
     this.inputTextBox.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("inputTextBox.RightToLeft")));
     this.inputTextBox.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("inputTextBox.ScrollBars")));
     this.inputTextBox.Size            = ((System.Drawing.Size)(resources.GetObject("inputTextBox.Size")));
     this.inputTextBox.TabIndex        = ((int)(resources.GetObject("inputTextBox.TabIndex")));
     this.inputTextBox.Text            = resources.GetString("inputTextBox.Text");
     this.inputTextBox.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("inputTextBox.TextAlign")));
     this.inputTextBox.Visible         = ((bool)(resources.GetObject("inputTextBox.Visible")));
     this.inputTextBox.WordWrap        = ((bool)(resources.GetObject("inputTextBox.WordWrap")));
     //
     // okButton
     //
     this.okButton.AccessibleDescription = resources.GetString("okButton.AccessibleDescription");
     this.okButton.AccessibleName        = resources.GetString("okButton.AccessibleName");
     this.okButton.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("okButton.Anchor")));
     this.okButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("okButton.BackgroundImage")));
     this.okButton.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("okButton.Dock")));
     this.okButton.Enabled         = ((bool)(resources.GetObject("okButton.Enabled")));
     this.okButton.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("okButton.FlatStyle")));
     this.okButton.Font            = ((System.Drawing.Font)(resources.GetObject("okButton.Font")));
     this.okButton.Image           = ((System.Drawing.Image)(resources.GetObject("okButton.Image")));
     this.okButton.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("okButton.ImageAlign")));
     this.okButton.ImageIndex      = ((int)(resources.GetObject("okButton.ImageIndex")));
     this.okButton.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("okButton.ImeMode")));
     this.okButton.Location        = ((System.Drawing.Point)(resources.GetObject("okButton.Location")));
     this.okButton.Name            = "okButton";
     this.okButton.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("okButton.RightToLeft")));
     this.okButton.Size            = ((System.Drawing.Size)(resources.GetObject("okButton.Size")));
     this.okButton.TabIndex        = ((int)(resources.GetObject("okButton.TabIndex")));
     this.okButton.Text            = resources.GetString("okButton.Text");
     this.okButton.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("okButton.TextAlign")));
     this.okButton.Visible         = ((bool)(resources.GetObject("okButton.Visible")));
     this.okButton.Click          += new System.EventHandler(this.okButton_Click);
     //
     // groupBox1
     //
     this.groupBox1.AccessibleDescription = resources.GetString("groupBox1.AccessibleDescription");
     this.groupBox1.AccessibleName        = resources.GetString("groupBox1.AccessibleName");
     this.groupBox1.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("groupBox1.Anchor")));
     this.groupBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("groupBox1.BackgroundImage")));
     this.groupBox1.Controls.Add(this.cancelButton);
     this.groupBox1.Controls.Add(this.okButton);
     this.groupBox1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("groupBox1.Dock")));
     this.groupBox1.Enabled     = ((bool)(resources.GetObject("groupBox1.Enabled")));
     this.groupBox1.FlatStyle   = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Font        = ((System.Drawing.Font)(resources.GetObject("groupBox1.Font")));
     this.groupBox1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("groupBox1.ImeMode")));
     this.groupBox1.Location    = ((System.Drawing.Point)(resources.GetObject("groupBox1.Location")));
     this.groupBox1.Name        = "groupBox1";
     this.groupBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("groupBox1.RightToLeft")));
     this.groupBox1.Size        = ((System.Drawing.Size)(resources.GetObject("groupBox1.Size")));
     this.groupBox1.TabIndex    = ((int)(resources.GetObject("groupBox1.TabIndex")));
     this.groupBox1.TabStop     = false;
     this.groupBox1.Text        = resources.GetString("groupBox1.Text");
     this.groupBox1.Visible     = ((bool)(resources.GetObject("groupBox1.Visible")));
     //
     // cancelButton
     //
     this.cancelButton.AccessibleDescription = resources.GetString("cancelButton.AccessibleDescription");
     this.cancelButton.AccessibleName        = resources.GetString("cancelButton.AccessibleName");
     this.cancelButton.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cancelButton.Anchor")));
     this.cancelButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cancelButton.BackgroundImage")));
     this.cancelButton.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("cancelButton.Dock")));
     this.cancelButton.Enabled         = ((bool)(resources.GetObject("cancelButton.Enabled")));
     this.cancelButton.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("cancelButton.FlatStyle")));
     this.cancelButton.Font            = ((System.Drawing.Font)(resources.GetObject("cancelButton.Font")));
     this.cancelButton.Image           = ((System.Drawing.Image)(resources.GetObject("cancelButton.Image")));
     this.cancelButton.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("cancelButton.ImageAlign")));
     this.cancelButton.ImageIndex      = ((int)(resources.GetObject("cancelButton.ImageIndex")));
     this.cancelButton.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("cancelButton.ImeMode")));
     this.cancelButton.Location        = ((System.Drawing.Point)(resources.GetObject("cancelButton.Location")));
     this.cancelButton.Name            = "cancelButton";
     this.cancelButton.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cancelButton.RightToLeft")));
     this.cancelButton.Size            = ((System.Drawing.Size)(resources.GetObject("cancelButton.Size")));
     this.cancelButton.TabIndex        = ((int)(resources.GetObject("cancelButton.TabIndex")));
     this.cancelButton.Text            = resources.GetString("cancelButton.Text");
     this.cancelButton.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("cancelButton.TextAlign")));
     this.cancelButton.Visible         = ((bool)(resources.GetObject("cancelButton.Visible")));
     this.cancelButton.Click          += new System.EventHandler(this.cancelButton_Click);
     //
     // InputForm
     //
     this.AcceptButton          = this.okButton;
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.CancelButton          = this.cancelButton;
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.inputTextBox);
     this.Controls.Add(this.instructionsLabel);
     this.Controls.Add(this.groupBox1);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox     = false;
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimizeBox     = false;
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "InputForm";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.ShowInTaskbar   = false;
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #44
0
 /// <summary>
 /// Erforderliche Methode für die Designerunterstützung.
 /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NhtrUI));
     this.lb        = new System.Windows.Forms.ListBox();
     this.tb        = new System.Windows.Forms.TextBox();
     this.cb        = new System.Windows.Forms.ComboBox();
     this.pg        = new System.Windows.Forms.PropertyGrid();
     this.panel1    = new System.Windows.Forms.Panel();
     this.panel2    = new System.Windows.Forms.Panel();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // lb
     //
     this.lb.AccessibleDescription = resources.GetString("lb.AccessibleDescription");
     this.lb.AccessibleName        = resources.GetString("lb.AccessibleName");
     this.lb.Anchor                = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lb.Anchor")));
     this.lb.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("lb.BackgroundImage")));
     this.lb.ColumnWidth           = ((int)(resources.GetObject("lb.ColumnWidth")));
     this.lb.Dock                  = ((System.Windows.Forms.DockStyle)(resources.GetObject("lb.Dock")));
     this.lb.Enabled               = ((bool)(resources.GetObject("lb.Enabled")));
     this.lb.Font                  = ((System.Drawing.Font)(resources.GetObject("lb.Font")));
     this.lb.HorizontalExtent      = ((int)(resources.GetObject("lb.HorizontalExtent")));
     this.lb.HorizontalScrollbar   = ((bool)(resources.GetObject("lb.HorizontalScrollbar")));
     this.lb.ImeMode               = ((System.Windows.Forms.ImeMode)(resources.GetObject("lb.ImeMode")));
     this.lb.IntegralHeight        = ((bool)(resources.GetObject("lb.IntegralHeight")));
     this.lb.ItemHeight            = ((int)(resources.GetObject("lb.ItemHeight")));
     this.lb.Location              = ((System.Drawing.Point)(resources.GetObject("lb.Location")));
     this.lb.Name                  = "lb";
     this.lb.RightToLeft           = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lb.RightToLeft")));
     this.lb.ScrollAlwaysVisible   = ((bool)(resources.GetObject("lb.ScrollAlwaysVisible")));
     this.lb.Size                  = ((System.Drawing.Size)(resources.GetObject("lb.Size")));
     this.lb.TabIndex              = ((int)(resources.GetObject("lb.TabIndex")));
     this.lb.Visible               = ((bool)(resources.GetObject("lb.Visible")));
     this.lb.SelectedIndexChanged += new System.EventHandler(this.lb_SelectedIndexChanged);
     //
     // tb
     //
     this.tb.AccessibleDescription = resources.GetString("tb.AccessibleDescription");
     this.tb.AccessibleName        = resources.GetString("tb.AccessibleName");
     this.tb.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("tb.Anchor")));
     this.tb.AutoSize        = ((bool)(resources.GetObject("tb.AutoSize")));
     this.tb.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("tb.BackgroundImage")));
     this.tb.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("tb.Dock")));
     this.tb.Enabled         = ((bool)(resources.GetObject("tb.Enabled")));
     this.tb.Font            = ((System.Drawing.Font)(resources.GetObject("tb.Font")));
     this.tb.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("tb.ImeMode")));
     this.tb.Location        = ((System.Drawing.Point)(resources.GetObject("tb.Location")));
     this.tb.MaxLength       = ((int)(resources.GetObject("tb.MaxLength")));
     this.tb.Multiline       = ((bool)(resources.GetObject("tb.Multiline")));
     this.tb.Name            = "tb";
     this.tb.PasswordChar    = ((char)(resources.GetObject("tb.PasswordChar")));
     this.tb.ReadOnly        = true;
     this.tb.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("tb.RightToLeft")));
     this.tb.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("tb.ScrollBars")));
     this.tb.Size            = ((System.Drawing.Size)(resources.GetObject("tb.Size")));
     this.tb.TabIndex        = ((int)(resources.GetObject("tb.TabIndex")));
     this.tb.Text            = resources.GetString("tb.Text");
     this.tb.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("tb.TextAlign")));
     this.tb.Visible         = ((bool)(resources.GetObject("tb.Visible")));
     this.tb.WordWrap        = ((bool)(resources.GetObject("tb.WordWrap")));
     //
     // cb
     //
     this.cb.AccessibleDescription = resources.GetString("cb.AccessibleDescription");
     this.cb.AccessibleName        = resources.GetString("cb.AccessibleName");
     this.cb.Anchor                = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cb.Anchor")));
     this.cb.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("cb.BackgroundImage")));
     this.cb.Dock                  = ((System.Windows.Forms.DockStyle)(resources.GetObject("cb.Dock")));
     this.cb.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cb.Enabled               = ((bool)(resources.GetObject("cb.Enabled")));
     this.cb.Font                  = ((System.Drawing.Font)(resources.GetObject("cb.Font")));
     this.cb.ImeMode               = ((System.Windows.Forms.ImeMode)(resources.GetObject("cb.ImeMode")));
     this.cb.IntegralHeight        = ((bool)(resources.GetObject("cb.IntegralHeight")));
     this.cb.ItemHeight            = ((int)(resources.GetObject("cb.ItemHeight")));
     this.cb.Location              = ((System.Drawing.Point)(resources.GetObject("cb.Location")));
     this.cb.MaxDropDownItems      = ((int)(resources.GetObject("cb.MaxDropDownItems")));
     this.cb.MaxLength             = ((int)(resources.GetObject("cb.MaxLength")));
     this.cb.Name                  = "cb";
     this.cb.RightToLeft           = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cb.RightToLeft")));
     this.cb.Size                  = ((System.Drawing.Size)(resources.GetObject("cb.Size")));
     this.cb.TabIndex              = ((int)(resources.GetObject("cb.TabIndex")));
     this.cb.Text                  = resources.GetString("cb.Text");
     this.cb.Visible               = ((bool)(resources.GetObject("cb.Visible")));
     this.cb.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // pg
     //
     this.pg.AccessibleDescription = resources.GetString("pg.AccessibleDescription");
     this.pg.AccessibleName        = resources.GetString("pg.AccessibleName");
     this.pg.Anchor                     = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("pg.Anchor")));
     this.pg.BackColor                  = System.Drawing.SystemColors.Control;
     this.pg.BackgroundImage            = ((System.Drawing.Image)(resources.GetObject("pg.BackgroundImage")));
     this.pg.CommandsVisibleIfAvailable = true;
     this.pg.Dock           = ((System.Windows.Forms.DockStyle)(resources.GetObject("pg.Dock")));
     this.pg.Enabled        = ((bool)(resources.GetObject("pg.Enabled")));
     this.pg.Font           = ((System.Drawing.Font)(resources.GetObject("pg.Font")));
     this.pg.HelpVisible    = ((bool)(resources.GetObject("pg.HelpVisible")));
     this.pg.ImeMode        = ((System.Windows.Forms.ImeMode)(resources.GetObject("pg.ImeMode")));
     this.pg.LargeButtons   = false;
     this.pg.LineColor      = System.Drawing.SystemColors.ScrollBar;
     this.pg.Location       = ((System.Drawing.Point)(resources.GetObject("pg.Location")));
     this.pg.Name           = "pg";
     this.pg.RightToLeft    = ((System.Windows.Forms.RightToLeft)(resources.GetObject("pg.RightToLeft")));
     this.pg.Size           = ((System.Drawing.Size)(resources.GetObject("pg.Size")));
     this.pg.TabIndex       = ((int)(resources.GetObject("pg.TabIndex")));
     this.pg.Text           = resources.GetString("pg.Text");
     this.pg.ToolbarVisible = false;
     this.pg.ViewBackColor  = System.Drawing.SystemColors.Window;
     this.pg.ViewForeColor  = System.Drawing.SystemColors.WindowText;
     this.pg.Visible        = ((bool)(resources.GetObject("pg.Visible")));
     //
     // panel1
     //
     this.panel1.AccessibleDescription = resources.GetString("panel1.AccessibleDescription");
     this.panel1.AccessibleName        = resources.GetString("panel1.AccessibleName");
     this.panel1.Anchor            = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel1.Anchor")));
     this.panel1.AutoScroll        = ((bool)(resources.GetObject("panel1.AutoScroll")));
     this.panel1.AutoScrollMargin  = ((System.Drawing.Size)(resources.GetObject("panel1.AutoScrollMargin")));
     this.panel1.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel1.AutoScrollMinSize")));
     this.panel1.BackColor         = System.Drawing.Color.Transparent;
     this.panel1.BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage")));
     this.panel1.Controls.Add(this.cb);
     this.panel1.Controls.Add(this.lb);
     this.panel1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel1.Dock")));
     this.panel1.Enabled     = ((bool)(resources.GetObject("panel1.Enabled")));
     this.panel1.Font        = ((System.Drawing.Font)(resources.GetObject("panel1.Font")));
     this.panel1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel1.ImeMode")));
     this.panel1.Location    = ((System.Drawing.Point)(resources.GetObject("panel1.Location")));
     this.panel1.Name        = "panel1";
     this.panel1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel1.RightToLeft")));
     this.panel1.Size        = ((System.Drawing.Size)(resources.GetObject("panel1.Size")));
     this.panel1.TabIndex    = ((int)(resources.GetObject("panel1.TabIndex")));
     this.panel1.Text        = resources.GetString("panel1.Text");
     this.panel1.Visible     = ((bool)(resources.GetObject("panel1.Visible")));
     //
     // panel2
     //
     this.panel2.AccessibleDescription = resources.GetString("panel2.AccessibleDescription");
     this.panel2.AccessibleName        = resources.GetString("panel2.AccessibleName");
     this.panel2.Anchor            = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel2.Anchor")));
     this.panel2.AutoScroll        = ((bool)(resources.GetObject("panel2.AutoScroll")));
     this.panel2.AutoScrollMargin  = ((System.Drawing.Size)(resources.GetObject("panel2.AutoScrollMargin")));
     this.panel2.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel2.AutoScrollMinSize")));
     this.panel2.BackColor         = System.Drawing.Color.Transparent;
     this.panel2.BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("panel2.BackgroundImage")));
     this.panel2.Controls.Add(this.tb);
     this.panel2.Controls.Add(this.pg);
     this.panel2.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel2.Dock")));
     this.panel2.Enabled     = ((bool)(resources.GetObject("panel2.Enabled")));
     this.panel2.Font        = ((System.Drawing.Font)(resources.GetObject("panel2.Font")));
     this.panel2.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel2.ImeMode")));
     this.panel2.Location    = ((System.Drawing.Point)(resources.GetObject("panel2.Location")));
     this.panel2.Name        = "panel2";
     this.panel2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel2.RightToLeft")));
     this.panel2.Size        = ((System.Drawing.Size)(resources.GetObject("panel2.Size")));
     this.panel2.TabIndex    = ((int)(resources.GetObject("panel2.TabIndex")));
     this.panel2.Text        = resources.GetString("panel2.Text");
     this.panel2.Visible     = ((bool)(resources.GetObject("panel2.Visible")));
     //
     // splitter1
     //
     this.splitter1.AccessibleDescription = resources.GetString("splitter1.AccessibleDescription");
     this.splitter1.AccessibleName        = resources.GetString("splitter1.AccessibleName");
     this.splitter1.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("splitter1.Anchor")));
     this.splitter1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("splitter1.BackgroundImage")));
     this.splitter1.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("splitter1.Dock")));
     this.splitter1.Enabled         = ((bool)(resources.GetObject("splitter1.Enabled")));
     this.splitter1.Font            = ((System.Drawing.Font)(resources.GetObject("splitter1.Font")));
     this.splitter1.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("splitter1.ImeMode")));
     this.splitter1.Location        = ((System.Drawing.Point)(resources.GetObject("splitter1.Location")));
     this.splitter1.MinExtra        = ((int)(resources.GetObject("splitter1.MinExtra")));
     this.splitter1.MinSize         = ((int)(resources.GetObject("splitter1.MinSize")));
     this.splitter1.Name            = "splitter1";
     this.splitter1.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("splitter1.RightToLeft")));
     this.splitter1.Size            = ((System.Drawing.Size)(resources.GetObject("splitter1.Size")));
     this.splitter1.TabIndex        = ((int)(resources.GetObject("splitter1.TabIndex")));
     this.splitter1.TabStop         = false;
     this.splitter1.Visible         = ((bool)(resources.GetObject("splitter1.Visible")));
     //
     // NhtrUI
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.panel1);
     this.DockPadding.Top = 24;
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.HeaderText      = resources.GetString("$this.HeaderText");
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.Name            = "NhtrUI";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.Size            = ((System.Drawing.Size)(resources.GetObject("$this.Size")));
     this.Controls.SetChildIndex(this.panel1, 0);
     this.Controls.SetChildIndex(this.splitter1, 0);
     this.Controls.SetChildIndex(this.panel2, 0);
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 public static string StringResource(string key)
 {
     return(ResourceManager.GetString(key));
 }
Exemple #46
0
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PrintingPreview));
			this.m_PictureBoxImage = new BYHXPrinterManager.Preview.MyPictureBox();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.SuspendLayout();
			// 
			// m_PictureBoxImage
			// 
			this.m_PictureBoxImage.AccessibleDescription = resources.GetString("m_PictureBoxImage.AccessibleDescription");
			this.m_PictureBoxImage.AccessibleName = resources.GetString("m_PictureBoxImage.AccessibleName");
			this.m_PictureBoxImage.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_PictureBoxImage.Anchor")));
			this.m_PictureBoxImage.BackColor = System.Drawing.Color.White;
			this.m_PictureBoxImage.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_PictureBoxImage.BackgroundImage")));
			this.m_PictureBoxImage.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.m_PictureBoxImage.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_PictureBoxImage.Dock")));
			this.m_PictureBoxImage.Enabled = ((bool)(resources.GetObject("m_PictureBoxImage.Enabled")));
			this.m_PictureBoxImage.Font = ((System.Drawing.Font)(resources.GetObject("m_PictureBoxImage.Font")));
			this.m_PictureBoxImage.Image = ((System.Drawing.Image)(resources.GetObject("m_PictureBoxImage.Image")));
			this.m_PictureBoxImage.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_PictureBoxImage.ImeMode")));
			this.m_PictureBoxImage.Location = ((System.Drawing.Point)(resources.GetObject("m_PictureBoxImage.Location")));
			this.m_PictureBoxImage.Name = "m_PictureBoxImage";
			this.m_PictureBoxImage.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_PictureBoxImage.RightToLeft")));
			this.m_PictureBoxImage.Size = ((System.Drawing.Size)(resources.GetObject("m_PictureBoxImage.Size")));
			this.m_PictureBoxImage.SizeMode = ((System.Windows.Forms.PictureBoxSizeMode)(resources.GetObject("m_PictureBoxImage.SizeMode")));
			this.m_PictureBoxImage.TabIndex = ((int)(resources.GetObject("m_PictureBoxImage.TabIndex")));
			this.m_PictureBoxImage.TabStop = false;
			this.m_PictureBoxImage.Text = resources.GetString("m_PictureBoxImage.Text");
			this.m_PictureBoxImage.Visible = ((bool)(resources.GetObject("m_PictureBoxImage.Visible")));
			this.m_PictureBoxImage.Paint += new System.Windows.Forms.PaintEventHandler(this.m_PictureBoxImage_Paint);
			this.m_PictureBoxImage.DoubleClick += new System.EventHandler(this.m_PictureBoxImage_DoubleClick);
			// 
			// imageList1
			// 
			this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
			this.imageList1.ImageSize = ((System.Drawing.Size)(resources.GetObject("imageList1.ImageSize")));
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// PrintingPreview
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackColor = System.Drawing.Color.White;
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.Controls.Add(this.m_PictureBoxImage);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.Name = "PrintingPreview";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.Size = ((System.Drawing.Size)(resources.GetObject("$this.Size")));
			this.SizeChanged += new System.EventHandler(this.PrintingPreview_SizeChanged);
			this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.PrintingPreview_KeyUp);
			this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.PrintingPreview_KeyDown);
			this.ResumeLayout(false);

		}
Exemple #47
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NewiFolder));
     this.close           = new System.Windows.Forms.Button();
     this.iFolderEmblem   = new System.Windows.Forms.PictureBox();
     this.dontAsk         = new System.Windows.Forms.CheckBox();
     this.iFolderOverview = new System.Windows.Forms.LinkLabel();
     this.button1         = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // close
     //
     this.close.AccessibleDescription = resources.GetString("close.AccessibleDescription");
     this.close.AccessibleName        = resources.GetString("close.AccessibleName");
     this.close.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("close.Anchor")));
     this.close.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("close.BackgroundImage")));
     this.close.DialogResult    = System.Windows.Forms.DialogResult.OK;
     this.close.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("close.Dock")));
     this.close.Enabled         = ((bool)(resources.GetObject("close.Enabled")));
     this.close.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("close.FlatStyle")));
     this.close.Font            = ((System.Drawing.Font)(resources.GetObject("close.Font")));
     this.close.Image           = ((System.Drawing.Image)(resources.GetObject("close.Image")));
     this.close.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("close.ImageAlign")));
     this.close.ImageIndex      = ((int)(resources.GetObject("close.ImageIndex")));
     this.close.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("close.ImeMode")));
     this.close.Location        = ((System.Drawing.Point)(resources.GetObject("close.Location")));
     this.close.Name            = "close";
     this.close.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("close.RightToLeft")));
     this.close.Size            = ((System.Drawing.Size)(resources.GetObject("close.Size")));
     this.close.TabIndex        = ((int)(resources.GetObject("close.TabIndex")));
     this.close.Text            = resources.GetString("close.Text");
     this.close.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("close.TextAlign")));
     this.close.Visible         = ((bool)(resources.GetObject("close.Visible")));
     this.close.Click          += new System.EventHandler(this.close_Click);
     //
     // iFolderEmblem
     //
     this.iFolderEmblem.AccessibleDescription = resources.GetString("iFolderEmblem.AccessibleDescription");
     this.iFolderEmblem.AccessibleName        = resources.GetString("iFolderEmblem.AccessibleName");
     this.iFolderEmblem.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("iFolderEmblem.Anchor")));
     this.iFolderEmblem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("iFolderEmblem.BackgroundImage")));
     this.iFolderEmblem.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("iFolderEmblem.Dock")));
     this.iFolderEmblem.Enabled         = ((bool)(resources.GetObject("iFolderEmblem.Enabled")));
     this.iFolderEmblem.Font            = ((System.Drawing.Font)(resources.GetObject("iFolderEmblem.Font")));
     this.iFolderEmblem.Image           = ((System.Drawing.Image)(resources.GetObject("iFolderEmblem.Image")));
     this.iFolderEmblem.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("iFolderEmblem.ImeMode")));
     this.iFolderEmblem.Location        = ((System.Drawing.Point)(resources.GetObject("iFolderEmblem.Location")));
     this.iFolderEmblem.Name            = "iFolderEmblem";
     this.iFolderEmblem.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("iFolderEmblem.RightToLeft")));
     this.iFolderEmblem.Size            = ((System.Drawing.Size)(resources.GetObject("iFolderEmblem.Size")));
     this.iFolderEmblem.SizeMode        = ((System.Windows.Forms.PictureBoxSizeMode)(resources.GetObject("iFolderEmblem.SizeMode")));
     this.iFolderEmblem.TabIndex        = ((int)(resources.GetObject("iFolderEmblem.TabIndex")));
     this.iFolderEmblem.TabStop         = false;
     this.iFolderEmblem.Text            = resources.GetString("iFolderEmblem.Text");
     this.iFolderEmblem.Visible         = ((bool)(resources.GetObject("iFolderEmblem.Visible")));
     this.iFolderEmblem.Paint          += new System.Windows.Forms.PaintEventHandler(this.iFolderEmblem_Paint);
     //
     // dontAsk
     //
     this.dontAsk.AccessibleDescription = resources.GetString("dontAsk.AccessibleDescription");
     this.dontAsk.AccessibleName        = resources.GetString("dontAsk.AccessibleName");
     this.dontAsk.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dontAsk.Anchor")));
     this.dontAsk.Appearance      = ((System.Windows.Forms.Appearance)(resources.GetObject("dontAsk.Appearance")));
     this.dontAsk.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dontAsk.BackgroundImage")));
     this.dontAsk.CheckAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("dontAsk.CheckAlign")));
     this.dontAsk.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("dontAsk.Dock")));
     this.dontAsk.Enabled         = ((bool)(resources.GetObject("dontAsk.Enabled")));
     this.dontAsk.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("dontAsk.FlatStyle")));
     this.dontAsk.Font            = ((System.Drawing.Font)(resources.GetObject("dontAsk.Font")));
     this.dontAsk.Image           = ((System.Drawing.Image)(resources.GetObject("dontAsk.Image")));
     this.dontAsk.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("dontAsk.ImageAlign")));
     this.dontAsk.ImageIndex      = ((int)(resources.GetObject("dontAsk.ImageIndex")));
     this.dontAsk.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("dontAsk.ImeMode")));
     this.dontAsk.Location        = ((System.Drawing.Point)(resources.GetObject("dontAsk.Location")));
     this.dontAsk.Name            = "dontAsk";
     this.dontAsk.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dontAsk.RightToLeft")));
     this.dontAsk.Size            = ((System.Drawing.Size)(resources.GetObject("dontAsk.Size")));
     this.dontAsk.TabIndex        = ((int)(resources.GetObject("dontAsk.TabIndex")));
     this.dontAsk.Text            = resources.GetString("dontAsk.Text");
     this.dontAsk.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("dontAsk.TextAlign")));
     this.dontAsk.Visible         = ((bool)(resources.GetObject("dontAsk.Visible")));
     //
     // iFolderOverview
     //
     this.iFolderOverview.AccessibleDescription = resources.GetString("iFolderOverview.AccessibleDescription");
     this.iFolderOverview.AccessibleName        = resources.GetString("iFolderOverview.AccessibleName");
     this.iFolderOverview.Anchor       = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("iFolderOverview.Anchor")));
     this.iFolderOverview.AutoSize     = ((bool)(resources.GetObject("iFolderOverview.AutoSize")));
     this.iFolderOverview.Dock         = ((System.Windows.Forms.DockStyle)(resources.GetObject("iFolderOverview.Dock")));
     this.iFolderOverview.Enabled      = ((bool)(resources.GetObject("iFolderOverview.Enabled")));
     this.iFolderOverview.Font         = ((System.Drawing.Font)(resources.GetObject("iFolderOverview.Font")));
     this.iFolderOverview.Image        = ((System.Drawing.Image)(resources.GetObject("iFolderOverview.Image")));
     this.iFolderOverview.ImageAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("iFolderOverview.ImageAlign")));
     this.iFolderOverview.ImageIndex   = ((int)(resources.GetObject("iFolderOverview.ImageIndex")));
     this.iFolderOverview.ImeMode      = ((System.Windows.Forms.ImeMode)(resources.GetObject("iFolderOverview.ImeMode")));
     this.iFolderOverview.LinkArea     = ((System.Windows.Forms.LinkArea)(resources.GetObject("iFolderOverview.LinkArea")));
     this.iFolderOverview.Location     = ((System.Drawing.Point)(resources.GetObject("iFolderOverview.Location")));
     this.iFolderOverview.Name         = "iFolderOverview";
     this.iFolderOverview.RightToLeft  = ((System.Windows.Forms.RightToLeft)(resources.GetObject("iFolderOverview.RightToLeft")));
     this.iFolderOverview.Size         = ((System.Drawing.Size)(resources.GetObject("iFolderOverview.Size")));
     this.iFolderOverview.TabIndex     = ((int)(resources.GetObject("iFolderOverview.TabIndex")));
     this.iFolderOverview.TabStop      = true;
     this.iFolderOverview.Text         = resources.GetString("iFolderOverview.Text");
     this.iFolderOverview.TextAlign    = ((System.Drawing.ContentAlignment)(resources.GetObject("iFolderOverview.TextAlign")));
     this.iFolderOverview.Visible      = ((bool)(resources.GetObject("iFolderOverview.Visible")));
     this.iFolderOverview.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.iFolderOverview_LinkClicked);
     //
     // button1
     //
     this.button1.AccessibleDescription = resources.GetString("button1.AccessibleDescription");
     this.button1.AccessibleName        = resources.GetString("button1.AccessibleName");
     this.button1.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor")));
     this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
     this.button1.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock")));
     this.button1.Enabled         = ((bool)(resources.GetObject("button1.Enabled")));
     this.button1.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle")));
     this.button1.Font            = ((System.Drawing.Font)(resources.GetObject("button1.Font")));
     this.button1.Image           = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
     this.button1.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign")));
     this.button1.ImageIndex      = ((int)(resources.GetObject("button1.ImageIndex")));
     this.button1.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode")));
     this.button1.Location        = ((System.Drawing.Point)(resources.GetObject("button1.Location")));
     this.button1.Name            = "button1";
     this.button1.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft")));
     this.button1.Size            = ((System.Drawing.Size)(resources.GetObject("button1.Size")));
     this.button1.TabIndex        = ((int)(resources.GetObject("button1.TabIndex")));
     this.button1.Text            = resources.GetString("button1.Text");
     this.button1.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign")));
     this.button1.Visible         = ((bool)(resources.GetObject("button1.Visible")));
     this.button1.Click          += new EventHandler(button1_Click);
     //
     // NewiFolder
     //
     this.AcceptButton          = this.close;
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.button1);
     this.Controls.Add(this.iFolderOverview);
     this.Controls.Add(this.dontAsk);
     this.Controls.Add(this.iFolderEmblem);
     this.Controls.Add(this.close);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox     = false;
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimizeBox     = false;
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "NewiFolder";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.Load           += new System.EventHandler(this.NewiFolder_Load);
     this.ResumeLayout(false);
 }
Exemple #48
0
        internal static string GetPathToTool(System.Resources.ResourceManager resources)
        {
#pragma warning disable 618 // Disabling warning on using internal ToolLocationHelper API. At some point we should migrate this.
            string toolPath = ToolLocationHelper.GetPathToWindowsSdkFile(ToolName, TargetDotNetFrameworkVersion.VersionLatest, VisualStudioVersion.VersionLatest);
            if (toolPath == null)
            {
                toolPath = ToolLocationHelper.GetPathToWindowsSdkFile(ToolName, TargetDotNetFrameworkVersion.Version45, VisualStudioVersion.Version110);
            }
            if (toolPath == null)
            {
                toolPath = Path.Combine(ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version40, VisualStudioVersion.Version100), "bin", ToolName);
            }
            if (toolPath == null)
            {
                toolPath = Path.Combine(Directory.GetCurrentDirectory(), ToolName);
            }
            if (!File.Exists(toolPath))
            {
                throw new ApplicationException(String.Format(CultureInfo.CurrentCulture, resources.GetString("SecurityUtil.SigntoolNotFound"), toolPath));
            }
            return(toolPath);

#pragma warning restore 618
        }
        /// <summary>
        /// Finds Python mods and adds them to ReflectMan's Types list.
        /// </summary>
        public static void Scan()
        {
            try
            {
                if (scanned)
                {
                    throw new Exception("PythonAPI.Scan() called multiple times");
                }
                scopes = new Dictionary <string, ScriptScope>();
                var resman   = new System.Resources.ResourceManager("Plex.Engine.Properties.Resources", typeof(Properties.Resources).Assembly);
                var provider = new CSharpCodeProvider();
                var refs     = AppDomain.CurrentDomain.GetAssemblies().Select(f => f.Location).Concat(new string[] { "Microsoft.CSharp.dll" }).ToArray();
                var types    = new List <Type>();
                var sha      = new SHA512Managed();
                var oldcache = new Dictionary <string, AsmCacheEntry>();
                var newcache = new Dictionary <string, AsmCacheEntry>();
                if (File.Exists("pyasmcache.dat"))
                {
                    using (var stream = File.OpenRead("pyasmcache.dat"))
                        try
                        {
                            oldcache = AsmCache.Load(stream);
                        }
                        catch (Exception ex)
                        {
#if DEBUG
                            Console.WriteLine("[dev] Failed to read the assembly cache.");
                            Console.WriteLine(ex.ToString());
#endif
                        }
                }
                foreach (var fname in Directory.GetFiles(Environment.CurrentDirectory, "*.py").Select(Path.GetFileName))
                {
                    byte[] checksum;
                    using (FileStream stream = File.OpenRead(fname))
                        checksum = sha.ComputeHash(stream);
                    var script = File.ReadAllText(fname);
                    try
                    {
                        scopes[fname] = PythonHelper.RunCode(script);
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine("[dev] Failed to execute Python script " + fname);
                        Console.WriteLine(ex.ToString());
                        continue;
                    }
                    if (oldcache.ContainsKey(fname))
                    {
                        var oldentry = oldcache[fname];
                        if (checksum.SequenceEqual(oldentry.checksum))
                        {
                            try
                            {
                                foreach (var asm in oldentry.asms)
                                {
                                    types.AddRange(Assembly.Load(asm).GetTypes());
                                }
                                newcache.Add(fname, oldentry);
                                continue;
                            }
                            catch (Exception ex)
                            {
#if DEBUG
                                Console.WriteLine("[dev] Failed to load cached assembly for " + fname);
                                Console.WriteLine(ex.ToString());
#endif
                            }
                        }
                    }
                    var scriptlines = script.Replace("\r\n", "\n").Replace("\r", "\n").Split('\n'); // line-ending independent...
                    int pos         = 0;
                    var entry       = new AsmCacheEntry();
                    entry.checksum = checksum;
                    var parameters = new CompilerParameters();
                    parameters.ReferencedAssemblies.AddRange(refs);
                    parameters.GenerateInMemory   = false; // We need to keep the temporary file around long enough to copy it to the cache.
                    parameters.GenerateExecutable = false;
                    try
                    {
                        while (pos < scriptlines.Length)
                        {
                            while (!scriptlines[pos].StartsWith("#Plex"))
                            {
                                pos++;
                            }
                            var templatename = scriptlines[pos].Split(':')[1];
                            pos++;
                            string decorators = "";
                            while (scriptlines[pos].StartsWith("#"))
                            {
                                decorators += scriptlines[pos].Substring(1) + Environment.NewLine; // remove # and add to string
                                pos++;
                            }
                            if (!scriptlines[pos].StartsWith("class "))
                            {
                                throw new Exception("Plex decorators without matching global class");
                            }
                            var classname = scriptlines[pos].Split(' ')[1];
                            if (classname.Contains("(")) // derived class
                            {
                                classname = classname.Split('(')[0];
                            }
                            else
                            {
                                classname = classname.Remove(classname.Length - 1);                                                       // remove :
                            }
                            var code = String.Format(resman.GetString(templatename), decorators, classname, fname.Replace("\\", "\\\\")); // generate the C# wrapper class from template
#if DEBUG
                            Console.WriteLine(code);
#endif
                            var results = provider.CompileAssemblyFromSource(parameters, code);
                            if (results.Errors.HasErrors)
                            {
                                string except = "The wrapper class failed to compile.";
                                foreach (CompilerError error in results.Errors)
                                {
                                    except += Environment.NewLine + error.ErrorText;
                                }
                                throw new Exception(except);
                            }
                            types.AddRange(results.CompiledAssembly.GetTypes()); // We did it!
                            entry.asms.Add(File.ReadAllBytes(results.PathToAssembly));
                            pos++;                                               // keep scanning the file for more classes
                        }
                    }
                    catch (Exception ex) // Skip any file that has issues
                    {
#if DEBUG
                        Console.WriteLine("[dev] Exception in the Python API: file " + fname + ", line " + pos.ToString() + ".");
                        Console.WriteLine(ex.ToString());
#endif
                    }
                    newcache.Add(fname, entry);
                }


#if DEBUG
                Console.WriteLine("[dev] " + types.Count.ToString() + " Python mods loaded successfully.");
#endif
                if (types.Count > 0)
                {
                    ReflectMan.AddTypes(types.ToArray());
                    using (var stream = File.OpenWrite("pyasmcache.dat"))
                        AsmCache.Save(stream, newcache);
                }
                scanned = true;
            }
            catch
            {
            }
        }
Exemple #50
0
        /// <summary>
        /// Initializes arrayList new instance of the <see cref="styleHandler"/> class.
        /// </summary>
        /// <param name="stylesPath">The styles path.</param>
        /// <param name="appdataFolderDesigns">The appdata folder designs.</param>
        /// <remarks>Documented by Dev05, 2007-08-10</remarks>
        public StyleHandler(string stylesPath, string appdataFolderDesigns, System.Resources.ResourceManager resourceManager, bool runFromStick)
        {
            //get resource strings
            this.ResourceManager = resourceManager;

            string styleExtension = resourceManager.GetString("STYLE_STYLE_EXTENSION");

            m_styleExtension = string.IsNullOrEmpty(styleExtension) ? ".style" : styleExtension;

            string defaultStyleName = resourceManager.GetString("STYLE_DEFAULT_STYLENAME");

            m_defaultStyleName = string.IsNullOrEmpty(defaultStyleName) ? "Default" : defaultStyleName;

            if (runFromStick)
            {
                string[] files = null;
                //add own skins
                if (Directory.Exists(stylesPath))
                {
                    files = Directory.GetFiles(stylesPath, "*" + m_styleExtension);
                    AddStyles(stylesPath, files);
                }
                //add already installed skins
                if (Directory.Exists(appdataFolderDesigns))
                {
                    files = Directory.GetFiles(appdataFolderDesigns, "*" + m_styleExtension);
                    AddStyles(appdataFolderDesigns, files);
                }

                StylesPath = stylesPath;
            }
            else
            {
                //create default skin folder
                if (!Directory.Exists(appdataFolderDesigns))
                {
                    Directory.CreateDirectory(appdataFolderDesigns);
                }

                StylesPath = appdataFolderDesigns;
#if !DEBUG
                if (!Directory.Exists(appdataFolderDesigns + @"\System"))
#endif
                {
                    Directory.CreateDirectory(appdataFolderDesigns);
                    if (Directory.Exists(stylesPath))
                    {
                        CopyFolder(stylesPath, appdataFolderDesigns);
                    }
                }
                string[] files = Directory.GetFiles(appdataFolderDesigns, "*" + m_styleExtension);
                AddStyles(appdataFolderDesigns, files);
                if (Directory.Exists(stylesPath))
                {
                    files = Directory.GetFiles(stylesPath, "*" + m_styleExtension);
                    AddStyles(stylesPath, files);
                }
            }

            //add empty default style (as fallback)
            if (!Styles.ContainsKey(m_defaultStyleName))
            {
                Style defaultStyle = new Style();
                CheckStyles(stylesPath, defaultStyle, ResourceManager);
                defaultStyle.AnswerStylesheetPath   = Path.Combine(appdataFolderDesigns, defaultStyle.AnswerStylesheetPath);
                defaultStyle.QuestionStylesheetPath = Path.Combine(appdataFolderDesigns, defaultStyle.QuestionStylesheetPath);
                defaultStyle.StylePath = Path.Combine(appdataFolderDesigns, defaultStyle.StylePath);
                Styles.Add(m_defaultStyleName, defaultStyle);
            }
        }
Exemple #51
0
        /// <summary>
        /// Download iFolder
        /// </summary>
        /// <param name="defaultiFolder"></param>
        private bool DownloadiFolder(iFolderWeb defaultiFolder)
        {
            bool status = false;

            if (defaultiFolder.encryptionAlgorithm == null || defaultiFolder.encryptionAlgorithm == "")
            {
                // unencrypted...
                status = true;
            }
            else
            {
                // encrypted.. Check for passphrase
                string passphrasecheck = null;
                passphrasecheck = simws.GetPassPhrase(domainInfo.ID);
                if (passphrasecheck == null || passphrasecheck == "")
                {
                    VerifyPassphraseDialog vpd = new VerifyPassphraseDialog(domainInfo.ID, this.simws);
                    vpd.ShowDialog();
                    status = vpd.PassphraseStatus;
                }
                else
                {
                    status = true;
                }
            }
            if (status == true)
            {
                try
                {
                    string        downloadpath = this.LocationEntry.Text;
                    DirectoryInfo di           = new DirectoryInfo(downloadpath);
                    if (di.Name == defaultiFolder.Name)
                    {
                        downloadpath = Directory.GetParent(this.LocationEntry.Text).ToString();
                        di           = new DirectoryInfo(downloadpath);
                    }

                    di.Create();
                    iFolderWeb ifolder = null;
                    if (System.IO.Directory.Exists(Path.Combine(downloadpath, defaultiFolder.Name)))
                    {
                        MyMessageBox mmb = new MyMessageBox(resManager.GetString("selectoption"), resManager.GetString("alreadyexists"), String.Empty, MyMessageBoxButtons.OKCancel, MyMessageBoxIcon.Question, MyMessageBoxDefaultButton.Button1);
                        if (mmb.ShowDialog() == DialogResult.OK)
                        {
                            ifolder = this.ifws.MergeiFolder(defaultiFolder.DomainID, defaultiFolder.ID, Path.Combine(downloadpath, defaultiFolder.Name));
                        }
                        else
                        {
                            return(false);
                        }
                    }
                    else
                    {
                        ifolder = this.ifws.AcceptiFolderInvitation(defaultiFolder.DomainID, defaultiFolder.ID, downloadpath);
                    }
                    AccountWizard wiz = (AccountWizard)this.Parent;
                    if (ifolder != null && wiz != null)
                    {
                        wiz.GlobalProps.AddiFolderToAcceptediFolders(ifolder, null, downloadpath);
                    }
                    wiz.UpdateDisplay(ifolder, Path.Combine(downloadpath, ifolder.Name));
                }
                catch (Exception ex)
                {
                    DisplayErrorMesg(ex);
                    return(false);
                }
                return(true);
            }
            else
            {
                return(status);
            }
        }
Exemple #52
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        ///

        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DlgPicture));
            this.btnCancel    = new System.Windows.Forms.Button();
            this.btnOk        = new System.Windows.Forms.Button();
            this.panel1       = new System.Windows.Forms.Panel();
            this.chkGrayscale = new System.Windows.Forms.CheckBox();
            this.txtCellEnd   = new System.Windows.Forms.TextBox();
            this.txtCellStart = new System.Windows.Forms.TextBox();
            this.label4       = new System.Windows.Forms.Label();
            this.label3       = new System.Windows.Forms.Label();
            this.label2       = new System.Windows.Forms.Label();
            this.numFileIndex = new System.Windows.Forms.NumericUpDown();
            this.label1       = new System.Windows.Forms.Label();
            this.cmbPicType   = new System.Windows.Forms.ComboBox();
            this.panel1.SuspendLayout();
            this.numFileIndex.BeginInit();
            base.SuspendLayout();
            this.btnCancel.AccessibleDescription = resources.GetString("btnCancel.AccessibleDescription");
            this.btnCancel.AccessibleName        = resources.GetString("btnCancel.AccessibleName");
            this.btnCancel.Anchor            = (System.Windows.Forms.AnchorStyles)resources.GetObject("btnCancel.Anchor");
            this.btnCancel.BackgroundImage   = (System.Drawing.Image)resources.GetObject("btnCancel.BackgroundImage");
            this.btnCancel.DialogResult      = System.Windows.Forms.DialogResult.Cancel;
            this.btnCancel.Dock              = (System.Windows.Forms.DockStyle)resources.GetObject("btnCancel.Dock");
            this.btnCancel.Enabled           = (bool)resources.GetObject("btnCancel.Enabled");
            this.btnCancel.FlatStyle         = (System.Windows.Forms.FlatStyle)resources.GetObject("btnCancel.FlatStyle");
            this.btnCancel.Font              = (System.Drawing.Font)resources.GetObject("btnCancel.Font");
            this.btnCancel.Image             = (System.Drawing.Image)resources.GetObject("btnCancel.Image");
            this.btnCancel.ImageAlign        = (System.Drawing.ContentAlignment)resources.GetObject("btnCancel.ImageAlign");
            this.btnCancel.ImageIndex        = (int)resources.GetObject("btnCancel.ImageIndex");
            this.btnCancel.ImeMode           = (System.Windows.Forms.ImeMode)resources.GetObject("btnCancel.ImeMode");
            this.btnCancel.Location          = (System.Drawing.Point)resources.GetObject("btnCancel.Location");
            this.btnCancel.Name              = "btnCancel";
            this.btnCancel.RightToLeft       = (System.Windows.Forms.RightToLeft)resources.GetObject("btnCancel.RightToLeft");
            this.btnCancel.Size              = (System.Drawing.Size)resources.GetObject("btnCancel.Size");
            this.btnCancel.TabIndex          = (int)resources.GetObject("btnCancel.TabIndex");
            this.btnCancel.Text              = resources.GetString("btnCancel.Text");
            this.btnCancel.TextAlign         = (System.Drawing.ContentAlignment)resources.GetObject("btnCancel.TextAlign");
            this.btnCancel.Visible           = (bool)resources.GetObject("btnCancel.Visible");
            this.btnOk.AccessibleDescription = resources.GetString("btnOk.AccessibleDescription");
            this.btnOk.AccessibleName        = resources.GetString("btnOk.AccessibleName");
            this.btnOk.Anchor                 = (System.Windows.Forms.AnchorStyles)resources.GetObject("btnOk.Anchor");
            this.btnOk.BackgroundImage        = (System.Drawing.Image)resources.GetObject("btnOk.BackgroundImage");
            this.btnOk.Dock                   = (System.Windows.Forms.DockStyle)resources.GetObject("btnOk.Dock");
            this.btnOk.Enabled                = (bool)resources.GetObject("btnOk.Enabled");
            this.btnOk.FlatStyle              = (System.Windows.Forms.FlatStyle)resources.GetObject("btnOk.FlatStyle");
            this.btnOk.Font                   = (System.Drawing.Font)resources.GetObject("btnOk.Font");
            this.btnOk.Image                  = (System.Drawing.Image)resources.GetObject("btnOk.Image");
            this.btnOk.ImageAlign             = (System.Drawing.ContentAlignment)resources.GetObject("btnOk.ImageAlign");
            this.btnOk.ImageIndex             = (int)resources.GetObject("btnOk.ImageIndex");
            this.btnOk.ImeMode                = (System.Windows.Forms.ImeMode)resources.GetObject("btnOk.ImeMode");
            this.btnOk.Location               = (System.Drawing.Point)resources.GetObject("btnOk.Location");
            this.btnOk.Name                   = "btnOk";
            this.btnOk.RightToLeft            = (System.Windows.Forms.RightToLeft)resources.GetObject("btnOk.RightToLeft");
            this.btnOk.Size                   = (System.Drawing.Size)resources.GetObject("btnOk.Size");
            this.btnOk.TabIndex               = (int)resources.GetObject("btnOk.TabIndex");
            this.btnOk.Text                   = resources.GetString("btnOk.Text");
            this.btnOk.TextAlign              = (System.Drawing.ContentAlignment)resources.GetObject("btnOk.TextAlign");
            this.btnOk.Visible                = (bool)resources.GetObject("btnOk.Visible");
            this.btnOk.Click                 += new System.EventHandler(this.btnOk_Click);
            this.panel1.AccessibleDescription = resources.GetString("panel1.AccessibleDescription");
            this.panel1.AccessibleName        = resources.GetString("panel1.AccessibleName");
            this.panel1.Anchor                = (System.Windows.Forms.AnchorStyles)resources.GetObject("panel1.Anchor");
            this.panel1.AutoScroll            = (bool)resources.GetObject("panel1.AutoScroll");
            this.panel1.AutoScrollMargin      = (System.Drawing.Size)resources.GetObject("panel1.AutoScrollMargin");
            this.panel1.AutoScrollMinSize     = (System.Drawing.Size)resources.GetObject("panel1.AutoScrollMinSize");
            this.panel1.BackgroundImage       = (System.Drawing.Image)resources.GetObject("panel1.BackgroundImage");
            this.panel1.Controls.Add(this.chkGrayscale);
            this.panel1.Controls.Add(this.txtCellEnd);
            this.panel1.Controls.Add(this.txtCellStart);
            this.panel1.Controls.Add(this.label4);
            this.panel1.Controls.Add(this.label3);
            this.panel1.Controls.Add(this.label2);
            this.panel1.Controls.Add(this.numFileIndex);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.cmbPicType);
            this.panel1.Dock        = (System.Windows.Forms.DockStyle)resources.GetObject("panel1.Dock");
            this.panel1.Enabled     = (bool)resources.GetObject("panel1.Enabled");
            this.panel1.Font        = (System.Drawing.Font)resources.GetObject("panel1.Font");
            this.panel1.ImeMode     = (System.Windows.Forms.ImeMode)resources.GetObject("panel1.ImeMode");
            this.panel1.Location    = (System.Drawing.Point)resources.GetObject("panel1.Location");
            this.panel1.Name        = "panel1";
            this.panel1.RightToLeft = (System.Windows.Forms.RightToLeft)resources.GetObject("panel1.RightToLeft");
            this.panel1.Size        = (System.Drawing.Size)resources.GetObject("panel1.Size");
            this.panel1.TabIndex    = (int)resources.GetObject("panel1.TabIndex");
            this.panel1.Text        = resources.GetString("panel1.Text");
            this.panel1.Visible     = (bool)resources.GetObject("panel1.Visible");
            this.chkGrayscale.AccessibleDescription = resources.GetString("chkGrayscale.AccessibleDescription");
            this.chkGrayscale.AccessibleName        = resources.GetString("chkGrayscale.AccessibleName");
            this.chkGrayscale.Anchor              = (System.Windows.Forms.AnchorStyles)resources.GetObject("chkGrayscale.Anchor");
            this.chkGrayscale.Appearance          = (System.Windows.Forms.Appearance)resources.GetObject("chkGrayscale.Appearance");
            this.chkGrayscale.BackgroundImage     = (System.Drawing.Image)resources.GetObject("chkGrayscale.BackgroundImage");
            this.chkGrayscale.CheckAlign          = (System.Drawing.ContentAlignment)resources.GetObject("chkGrayscale.CheckAlign");
            this.chkGrayscale.Checked             = true;
            this.chkGrayscale.CheckState          = System.Windows.Forms.CheckState.Checked;
            this.chkGrayscale.Dock                = (System.Windows.Forms.DockStyle)resources.GetObject("chkGrayscale.Dock");
            this.chkGrayscale.Enabled             = (bool)resources.GetObject("chkGrayscale.Enabled");
            this.chkGrayscale.FlatStyle           = (System.Windows.Forms.FlatStyle)resources.GetObject("chkGrayscale.FlatStyle");
            this.chkGrayscale.Font                = (System.Drawing.Font)resources.GetObject("chkGrayscale.Font");
            this.chkGrayscale.Image               = (System.Drawing.Image)resources.GetObject("chkGrayscale.Image");
            this.chkGrayscale.ImageAlign          = (System.Drawing.ContentAlignment)resources.GetObject("chkGrayscale.ImageAlign");
            this.chkGrayscale.ImageIndex          = (int)resources.GetObject("chkGrayscale.ImageIndex");
            this.chkGrayscale.ImeMode             = (System.Windows.Forms.ImeMode)resources.GetObject("chkGrayscale.ImeMode");
            this.chkGrayscale.Location            = (System.Drawing.Point)resources.GetObject("chkGrayscale.Location");
            this.chkGrayscale.Name                = "chkGrayscale";
            this.chkGrayscale.RightToLeft         = (System.Windows.Forms.RightToLeft)resources.GetObject("chkGrayscale.RightToLeft");
            this.chkGrayscale.Size                = (System.Drawing.Size)resources.GetObject("chkGrayscale.Size");
            this.chkGrayscale.TabIndex            = (int)resources.GetObject("chkGrayscale.TabIndex");
            this.chkGrayscale.Text                = resources.GetString("chkGrayscale.Text");
            this.chkGrayscale.TextAlign           = (System.Drawing.ContentAlignment)resources.GetObject("chkGrayscale.TextAlign");
            this.chkGrayscale.Visible             = (bool)resources.GetObject("chkGrayscale.Visible");
            this.txtCellEnd.AccessibleDescription = resources.GetString("txtCellEnd.AccessibleDescription");
            this.txtCellEnd.AccessibleName        = resources.GetString("txtCellEnd.AccessibleName");
            this.txtCellEnd.Anchor                = (System.Windows.Forms.AnchorStyles)resources.GetObject("txtCellEnd.Anchor");
            this.txtCellEnd.AutoSize              = (bool)resources.GetObject("txtCellEnd.AutoSize");
            this.txtCellEnd.BackgroundImage       = (System.Drawing.Image)resources.GetObject("txtCellEnd.BackgroundImage");
            this.txtCellEnd.Dock                    = (System.Windows.Forms.DockStyle)resources.GetObject("txtCellEnd.Dock");
            this.txtCellEnd.Enabled                 = (bool)resources.GetObject("txtCellEnd.Enabled");
            this.txtCellEnd.Font                    = (System.Drawing.Font)resources.GetObject("txtCellEnd.Font");
            this.txtCellEnd.ImeMode                 = (System.Windows.Forms.ImeMode)resources.GetObject("txtCellEnd.ImeMode");
            this.txtCellEnd.Location                = (System.Drawing.Point)resources.GetObject("txtCellEnd.Location");
            this.txtCellEnd.MaxLength               = (int)resources.GetObject("txtCellEnd.MaxLength");
            this.txtCellEnd.Multiline               = (bool)resources.GetObject("txtCellEnd.Multiline");
            this.txtCellEnd.Name                    = "txtCellEnd";
            this.txtCellEnd.PasswordChar            = (char)resources.GetObject("txtCellEnd.PasswordChar");
            this.txtCellEnd.RightToLeft             = (System.Windows.Forms.RightToLeft)resources.GetObject("txtCellEnd.RightToLeft");
            this.txtCellEnd.ScrollBars              = (System.Windows.Forms.ScrollBars)resources.GetObject("txtCellEnd.ScrollBars");
            this.txtCellEnd.Size                    = (System.Drawing.Size)resources.GetObject("txtCellEnd.Size");
            this.txtCellEnd.TabIndex                = (int)resources.GetObject("txtCellEnd.TabIndex");
            this.txtCellEnd.Text                    = resources.GetString("txtCellEnd.Text");
            this.txtCellEnd.TextAlign               = (System.Windows.Forms.HorizontalAlignment)resources.GetObject("txtCellEnd.TextAlign");
            this.txtCellEnd.Visible                 = (bool)resources.GetObject("txtCellEnd.Visible");
            this.txtCellEnd.WordWrap                = (bool)resources.GetObject("txtCellEnd.WordWrap");
            this.txtCellStart.AccessibleDescription = resources.GetString("txtCellStart.AccessibleDescription");
            this.txtCellStart.AccessibleName        = resources.GetString("txtCellStart.AccessibleName");
            this.txtCellStart.Anchor                = (System.Windows.Forms.AnchorStyles)resources.GetObject("txtCellStart.Anchor");
            this.txtCellStart.AutoSize              = (bool)resources.GetObject("txtCellStart.AutoSize");
            this.txtCellStart.BackgroundImage       = (System.Drawing.Image)resources.GetObject("txtCellStart.BackgroundImage");
            this.txtCellStart.Dock                  = (System.Windows.Forms.DockStyle)resources.GetObject("txtCellStart.Dock");
            this.txtCellStart.Enabled               = (bool)resources.GetObject("txtCellStart.Enabled");
            this.txtCellStart.Font                  = (System.Drawing.Font)resources.GetObject("txtCellStart.Font");
            this.txtCellStart.ImeMode               = (System.Windows.Forms.ImeMode)resources.GetObject("txtCellStart.ImeMode");
            this.txtCellStart.Location              = (System.Drawing.Point)resources.GetObject("txtCellStart.Location");
            this.txtCellStart.MaxLength             = (int)resources.GetObject("txtCellStart.MaxLength");
            this.txtCellStart.Multiline             = (bool)resources.GetObject("txtCellStart.Multiline");
            this.txtCellStart.Name                  = "txtCellStart";
            this.txtCellStart.PasswordChar          = (char)resources.GetObject("txtCellStart.PasswordChar");
            this.txtCellStart.RightToLeft           = (System.Windows.Forms.RightToLeft)resources.GetObject("txtCellStart.RightToLeft");
            this.txtCellStart.ScrollBars            = (System.Windows.Forms.ScrollBars)resources.GetObject("txtCellStart.ScrollBars");
            this.txtCellStart.Size                  = (System.Drawing.Size)resources.GetObject("txtCellStart.Size");
            this.txtCellStart.TabIndex              = (int)resources.GetObject("txtCellStart.TabIndex");
            this.txtCellStart.Text                  = resources.GetString("txtCellStart.Text");
            this.txtCellStart.TextAlign             = (System.Windows.Forms.HorizontalAlignment)resources.GetObject("txtCellStart.TextAlign");
            this.txtCellStart.Visible               = (bool)resources.GetObject("txtCellStart.Visible");
            this.txtCellStart.WordWrap              = (bool)resources.GetObject("txtCellStart.WordWrap");
            this.label4.AccessibleDescription       = resources.GetString("label4.AccessibleDescription");
            this.label4.AccessibleName              = resources.GetString("label4.AccessibleName");
            this.label4.Anchor                      = (System.Windows.Forms.AnchorStyles)resources.GetObject("label4.Anchor");
            this.label4.AutoSize                    = (bool)resources.GetObject("label4.AutoSize");
            this.label4.Dock                        = (System.Windows.Forms.DockStyle)resources.GetObject("label4.Dock");
            this.label4.Enabled                     = (bool)resources.GetObject("label4.Enabled");
            this.label4.Font                        = (System.Drawing.Font)resources.GetObject("label4.Font");
            this.label4.Image                       = (System.Drawing.Image)resources.GetObject("label4.Image");
            this.label4.ImageAlign                  = (System.Drawing.ContentAlignment)resources.GetObject("label4.ImageAlign");
            this.label4.ImageIndex                  = (int)resources.GetObject("label4.ImageIndex");
            this.label4.ImeMode                     = (System.Windows.Forms.ImeMode)resources.GetObject("label4.ImeMode");
            this.label4.Location                    = (System.Drawing.Point)resources.GetObject("label4.Location");
            this.label4.Name                        = "label4";
            this.label4.RightToLeft                 = (System.Windows.Forms.RightToLeft)resources.GetObject("label4.RightToLeft");
            this.label4.Size                        = (System.Drawing.Size)resources.GetObject("label4.Size");
            this.label4.TabIndex                    = (int)resources.GetObject("label4.TabIndex");
            this.label4.Text                        = resources.GetString("label4.Text");
            this.label4.TextAlign                   = (System.Drawing.ContentAlignment)resources.GetObject("label4.TextAlign");
            this.label4.Visible                     = (bool)resources.GetObject("label4.Visible");
            this.label3.AccessibleDescription       = resources.GetString("label3.AccessibleDescription");
            this.label3.AccessibleName              = resources.GetString("label3.AccessibleName");
            this.label3.Anchor                      = (System.Windows.Forms.AnchorStyles)resources.GetObject("label3.Anchor");
            this.label3.AutoSize                    = (bool)resources.GetObject("label3.AutoSize");
            this.label3.Dock                        = (System.Windows.Forms.DockStyle)resources.GetObject("label3.Dock");
            this.label3.Enabled                     = (bool)resources.GetObject("label3.Enabled");
            this.label3.Font                        = (System.Drawing.Font)resources.GetObject("label3.Font");
            this.label3.Image                       = (System.Drawing.Image)resources.GetObject("label3.Image");
            this.label3.ImageAlign                  = (System.Drawing.ContentAlignment)resources.GetObject("label3.ImageAlign");
            this.label3.ImageIndex                  = (int)resources.GetObject("label3.ImageIndex");
            this.label3.ImeMode                     = (System.Windows.Forms.ImeMode)resources.GetObject("label3.ImeMode");
            this.label3.Location                    = (System.Drawing.Point)resources.GetObject("label3.Location");
            this.label3.Name                        = "label3";
            this.label3.RightToLeft                 = (System.Windows.Forms.RightToLeft)resources.GetObject("label3.RightToLeft");
            this.label3.Size                        = (System.Drawing.Size)resources.GetObject("label3.Size");
            this.label3.TabIndex                    = (int)resources.GetObject("label3.TabIndex");
            this.label3.Text                        = resources.GetString("label3.Text");
            this.label3.TextAlign                   = (System.Drawing.ContentAlignment)resources.GetObject("label3.TextAlign");
            this.label3.Visible                     = (bool)resources.GetObject("label3.Visible");
            this.label2.AccessibleDescription       = resources.GetString("label2.AccessibleDescription");
            this.label2.AccessibleName              = resources.GetString("label2.AccessibleName");
            this.label2.Anchor                      = (System.Windows.Forms.AnchorStyles)resources.GetObject("label2.Anchor");
            this.label2.AutoSize                    = (bool)resources.GetObject("label2.AutoSize");
            this.label2.Dock                        = (System.Windows.Forms.DockStyle)resources.GetObject("label2.Dock");
            this.label2.Enabled                     = (bool)resources.GetObject("label2.Enabled");
            this.label2.Font                        = (System.Drawing.Font)resources.GetObject("label2.Font");
            this.label2.Image                       = (System.Drawing.Image)resources.GetObject("label2.Image");
            this.label2.ImageAlign                  = (System.Drawing.ContentAlignment)resources.GetObject("label2.ImageAlign");
            this.label2.ImageIndex                  = (int)resources.GetObject("label2.ImageIndex");
            this.label2.ImeMode                     = (System.Windows.Forms.ImeMode)resources.GetObject("label2.ImeMode");
            this.label2.Location                    = (System.Drawing.Point)resources.GetObject("label2.Location");
            this.label2.Name                        = "label2";
            this.label2.RightToLeft                 = (System.Windows.Forms.RightToLeft)resources.GetObject("label2.RightToLeft");
            this.label2.Size                        = (System.Drawing.Size)resources.GetObject("label2.Size");
            this.label2.TabIndex                    = (int)resources.GetObject("label2.TabIndex");
            this.label2.Text                        = resources.GetString("label2.Text");
            this.label2.TextAlign                   = (System.Drawing.ContentAlignment)resources.GetObject("label2.TextAlign");
            this.label2.Visible                     = (bool)resources.GetObject("label2.Visible");
            this.numFileIndex.AccessibleDescription = resources.GetString("numFileIndex.AccessibleDescription");
            this.numFileIndex.AccessibleName        = resources.GetString("numFileIndex.AccessibleName");
            this.numFileIndex.Anchor                = (System.Windows.Forms.AnchorStyles)resources.GetObject("numFileIndex.Anchor");
            this.numFileIndex.Dock                  = (System.Windows.Forms.DockStyle)resources.GetObject("numFileIndex.Dock");
            this.numFileIndex.Enabled               = (bool)resources.GetObject("numFileIndex.Enabled");
            this.numFileIndex.Font                  = (System.Drawing.Font)resources.GetObject("numFileIndex.Font");
            this.numFileIndex.ImeMode               = (System.Windows.Forms.ImeMode)resources.GetObject("numFileIndex.ImeMode");
            this.numFileIndex.Location              = (System.Drawing.Point)resources.GetObject("numFileIndex.Location");
            int[] bits = new int[4];
            bits[0] = 10;
            this.numFileIndex.Maximum = new decimal(bits);
            int[] numArray2 = new int[4];
            numArray2[0] = 1;
            this.numFileIndex.Minimum            = new decimal(numArray2);
            this.numFileIndex.Name               = "numFileIndex";
            this.numFileIndex.RightToLeft        = (System.Windows.Forms.RightToLeft)resources.GetObject("numFileIndex.RightToLeft");
            this.numFileIndex.Size               = (System.Drawing.Size)resources.GetObject("numFileIndex.Size");
            this.numFileIndex.TabIndex           = (int)resources.GetObject("numFileIndex.TabIndex");
            this.numFileIndex.TextAlign          = (System.Windows.Forms.HorizontalAlignment)resources.GetObject("numFileIndex.TextAlign");
            this.numFileIndex.ThousandsSeparator = (bool)resources.GetObject("numFileIndex.ThousandsSeparator");
            this.numFileIndex.UpDownAlign        = (System.Windows.Forms.LeftRightAlignment)resources.GetObject("numFileIndex.UpDownAlign");
            int[] numArray3 = new int[4];
            numArray3[0]                          = 1;
            this.numFileIndex.Value               = new decimal(numArray3);
            this.numFileIndex.Visible             = (bool)resources.GetObject("numFileIndex.Visible");
            this.label1.AccessibleDescription     = resources.GetString("label1.AccessibleDescription");
            this.label1.AccessibleName            = resources.GetString("label1.AccessibleName");
            this.label1.Anchor                    = (System.Windows.Forms.AnchorStyles)resources.GetObject("label1.Anchor");
            this.label1.AutoSize                  = (bool)resources.GetObject("label1.AutoSize");
            this.label1.Dock                      = (System.Windows.Forms.DockStyle)resources.GetObject("label1.Dock");
            this.label1.Enabled                   = (bool)resources.GetObject("label1.Enabled");
            this.label1.Font                      = (System.Drawing.Font)resources.GetObject("label1.Font");
            this.label1.Image                     = (System.Drawing.Image)resources.GetObject("label1.Image");
            this.label1.ImageAlign                = (System.Drawing.ContentAlignment)resources.GetObject("label1.ImageAlign");
            this.label1.ImageIndex                = (int)resources.GetObject("label1.ImageIndex");
            this.label1.ImeMode                   = (System.Windows.Forms.ImeMode)resources.GetObject("label1.ImeMode");
            this.label1.Location                  = (System.Drawing.Point)resources.GetObject("label1.Location");
            this.label1.Name                      = "label1";
            this.label1.RightToLeft               = (System.Windows.Forms.RightToLeft)resources.GetObject("label1.RightToLeft");
            this.label1.Size                      = (System.Drawing.Size)resources.GetObject("label1.Size");
            this.label1.TabIndex                  = (int)resources.GetObject("label1.TabIndex");
            this.label1.Text                      = resources.GetString("label1.Text");
            this.label1.TextAlign                 = (System.Drawing.ContentAlignment)resources.GetObject("label1.TextAlign");
            this.label1.Visible                   = (bool)resources.GetObject("label1.Visible");
            this.cmbPicType.AccessibleDescription = resources.GetString("cmbPicType.AccessibleDescription");
            this.cmbPicType.AccessibleName        = resources.GetString("cmbPicType.AccessibleName");
            this.cmbPicType.Anchor                = (System.Windows.Forms.AnchorStyles)resources.GetObject("cmbPicType.Anchor");
            this.cmbPicType.BackgroundImage       = (System.Drawing.Image)resources.GetObject("cmbPicType.BackgroundImage");
            this.cmbPicType.Dock                  = (System.Windows.Forms.DockStyle)resources.GetObject("cmbPicType.Dock");
            this.cmbPicType.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbPicType.Enabled               = (bool)resources.GetObject("cmbPicType.Enabled");
            this.cmbPicType.Font                  = (System.Drawing.Font)resources.GetObject("cmbPicType.Font");
            this.cmbPicType.ImeMode               = (System.Windows.Forms.ImeMode)resources.GetObject("cmbPicType.ImeMode");
            this.cmbPicType.IntegralHeight        = (bool)resources.GetObject("cmbPicType.IntegralHeight");
            this.cmbPicType.ItemHeight            = (int)resources.GetObject("cmbPicType.ItemHeight");
            this.cmbPicType.Location              = (System.Drawing.Point)resources.GetObject("cmbPicType.Location");
            this.cmbPicType.MaxDropDownItems      = (int)resources.GetObject("cmbPicType.MaxDropDownItems");
            this.cmbPicType.MaxLength             = (int)resources.GetObject("cmbPicType.MaxLength");
            this.cmbPicType.Name                  = "cmbPicType";
            this.cmbPicType.RightToLeft           = (System.Windows.Forms.RightToLeft)resources.GetObject("cmbPicType.RightToLeft");
            this.cmbPicType.Size                  = (System.Drawing.Size)resources.GetObject("cmbPicType.Size");
            this.cmbPicType.TabIndex              = (int)resources.GetObject("cmbPicType.TabIndex");
            this.cmbPicType.Text                  = resources.GetString("cmbPicType.Text");
            this.cmbPicType.Visible               = (bool)resources.GetObject("cmbPicType.Visible");
            this.cmbPicType.SelectedIndexChanged += new System.EventHandler(this.cmbPicType_SelectedIndexChanged);
            base.AcceptButton                     = this.btnOk;
            base.AccessibleDescription            = resources.GetString("$this.AccessibleDescription");
            base.AccessibleName                   = resources.GetString("$this.AccessibleName");
            this.AutoScaleBaseSize                = (System.Drawing.Size)resources.GetObject("$this.AutoScaleBaseSize");
            this.AutoScroll                       = (bool)resources.GetObject("$this.AutoScroll");
            base.AutoScrollMargin                 = (System.Drawing.Size)resources.GetObject("$this.AutoScrollMargin");
            base.AutoScrollMinSize                = (System.Drawing.Size)resources.GetObject("$this.AutoScrollMinSize");
            this.BackgroundImage                  = (System.Drawing.Image)resources.GetObject("$this.BackgroundImage");
            base.CancelButton                     = this.btnCancel;
            base.ClientSize                       = (System.Drawing.Size)resources.GetObject("$this.ClientSize");
            base.Controls.Add(this.panel1);
            base.Controls.Add(this.btnOk);
            base.Controls.Add(this.btnCancel);
            base.Enabled         = (bool)resources.GetObject("$this.Enabled");
            this.Font            = (System.Drawing.Font)resources.GetObject("$this.Font");
            base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            base.Icon            = (System.Drawing.Icon)resources.GetObject("$this.Icon");
            base.ImeMode         = (System.Windows.Forms.ImeMode)resources.GetObject("$this.ImeMode");
            base.Location        = (System.Drawing.Point)resources.GetObject("$this.Location");
            base.MaximizeBox     = false;
            this.MaximumSize     = (System.Drawing.Size)resources.GetObject("$this.MaximumSize");
            base.MinimizeBox     = false;
            this.MinimumSize     = (System.Drawing.Size)resources.GetObject("$this.MinimumSize");
            base.Name            = "DlgPicture";
            this.RightToLeft     = (System.Windows.Forms.RightToLeft)resources.GetObject("$this.RightToLeft");
            base.StartPosition   = (System.Windows.Forms.FormStartPosition)resources.GetObject("$this.StartPosition");
            this.Text            = resources.GetString("$this.Text");
            base.Load           += new System.EventHandler(this.DlgPicture_Load);
            this.panel1.ResumeLayout(false);
            this.numFileIndex.EndInit();
            base.ResumeLayout(false);
        }
Exemple #53
0
        private static void SignPEFile(X509Certificate2 cert, System.Uri timestampUrl, string path, System.Resources.ResourceManager resources, bool useSha256)
        {
            ProcessStartInfo startInfo = new ProcessStartInfo(GetPathToTool(resources), GetCommandLineParameters(cert.Thumbprint, timestampUrl, path, useSha256));

            startInfo.CreateNoWindow         = true;
            startInfo.UseShellExecute        = false;
            startInfo.RedirectStandardError  = true;
            startInfo.RedirectStandardOutput = true;

            Process signTool = null;

            try
            {
                signTool = Process.Start(startInfo);
                signTool.WaitForExit();

                while (!signTool.HasExited)
                {
                    System.Threading.Thread.Sleep(50);
                }
                switch (signTool.ExitCode)
                {
                case 0:
                    // everything was fine
                    break;

                case 1:
                    // error, report it
                    throw new ApplicationException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SigntoolFail"), path, signTool.StandardError.ReadToEnd()));

                case 2:
                    // warning, report it
                    throw new WarningException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SigntoolWarning"), path, signTool.StandardError.ReadToEnd()));

                default:
                    // treat as error
                    throw new ApplicationException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SigntoolFail"), path, signTool.StandardError.ReadToEnd()));
                }
            }
            finally
            {
                if (signTool != null)
                {
                    signTool.Close();
                }
            }
        }
 public static string GetString(StringNames stringName)
 {
     System.Resources.ResourceManager rm = new System.Resources.ResourceManager("TSOP.SlideShow.Strings", System.Reflection.Assembly.GetExecutingAssembly());
     return(rm.GetString(stringName.ToString()));
 }
Exemple #55
0
 /// <summary>
 /// Erforderliche Methode für die Designerunterstützung.
 /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Report));
     this.xpGradientPanel1 = new Panel();
     this.linkLabel1       = new System.Windows.Forms.LinkLabel();
     this.rtb = new System.Windows.Forms.RichTextBox();
     this.sfd = new System.Windows.Forms.SaveFileDialog();
     this.xpGradientPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // xpGradientPanel1
     //
     this.xpGradientPanel1.AccessibleDescription = resources.GetString("xpGradientPanel1.AccessibleDescription");
     this.xpGradientPanel1.AccessibleName        = resources.GetString("xpGradientPanel1.AccessibleName");
     this.xpGradientPanel1.Anchor            = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("xpGradientPanel1.Anchor")));
     this.xpGradientPanel1.AutoScroll        = ((bool)(resources.GetObject("xpGradientPanel1.AutoScroll")));
     this.xpGradientPanel1.AutoScrollMargin  = ((System.Drawing.Size)(resources.GetObject("xpGradientPanel1.AutoScrollMargin")));
     this.xpGradientPanel1.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("xpGradientPanel1.AutoScrollMinSize")));
     this.xpGradientPanel1.BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("xpGradientPanel1.BackgroundImage")));
     this.xpGradientPanel1.Controls.Add(this.linkLabel1);
     this.xpGradientPanel1.Controls.Add(this.rtb);
     this.xpGradientPanel1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("xpGradientPanel1.Dock")));
     this.xpGradientPanel1.Enabled     = ((bool)(resources.GetObject("xpGradientPanel1.Enabled")));
     this.xpGradientPanel1.Font        = ((System.Drawing.Font)(resources.GetObject("xpGradientPanel1.Font")));
     this.xpGradientPanel1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("xpGradientPanel1.ImeMode")));
     this.xpGradientPanel1.Location    = ((System.Drawing.Point)(resources.GetObject("xpGradientPanel1.Location")));
     this.xpGradientPanel1.Name        = "xpGradientPanel1";
     this.xpGradientPanel1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("xpGradientPanel1.RightToLeft")));
     this.xpGradientPanel1.Size        = ((System.Drawing.Size)(resources.GetObject("xpGradientPanel1.Size")));
     this.xpGradientPanel1.TabIndex    = ((int)(resources.GetObject("xpGradientPanel1.TabIndex")));
     this.xpGradientPanel1.Text        = resources.GetString("xpGradientPanel1.Text");
     this.xpGradientPanel1.Visible     = ((bool)(resources.GetObject("xpGradientPanel1.Visible")));
     //
     // linkLabel1
     //
     this.linkLabel1.AccessibleDescription = resources.GetString("linkLabel1.AccessibleDescription");
     this.linkLabel1.AccessibleName        = resources.GetString("linkLabel1.AccessibleName");
     this.linkLabel1.Anchor       = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("linkLabel1.Anchor")));
     this.linkLabel1.AutoSize     = ((bool)(resources.GetObject("linkLabel1.AutoSize")));
     this.linkLabel1.BackColor    = System.Drawing.Color.Transparent;
     this.linkLabel1.Dock         = ((System.Windows.Forms.DockStyle)(resources.GetObject("linkLabel1.Dock")));
     this.linkLabel1.Enabled      = ((bool)(resources.GetObject("linkLabel1.Enabled")));
     this.linkLabel1.Font         = ((System.Drawing.Font)(resources.GetObject("linkLabel1.Font")));
     this.linkLabel1.Image        = ((System.Drawing.Image)(resources.GetObject("linkLabel1.Image")));
     this.linkLabel1.ImageAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("linkLabel1.ImageAlign")));
     this.linkLabel1.ImageIndex   = ((int)(resources.GetObject("linkLabel1.ImageIndex")));
     this.linkLabel1.ImeMode      = ((System.Windows.Forms.ImeMode)(resources.GetObject("linkLabel1.ImeMode")));
     this.linkLabel1.LinkArea     = ((System.Windows.Forms.LinkArea)(resources.GetObject("linkLabel1.LinkArea")));
     this.linkLabel1.Location     = ((System.Drawing.Point)(resources.GetObject("linkLabel1.Location")));
     this.linkLabel1.Name         = "linkLabel1";
     this.linkLabel1.RightToLeft  = ((System.Windows.Forms.RightToLeft)(resources.GetObject("linkLabel1.RightToLeft")));
     this.linkLabel1.Size         = ((System.Drawing.Size)(resources.GetObject("linkLabel1.Size")));
     this.linkLabel1.TabIndex     = ((int)(resources.GetObject("linkLabel1.TabIndex")));
     this.linkLabel1.TabStop      = true;
     this.linkLabel1.Text         = resources.GetString("linkLabel1.Text");
     this.linkLabel1.TextAlign    = ((System.Drawing.ContentAlignment)(resources.GetObject("linkLabel1.TextAlign")));
     this.linkLabel1.Visible      = ((bool)(resources.GetObject("linkLabel1.Visible")));
     this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
     //
     // rtb
     //
     this.rtb.AccessibleDescription = resources.GetString("rtb.AccessibleDescription");
     this.rtb.AccessibleName        = resources.GetString("rtb.AccessibleName");
     this.rtb.Anchor              = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("rtb.Anchor")));
     this.rtb.AutoSize            = ((bool)(resources.GetObject("rtb.AutoSize")));
     this.rtb.BackgroundImage     = ((System.Drawing.Image)(resources.GetObject("rtb.BackgroundImage")));
     this.rtb.BorderStyle         = System.Windows.Forms.BorderStyle.None;
     this.rtb.BulletIndent        = ((int)(resources.GetObject("rtb.BulletIndent")));
     this.rtb.Dock                = ((System.Windows.Forms.DockStyle)(resources.GetObject("rtb.Dock")));
     this.rtb.Enabled             = ((bool)(resources.GetObject("rtb.Enabled")));
     this.rtb.Font                = ((System.Drawing.Font)(resources.GetObject("rtb.Font")));
     this.rtb.ImeMode             = ((System.Windows.Forms.ImeMode)(resources.GetObject("rtb.ImeMode")));
     this.rtb.Location            = ((System.Drawing.Point)(resources.GetObject("rtb.Location")));
     this.rtb.MaxLength           = ((int)(resources.GetObject("rtb.MaxLength")));
     this.rtb.Multiline           = ((bool)(resources.GetObject("rtb.Multiline")));
     this.rtb.Name                = "rtb";
     this.rtb.ReadOnly            = true;
     this.rtb.RightMargin         = ((int)(resources.GetObject("rtb.RightMargin")));
     this.rtb.RightToLeft         = ((System.Windows.Forms.RightToLeft)(resources.GetObject("rtb.RightToLeft")));
     this.rtb.ScrollBars          = ((System.Windows.Forms.RichTextBoxScrollBars)(resources.GetObject("rtb.ScrollBars")));
     this.rtb.ShowSelectionMargin = true;
     this.rtb.Size                = ((System.Drawing.Size)(resources.GetObject("rtb.Size")));
     this.rtb.TabIndex            = ((int)(resources.GetObject("rtb.TabIndex")));
     this.rtb.Text                = resources.GetString("rtb.Text");
     this.rtb.Visible             = ((bool)(resources.GetObject("rtb.Visible")));
     this.rtb.WordWrap            = ((bool)(resources.GetObject("rtb.WordWrap")));
     this.rtb.ZoomFactor          = ((System.Single)(resources.GetObject("rtb.ZoomFactor")));
     //
     // sfd
     //
     this.sfd.Filter = resources.GetString("sfd.Filter");
     this.sfd.Title  = resources.GetString("sfd.Title");
     //
     // Report
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.xpGradientPanel1);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "Report";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.xpGradientPanel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #56
0
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DialogOptions));
     this.buttonOK                 = new System.Windows.Forms.Button();
     this.buttonCancel             = new System.Windows.Forms.Button();
     this.buttonStandard           = new System.Windows.Forms.Button();
     this.groupBoxRechen           = new System.Windows.Forms.GroupBox();
     this.label2                   = new System.Windows.Forms.Label();
     this.label1                   = new System.Windows.Forms.Label();
     this.numericUpDownAbstand     = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownZinken      = new System.Windows.Forms.NumericUpDown();
     this.groupBox1                = new System.Windows.Forms.GroupBox();
     this.numericUpDownStufenFarbe = new System.Windows.Forms.NumericUpDown();
     this.label4                   = new System.Windows.Forms.Label();
     this.label5                   = new System.Windows.Forms.Label();
     this.label6                   = new System.Windows.Forms.Label();
     this.numericUpDownRandomFarbe = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownMaxFarbe    = new System.Windows.Forms.NumericUpDown();
     this.numericUpDownAussen      = new System.Windows.Forms.NumericUpDown();
     this.label3                   = new System.Windows.Forms.Label();
     this.groupBoxRechen.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAbstand)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownZinken)).BeginInit();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownStufenFarbe)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownRandomFarbe)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxFarbe)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAussen)).BeginInit();
     this.SuspendLayout();
     //
     // buttonOK
     //
     this.buttonOK.AccessibleDescription = resources.GetString("buttonOK.AccessibleDescription");
     this.buttonOK.AccessibleName        = resources.GetString("buttonOK.AccessibleName");
     this.buttonOK.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonOK.Anchor")));
     this.buttonOK.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("buttonOK.BackgroundImage")));
     this.buttonOK.DialogResult    = System.Windows.Forms.DialogResult.OK;
     this.buttonOK.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("buttonOK.Dock")));
     this.buttonOK.Enabled         = ((bool)(resources.GetObject("buttonOK.Enabled")));
     this.buttonOK.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("buttonOK.FlatStyle")));
     this.buttonOK.Font            = ((System.Drawing.Font)(resources.GetObject("buttonOK.Font")));
     this.buttonOK.Image           = ((System.Drawing.Image)(resources.GetObject("buttonOK.Image")));
     this.buttonOK.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonOK.ImageAlign")));
     this.buttonOK.ImageIndex      = ((int)(resources.GetObject("buttonOK.ImageIndex")));
     this.buttonOK.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("buttonOK.ImeMode")));
     this.buttonOK.Location        = ((System.Drawing.Point)(resources.GetObject("buttonOK.Location")));
     this.buttonOK.Name            = "buttonOK";
     this.buttonOK.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("buttonOK.RightToLeft")));
     this.buttonOK.Size            = ((System.Drawing.Size)(resources.GetObject("buttonOK.Size")));
     this.buttonOK.TabIndex        = ((int)(resources.GetObject("buttonOK.TabIndex")));
     this.buttonOK.Text            = resources.GetString("buttonOK.Text");
     this.buttonOK.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonOK.TextAlign")));
     this.buttonOK.Visible         = ((bool)(resources.GetObject("buttonOK.Visible")));
     this.buttonOK.Click          += new System.EventHandler(this.buttonOK_Click);
     //
     // buttonCancel
     //
     this.buttonCancel.AccessibleDescription = resources.GetString("buttonCancel.AccessibleDescription");
     this.buttonCancel.AccessibleName        = resources.GetString("buttonCancel.AccessibleName");
     this.buttonCancel.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonCancel.Anchor")));
     this.buttonCancel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("buttonCancel.BackgroundImage")));
     this.buttonCancel.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this.buttonCancel.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("buttonCancel.Dock")));
     this.buttonCancel.Enabled         = ((bool)(resources.GetObject("buttonCancel.Enabled")));
     this.buttonCancel.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("buttonCancel.FlatStyle")));
     this.buttonCancel.Font            = ((System.Drawing.Font)(resources.GetObject("buttonCancel.Font")));
     this.buttonCancel.Image           = ((System.Drawing.Image)(resources.GetObject("buttonCancel.Image")));
     this.buttonCancel.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonCancel.ImageAlign")));
     this.buttonCancel.ImageIndex      = ((int)(resources.GetObject("buttonCancel.ImageIndex")));
     this.buttonCancel.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("buttonCancel.ImeMode")));
     this.buttonCancel.Location        = ((System.Drawing.Point)(resources.GetObject("buttonCancel.Location")));
     this.buttonCancel.Name            = "buttonCancel";
     this.buttonCancel.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("buttonCancel.RightToLeft")));
     this.buttonCancel.Size            = ((System.Drawing.Size)(resources.GetObject("buttonCancel.Size")));
     this.buttonCancel.TabIndex        = ((int)(resources.GetObject("buttonCancel.TabIndex")));
     this.buttonCancel.Text            = resources.GetString("buttonCancel.Text");
     this.buttonCancel.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonCancel.TextAlign")));
     this.buttonCancel.Visible         = ((bool)(resources.GetObject("buttonCancel.Visible")));
     //
     // buttonStandard
     //
     this.buttonStandard.AccessibleDescription = resources.GetString("buttonStandard.AccessibleDescription");
     this.buttonStandard.AccessibleName        = resources.GetString("buttonStandard.AccessibleName");
     this.buttonStandard.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("buttonStandard.Anchor")));
     this.buttonStandard.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("buttonStandard.BackgroundImage")));
     this.buttonStandard.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("buttonStandard.Dock")));
     this.buttonStandard.Enabled         = ((bool)(resources.GetObject("buttonStandard.Enabled")));
     this.buttonStandard.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("buttonStandard.FlatStyle")));
     this.buttonStandard.Font            = ((System.Drawing.Font)(resources.GetObject("buttonStandard.Font")));
     this.buttonStandard.Image           = ((System.Drawing.Image)(resources.GetObject("buttonStandard.Image")));
     this.buttonStandard.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonStandard.ImageAlign")));
     this.buttonStandard.ImageIndex      = ((int)(resources.GetObject("buttonStandard.ImageIndex")));
     this.buttonStandard.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("buttonStandard.ImeMode")));
     this.buttonStandard.Location        = ((System.Drawing.Point)(resources.GetObject("buttonStandard.Location")));
     this.buttonStandard.Name            = "buttonStandard";
     this.buttonStandard.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("buttonStandard.RightToLeft")));
     this.buttonStandard.Size            = ((System.Drawing.Size)(resources.GetObject("buttonStandard.Size")));
     this.buttonStandard.TabIndex        = ((int)(resources.GetObject("buttonStandard.TabIndex")));
     this.buttonStandard.Text            = resources.GetString("buttonStandard.Text");
     this.buttonStandard.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("buttonStandard.TextAlign")));
     this.buttonStandard.Visible         = ((bool)(resources.GetObject("buttonStandard.Visible")));
     this.buttonStandard.Click          += new System.EventHandler(this.buttonStandard_Click);
     //
     // groupBoxRechen
     //
     this.groupBoxRechen.AccessibleDescription = resources.GetString("groupBoxRechen.AccessibleDescription");
     this.groupBoxRechen.AccessibleName        = resources.GetString("groupBoxRechen.AccessibleName");
     this.groupBoxRechen.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("groupBoxRechen.Anchor")));
     this.groupBoxRechen.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("groupBoxRechen.BackgroundImage")));
     this.groupBoxRechen.Controls.Add(this.label2);
     this.groupBoxRechen.Controls.Add(this.label1);
     this.groupBoxRechen.Controls.Add(this.numericUpDownAbstand);
     this.groupBoxRechen.Controls.Add(this.numericUpDownZinken);
     this.groupBoxRechen.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("groupBoxRechen.Dock")));
     this.groupBoxRechen.Enabled     = ((bool)(resources.GetObject("groupBoxRechen.Enabled")));
     this.groupBoxRechen.Font        = ((System.Drawing.Font)(resources.GetObject("groupBoxRechen.Font")));
     this.groupBoxRechen.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("groupBoxRechen.ImeMode")));
     this.groupBoxRechen.Location    = ((System.Drawing.Point)(resources.GetObject("groupBoxRechen.Location")));
     this.groupBoxRechen.Name        = "groupBoxRechen";
     this.groupBoxRechen.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("groupBoxRechen.RightToLeft")));
     this.groupBoxRechen.Size        = ((System.Drawing.Size)(resources.GetObject("groupBoxRechen.Size")));
     this.groupBoxRechen.TabIndex    = ((int)(resources.GetObject("groupBoxRechen.TabIndex")));
     this.groupBoxRechen.TabStop     = false;
     this.groupBoxRechen.Text        = resources.GetString("groupBoxRechen.Text");
     this.groupBoxRechen.Visible     = ((bool)(resources.GetObject("groupBoxRechen.Visible")));
     //
     // label2
     //
     this.label2.AccessibleDescription = resources.GetString("label2.AccessibleDescription");
     this.label2.AccessibleName        = resources.GetString("label2.AccessibleName");
     this.label2.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label2.Anchor")));
     this.label2.AutoSize    = ((bool)(resources.GetObject("label2.AutoSize")));
     this.label2.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label2.Dock")));
     this.label2.Enabled     = ((bool)(resources.GetObject("label2.Enabled")));
     this.label2.Font        = ((System.Drawing.Font)(resources.GetObject("label2.Font")));
     this.label2.Image       = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
     this.label2.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.ImageAlign")));
     this.label2.ImageIndex  = ((int)(resources.GetObject("label2.ImageIndex")));
     this.label2.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label2.ImeMode")));
     this.label2.Location    = ((System.Drawing.Point)(resources.GetObject("label2.Location")));
     this.label2.Name        = "label2";
     this.label2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label2.RightToLeft")));
     this.label2.Size        = ((System.Drawing.Size)(resources.GetObject("label2.Size")));
     this.label2.TabIndex    = ((int)(resources.GetObject("label2.TabIndex")));
     this.label2.Text        = resources.GetString("label2.Text");
     this.label2.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label2.TextAlign")));
     this.label2.Visible     = ((bool)(resources.GetObject("label2.Visible")));
     //
     // label1
     //
     this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
     this.label1.AccessibleName        = resources.GetString("label1.AccessibleName");
     this.label1.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
     this.label1.AutoSize    = ((bool)(resources.GetObject("label1.AutoSize")));
     this.label1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
     this.label1.Enabled     = ((bool)(resources.GetObject("label1.Enabled")));
     this.label1.Font        = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
     this.label1.Image       = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
     this.label1.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
     this.label1.ImageIndex  = ((int)(resources.GetObject("label1.ImageIndex")));
     this.label1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
     this.label1.Location    = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
     this.label1.Name        = "label1";
     this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
     this.label1.Size        = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
     this.label1.TabIndex    = ((int)(resources.GetObject("label1.TabIndex")));
     this.label1.Text        = resources.GetString("label1.Text");
     this.label1.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
     this.label1.Visible     = ((bool)(resources.GetObject("label1.Visible")));
     //
     // numericUpDownAbstand
     //
     this.numericUpDownAbstand.AccessibleDescription = resources.GetString("numericUpDownAbstand.AccessibleDescription");
     this.numericUpDownAbstand.AccessibleName        = resources.GetString("numericUpDownAbstand.AccessibleName");
     this.numericUpDownAbstand.Anchor   = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("numericUpDownAbstand.Anchor")));
     this.numericUpDownAbstand.Dock     = ((System.Windows.Forms.DockStyle)(resources.GetObject("numericUpDownAbstand.Dock")));
     this.numericUpDownAbstand.Enabled  = ((bool)(resources.GetObject("numericUpDownAbstand.Enabled")));
     this.numericUpDownAbstand.Font     = ((System.Drawing.Font)(resources.GetObject("numericUpDownAbstand.Font")));
     this.numericUpDownAbstand.ImeMode  = ((System.Windows.Forms.ImeMode)(resources.GetObject("numericUpDownAbstand.ImeMode")));
     this.numericUpDownAbstand.Location = ((System.Drawing.Point)(resources.GetObject("numericUpDownAbstand.Location")));
     this.numericUpDownAbstand.Maximum  = new System.Decimal(new int[] {
         6,
         0,
         0,
         0
     });
     this.numericUpDownAbstand.Minimum = new System.Decimal(new int[] {
         3,
         0,
         0,
         0
     });
     this.numericUpDownAbstand.Name               = "numericUpDownAbstand";
     this.numericUpDownAbstand.RightToLeft        = ((System.Windows.Forms.RightToLeft)(resources.GetObject("numericUpDownAbstand.RightToLeft")));
     this.numericUpDownAbstand.Size               = ((System.Drawing.Size)(resources.GetObject("numericUpDownAbstand.Size")));
     this.numericUpDownAbstand.TabIndex           = ((int)(resources.GetObject("numericUpDownAbstand.TabIndex")));
     this.numericUpDownAbstand.TextAlign          = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("numericUpDownAbstand.TextAlign")));
     this.numericUpDownAbstand.ThousandsSeparator = ((bool)(resources.GetObject("numericUpDownAbstand.ThousandsSeparator")));
     this.numericUpDownAbstand.UpDownAlign        = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("numericUpDownAbstand.UpDownAlign")));
     this.numericUpDownAbstand.Value              = new System.Decimal(new int[] {
         6,
         0,
         0,
         0
     });
     this.numericUpDownAbstand.Visible = ((bool)(resources.GetObject("numericUpDownAbstand.Visible")));
     //
     // numericUpDownZinken
     //
     this.numericUpDownZinken.AccessibleDescription = resources.GetString("numericUpDownZinken.AccessibleDescription");
     this.numericUpDownZinken.AccessibleName        = resources.GetString("numericUpDownZinken.AccessibleName");
     this.numericUpDownZinken.Anchor   = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("numericUpDownZinken.Anchor")));
     this.numericUpDownZinken.Dock     = ((System.Windows.Forms.DockStyle)(resources.GetObject("numericUpDownZinken.Dock")));
     this.numericUpDownZinken.Enabled  = ((bool)(resources.GetObject("numericUpDownZinken.Enabled")));
     this.numericUpDownZinken.Font     = ((System.Drawing.Font)(resources.GetObject("numericUpDownZinken.Font")));
     this.numericUpDownZinken.ImeMode  = ((System.Windows.Forms.ImeMode)(resources.GetObject("numericUpDownZinken.ImeMode")));
     this.numericUpDownZinken.Location = ((System.Drawing.Point)(resources.GetObject("numericUpDownZinken.Location")));
     this.numericUpDownZinken.Maximum  = new System.Decimal(new int[] {
         20,
         0,
         0,
         0
     });
     this.numericUpDownZinken.Minimum = new System.Decimal(new int[] {
         5,
         0,
         0,
         0
     });
     this.numericUpDownZinken.Name               = "numericUpDownZinken";
     this.numericUpDownZinken.RightToLeft        = ((System.Windows.Forms.RightToLeft)(resources.GetObject("numericUpDownZinken.RightToLeft")));
     this.numericUpDownZinken.Size               = ((System.Drawing.Size)(resources.GetObject("numericUpDownZinken.Size")));
     this.numericUpDownZinken.TabIndex           = ((int)(resources.GetObject("numericUpDownZinken.TabIndex")));
     this.numericUpDownZinken.TextAlign          = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("numericUpDownZinken.TextAlign")));
     this.numericUpDownZinken.ThousandsSeparator = ((bool)(resources.GetObject("numericUpDownZinken.ThousandsSeparator")));
     this.numericUpDownZinken.UpDownAlign        = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("numericUpDownZinken.UpDownAlign")));
     this.numericUpDownZinken.Value              = new System.Decimal(new int[] {
         10,
         0,
         0,
         0
     });
     this.numericUpDownZinken.Visible = ((bool)(resources.GetObject("numericUpDownZinken.Visible")));
     //
     // groupBox1
     //
     this.groupBox1.AccessibleDescription = resources.GetString("groupBox1.AccessibleDescription");
     this.groupBox1.AccessibleName        = resources.GetString("groupBox1.AccessibleName");
     this.groupBox1.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("groupBox1.Anchor")));
     this.groupBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("groupBox1.BackgroundImage")));
     this.groupBox1.Controls.Add(this.numericUpDownStufenFarbe);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.label5);
     this.groupBox1.Controls.Add(this.label6);
     this.groupBox1.Controls.Add(this.numericUpDownRandomFarbe);
     this.groupBox1.Controls.Add(this.numericUpDownMaxFarbe);
     this.groupBox1.Controls.Add(this.numericUpDownAussen);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("groupBox1.Dock")));
     this.groupBox1.Enabled     = ((bool)(resources.GetObject("groupBox1.Enabled")));
     this.groupBox1.Font        = ((System.Drawing.Font)(resources.GetObject("groupBox1.Font")));
     this.groupBox1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("groupBox1.ImeMode")));
     this.groupBox1.Location    = ((System.Drawing.Point)(resources.GetObject("groupBox1.Location")));
     this.groupBox1.Name        = "groupBox1";
     this.groupBox1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("groupBox1.RightToLeft")));
     this.groupBox1.Size        = ((System.Drawing.Size)(resources.GetObject("groupBox1.Size")));
     this.groupBox1.TabIndex    = ((int)(resources.GetObject("groupBox1.TabIndex")));
     this.groupBox1.TabStop     = false;
     this.groupBox1.Text        = resources.GetString("groupBox1.Text");
     this.groupBox1.Visible     = ((bool)(resources.GetObject("groupBox1.Visible")));
     //
     // numericUpDownStufenFarbe
     //
     this.numericUpDownStufenFarbe.AccessibleDescription = resources.GetString("numericUpDownStufenFarbe.AccessibleDescription");
     this.numericUpDownStufenFarbe.AccessibleName        = resources.GetString("numericUpDownStufenFarbe.AccessibleName");
     this.numericUpDownStufenFarbe.Anchor   = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("numericUpDownStufenFarbe.Anchor")));
     this.numericUpDownStufenFarbe.Dock     = ((System.Windows.Forms.DockStyle)(resources.GetObject("numericUpDownStufenFarbe.Dock")));
     this.numericUpDownStufenFarbe.Enabled  = ((bool)(resources.GetObject("numericUpDownStufenFarbe.Enabled")));
     this.numericUpDownStufenFarbe.Font     = ((System.Drawing.Font)(resources.GetObject("numericUpDownStufenFarbe.Font")));
     this.numericUpDownStufenFarbe.ImeMode  = ((System.Windows.Forms.ImeMode)(resources.GetObject("numericUpDownStufenFarbe.ImeMode")));
     this.numericUpDownStufenFarbe.Location = ((System.Drawing.Point)(resources.GetObject("numericUpDownStufenFarbe.Location")));
     this.numericUpDownStufenFarbe.Maximum  = new System.Decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.numericUpDownStufenFarbe.Minimum = new System.Decimal(new int[] {
         150,
         0,
         0,
         0
     });
     this.numericUpDownStufenFarbe.Name               = "numericUpDownStufenFarbe";
     this.numericUpDownStufenFarbe.RightToLeft        = ((System.Windows.Forms.RightToLeft)(resources.GetObject("numericUpDownStufenFarbe.RightToLeft")));
     this.numericUpDownStufenFarbe.Size               = ((System.Drawing.Size)(resources.GetObject("numericUpDownStufenFarbe.Size")));
     this.numericUpDownStufenFarbe.TabIndex           = ((int)(resources.GetObject("numericUpDownStufenFarbe.TabIndex")));
     this.numericUpDownStufenFarbe.TextAlign          = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("numericUpDownStufenFarbe.TextAlign")));
     this.numericUpDownStufenFarbe.ThousandsSeparator = ((bool)(resources.GetObject("numericUpDownStufenFarbe.ThousandsSeparator")));
     this.numericUpDownStufenFarbe.UpDownAlign        = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("numericUpDownStufenFarbe.UpDownAlign")));
     this.numericUpDownStufenFarbe.Value              = new System.Decimal(new int[] {
         180,
         0,
         0,
         0
     });
     this.numericUpDownStufenFarbe.Visible = ((bool)(resources.GetObject("numericUpDownStufenFarbe.Visible")));
     //
     // label4
     //
     this.label4.AccessibleDescription = resources.GetString("label4.AccessibleDescription");
     this.label4.AccessibleName        = resources.GetString("label4.AccessibleName");
     this.label4.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label4.Anchor")));
     this.label4.AutoSize    = ((bool)(resources.GetObject("label4.AutoSize")));
     this.label4.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label4.Dock")));
     this.label4.Enabled     = ((bool)(resources.GetObject("label4.Enabled")));
     this.label4.Font        = ((System.Drawing.Font)(resources.GetObject("label4.Font")));
     this.label4.Image       = ((System.Drawing.Image)(resources.GetObject("label4.Image")));
     this.label4.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label4.ImageAlign")));
     this.label4.ImageIndex  = ((int)(resources.GetObject("label4.ImageIndex")));
     this.label4.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label4.ImeMode")));
     this.label4.Location    = ((System.Drawing.Point)(resources.GetObject("label4.Location")));
     this.label4.Name        = "label4";
     this.label4.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label4.RightToLeft")));
     this.label4.Size        = ((System.Drawing.Size)(resources.GetObject("label4.Size")));
     this.label4.TabIndex    = ((int)(resources.GetObject("label4.TabIndex")));
     this.label4.Text        = resources.GetString("label4.Text");
     this.label4.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label4.TextAlign")));
     this.label4.Visible     = ((bool)(resources.GetObject("label4.Visible")));
     //
     // label5
     //
     this.label5.AccessibleDescription = resources.GetString("label5.AccessibleDescription");
     this.label5.AccessibleName        = resources.GetString("label5.AccessibleName");
     this.label5.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label5.Anchor")));
     this.label5.AutoSize    = ((bool)(resources.GetObject("label5.AutoSize")));
     this.label5.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label5.Dock")));
     this.label5.Enabled     = ((bool)(resources.GetObject("label5.Enabled")));
     this.label5.Font        = ((System.Drawing.Font)(resources.GetObject("label5.Font")));
     this.label5.Image       = ((System.Drawing.Image)(resources.GetObject("label5.Image")));
     this.label5.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label5.ImageAlign")));
     this.label5.ImageIndex  = ((int)(resources.GetObject("label5.ImageIndex")));
     this.label5.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label5.ImeMode")));
     this.label5.Location    = ((System.Drawing.Point)(resources.GetObject("label5.Location")));
     this.label5.Name        = "label5";
     this.label5.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label5.RightToLeft")));
     this.label5.Size        = ((System.Drawing.Size)(resources.GetObject("label5.Size")));
     this.label5.TabIndex    = ((int)(resources.GetObject("label5.TabIndex")));
     this.label5.Text        = resources.GetString("label5.Text");
     this.label5.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label5.TextAlign")));
     this.label5.Visible     = ((bool)(resources.GetObject("label5.Visible")));
     //
     // label6
     //
     this.label6.AccessibleDescription = resources.GetString("label6.AccessibleDescription");
     this.label6.AccessibleName        = resources.GetString("label6.AccessibleName");
     this.label6.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label6.Anchor")));
     this.label6.AutoSize    = ((bool)(resources.GetObject("label6.AutoSize")));
     this.label6.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label6.Dock")));
     this.label6.Enabled     = ((bool)(resources.GetObject("label6.Enabled")));
     this.label6.Font        = ((System.Drawing.Font)(resources.GetObject("label6.Font")));
     this.label6.Image       = ((System.Drawing.Image)(resources.GetObject("label6.Image")));
     this.label6.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label6.ImageAlign")));
     this.label6.ImageIndex  = ((int)(resources.GetObject("label6.ImageIndex")));
     this.label6.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label6.ImeMode")));
     this.label6.Location    = ((System.Drawing.Point)(resources.GetObject("label6.Location")));
     this.label6.Name        = "label6";
     this.label6.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label6.RightToLeft")));
     this.label6.Size        = ((System.Drawing.Size)(resources.GetObject("label6.Size")));
     this.label6.TabIndex    = ((int)(resources.GetObject("label6.TabIndex")));
     this.label6.Text        = resources.GetString("label6.Text");
     this.label6.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label6.TextAlign")));
     this.label6.Visible     = ((bool)(resources.GetObject("label6.Visible")));
     //
     // numericUpDownRandomFarbe
     //
     this.numericUpDownRandomFarbe.AccessibleDescription = resources.GetString("numericUpDownRandomFarbe.AccessibleDescription");
     this.numericUpDownRandomFarbe.AccessibleName        = resources.GetString("numericUpDownRandomFarbe.AccessibleName");
     this.numericUpDownRandomFarbe.Anchor   = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("numericUpDownRandomFarbe.Anchor")));
     this.numericUpDownRandomFarbe.Dock     = ((System.Windows.Forms.DockStyle)(resources.GetObject("numericUpDownRandomFarbe.Dock")));
     this.numericUpDownRandomFarbe.Enabled  = ((bool)(resources.GetObject("numericUpDownRandomFarbe.Enabled")));
     this.numericUpDownRandomFarbe.Font     = ((System.Drawing.Font)(resources.GetObject("numericUpDownRandomFarbe.Font")));
     this.numericUpDownRandomFarbe.ImeMode  = ((System.Windows.Forms.ImeMode)(resources.GetObject("numericUpDownRandomFarbe.ImeMode")));
     this.numericUpDownRandomFarbe.Location = ((System.Drawing.Point)(resources.GetObject("numericUpDownRandomFarbe.Location")));
     this.numericUpDownRandomFarbe.Maximum  = new System.Decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.numericUpDownRandomFarbe.Minimum = new System.Decimal(new int[] {
         50,
         0,
         0,
         0
     });
     this.numericUpDownRandomFarbe.Name               = "numericUpDownRandomFarbe";
     this.numericUpDownRandomFarbe.RightToLeft        = ((System.Windows.Forms.RightToLeft)(resources.GetObject("numericUpDownRandomFarbe.RightToLeft")));
     this.numericUpDownRandomFarbe.Size               = ((System.Drawing.Size)(resources.GetObject("numericUpDownRandomFarbe.Size")));
     this.numericUpDownRandomFarbe.TabIndex           = ((int)(resources.GetObject("numericUpDownRandomFarbe.TabIndex")));
     this.numericUpDownRandomFarbe.TextAlign          = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("numericUpDownRandomFarbe.TextAlign")));
     this.numericUpDownRandomFarbe.ThousandsSeparator = ((bool)(resources.GetObject("numericUpDownRandomFarbe.ThousandsSeparator")));
     this.numericUpDownRandomFarbe.UpDownAlign        = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("numericUpDownRandomFarbe.UpDownAlign")));
     this.numericUpDownRandomFarbe.Value              = new System.Decimal(new int[] {
         180,
         0,
         0,
         0
     });
     this.numericUpDownRandomFarbe.Visible = ((bool)(resources.GetObject("numericUpDownRandomFarbe.Visible")));
     //
     // numericUpDownMaxFarbe
     //
     this.numericUpDownMaxFarbe.AccessibleDescription = resources.GetString("numericUpDownMaxFarbe.AccessibleDescription");
     this.numericUpDownMaxFarbe.AccessibleName        = resources.GetString("numericUpDownMaxFarbe.AccessibleName");
     this.numericUpDownMaxFarbe.Anchor   = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("numericUpDownMaxFarbe.Anchor")));
     this.numericUpDownMaxFarbe.Dock     = ((System.Windows.Forms.DockStyle)(resources.GetObject("numericUpDownMaxFarbe.Dock")));
     this.numericUpDownMaxFarbe.Enabled  = ((bool)(resources.GetObject("numericUpDownMaxFarbe.Enabled")));
     this.numericUpDownMaxFarbe.Font     = ((System.Drawing.Font)(resources.GetObject("numericUpDownMaxFarbe.Font")));
     this.numericUpDownMaxFarbe.ImeMode  = ((System.Windows.Forms.ImeMode)(resources.GetObject("numericUpDownMaxFarbe.ImeMode")));
     this.numericUpDownMaxFarbe.Location = ((System.Drawing.Point)(resources.GetObject("numericUpDownMaxFarbe.Location")));
     this.numericUpDownMaxFarbe.Maximum  = new System.Decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.numericUpDownMaxFarbe.Minimum = new System.Decimal(new int[] {
         180,
         0,
         0,
         0
     });
     this.numericUpDownMaxFarbe.Name               = "numericUpDownMaxFarbe";
     this.numericUpDownMaxFarbe.RightToLeft        = ((System.Windows.Forms.RightToLeft)(resources.GetObject("numericUpDownMaxFarbe.RightToLeft")));
     this.numericUpDownMaxFarbe.Size               = ((System.Drawing.Size)(resources.GetObject("numericUpDownMaxFarbe.Size")));
     this.numericUpDownMaxFarbe.TabIndex           = ((int)(resources.GetObject("numericUpDownMaxFarbe.TabIndex")));
     this.numericUpDownMaxFarbe.TextAlign          = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("numericUpDownMaxFarbe.TextAlign")));
     this.numericUpDownMaxFarbe.ThousandsSeparator = ((bool)(resources.GetObject("numericUpDownMaxFarbe.ThousandsSeparator")));
     this.numericUpDownMaxFarbe.UpDownAlign        = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("numericUpDownMaxFarbe.UpDownAlign")));
     this.numericUpDownMaxFarbe.Value              = new System.Decimal(new int[] {
         180,
         0,
         0,
         0
     });
     this.numericUpDownMaxFarbe.Visible = ((bool)(resources.GetObject("numericUpDownMaxFarbe.Visible")));
     //
     // numericUpDownAussen
     //
     this.numericUpDownAussen.AccessibleDescription = resources.GetString("numericUpDownAussen.AccessibleDescription");
     this.numericUpDownAussen.AccessibleName        = resources.GetString("numericUpDownAussen.AccessibleName");
     this.numericUpDownAussen.Anchor   = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("numericUpDownAussen.Anchor")));
     this.numericUpDownAussen.Dock     = ((System.Windows.Forms.DockStyle)(resources.GetObject("numericUpDownAussen.Dock")));
     this.numericUpDownAussen.Enabled  = ((bool)(resources.GetObject("numericUpDownAussen.Enabled")));
     this.numericUpDownAussen.Font     = ((System.Drawing.Font)(resources.GetObject("numericUpDownAussen.Font")));
     this.numericUpDownAussen.ImeMode  = ((System.Windows.Forms.ImeMode)(resources.GetObject("numericUpDownAussen.ImeMode")));
     this.numericUpDownAussen.Location = ((System.Drawing.Point)(resources.GetObject("numericUpDownAussen.Location")));
     this.numericUpDownAussen.Maximum  = new System.Decimal(new int[] {
         3,
         0,
         0,
         0
     });
     this.numericUpDownAussen.Minimum = new System.Decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDownAussen.Name               = "numericUpDownAussen";
     this.numericUpDownAussen.RightToLeft        = ((System.Windows.Forms.RightToLeft)(resources.GetObject("numericUpDownAussen.RightToLeft")));
     this.numericUpDownAussen.Size               = ((System.Drawing.Size)(resources.GetObject("numericUpDownAussen.Size")));
     this.numericUpDownAussen.TabIndex           = ((int)(resources.GetObject("numericUpDownAussen.TabIndex")));
     this.numericUpDownAussen.TextAlign          = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("numericUpDownAussen.TextAlign")));
     this.numericUpDownAussen.ThousandsSeparator = ((bool)(resources.GetObject("numericUpDownAussen.ThousandsSeparator")));
     this.numericUpDownAussen.UpDownAlign        = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("numericUpDownAussen.UpDownAlign")));
     this.numericUpDownAussen.Value              = new System.Decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDownAussen.Visible = ((bool)(resources.GetObject("numericUpDownAussen.Visible")));
     //
     // label3
     //
     this.label3.AccessibleDescription = resources.GetString("label3.AccessibleDescription");
     this.label3.AccessibleName        = resources.GetString("label3.AccessibleName");
     this.label3.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label3.Anchor")));
     this.label3.AutoSize    = ((bool)(resources.GetObject("label3.AutoSize")));
     this.label3.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("label3.Dock")));
     this.label3.Enabled     = ((bool)(resources.GetObject("label3.Enabled")));
     this.label3.Font        = ((System.Drawing.Font)(resources.GetObject("label3.Font")));
     this.label3.Image       = ((System.Drawing.Image)(resources.GetObject("label3.Image")));
     this.label3.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("label3.ImageAlign")));
     this.label3.ImageIndex  = ((int)(resources.GetObject("label3.ImageIndex")));
     this.label3.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("label3.ImeMode")));
     this.label3.Location    = ((System.Drawing.Point)(resources.GetObject("label3.Location")));
     this.label3.Name        = "label3";
     this.label3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label3.RightToLeft")));
     this.label3.Size        = ((System.Drawing.Size)(resources.GetObject("label3.Size")));
     this.label3.TabIndex    = ((int)(resources.GetObject("label3.TabIndex")));
     this.label3.Text        = resources.GetString("label3.Text");
     this.label3.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("label3.TextAlign")));
     this.label3.Visible     = ((bool)(resources.GetObject("label3.Visible")));
     //
     // DialogOptions
     //
     this.AcceptButton          = this.buttonOK;
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.CancelButton          = this.buttonCancel;
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.groupBoxRechen);
     this.Controls.Add(this.buttonStandard);
     this.Controls.Add(this.buttonCancel);
     this.Controls.Add(this.buttonOK);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox     = false;
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimizeBox     = false;
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "DialogOptions";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.ShowInTaskbar   = false;
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.Load           += new System.EventHandler(this.DialogOptions_Load);
     this.groupBoxRechen.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAbstand)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownZinken)).EndInit();
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownStufenFarbe)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownRandomFarbe)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxFarbe)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAussen)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormInstitutionProperties));
     this.tabPageInstitution = new System.Windows.Forms.TabPage();
     this.tabPageGeneral.SuspendLayout();
     this.tabControl.SuspendLayout();
     this.SuspendLayout();
     //
     // buttonOK
     //
     this.buttonOK.Name = "buttonOK";
     //
     // buttonCancel
     //
     this.buttonCancel.Name = "buttonCancel";
     //
     // buttonApply
     //
     this.buttonApply.Name = "buttonApply";
     //
     // tabPageGeneral
     //
     this.tabPageGeneral.Name = "tabPageGeneral";
     //
     // label3
     //
     this.label3.Name = "label3";
     //
     // label2
     //
     this.label2.Name = "label2";
     //
     // checkBoxDeleted
     //
     this.checkBoxDeleted.Name = "checkBoxDeleted";
     //
     // labelAttributes
     //
     this.labelAttributes.Name = "labelAttributes";
     //
     // labelTypeText
     //
     this.labelTypeText.Name = "labelTypeText";
     //
     // textBoxDescription
     //
     this.textBoxDescription.Name = "textBoxDescription";
     //
     // label1
     //
     this.label1.Name = "label1";
     //
     // labelTypePrompt
     //
     this.labelTypePrompt.Name = "labelTypePrompt";
     //
     // textBoxName
     //
     this.textBoxName.Name = "textBoxName";
     //
     // tabControl
     //
     this.tabControl.Controls.Add(this.tabPageInstitution);
     this.tabControl.Name = "tabControl";
     this.tabControl.Controls.SetChildIndex(this.tabPageInstitution, 0);
     this.tabControl.Controls.SetChildIndex(this.tabPageGeneral, 0);
     //
     // pictureBox
     //
     this.pictureBox.Name = "pictureBox";
     //
     // buttonHelp
     //
     this.buttonHelp.Name = "buttonHelp";
     //
     // tabPageInstitution
     //
     this.tabPageInstitution.AccessibleDescription = resources.GetString("tabPageInstitution.AccessibleDescription");
     this.tabPageInstitution.AccessibleName        = resources.GetString("tabPageInstitution.AccessibleName");
     this.tabPageInstitution.Anchor            = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("tabPageInstitution.Anchor")));
     this.tabPageInstitution.AutoScroll        = ((bool)(resources.GetObject("tabPageInstitution.AutoScroll")));
     this.tabPageInstitution.AutoScrollMargin  = ((System.Drawing.Size)(resources.GetObject("tabPageInstitution.AutoScrollMargin")));
     this.tabPageInstitution.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("tabPageInstitution.AutoScrollMinSize")));
     this.tabPageInstitution.BackgroundImage   = ((System.Drawing.Image)(resources.GetObject("tabPageInstitution.BackgroundImage")));
     this.tabPageInstitution.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("tabPageInstitution.Dock")));
     this.tabPageInstitution.Enabled     = ((bool)(resources.GetObject("tabPageInstitution.Enabled")));
     this.tabPageInstitution.Font        = ((System.Drawing.Font)(resources.GetObject("tabPageInstitution.Font")));
     this.tabPageInstitution.ImageIndex  = ((int)(resources.GetObject("tabPageInstitution.ImageIndex")));
     this.tabPageInstitution.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("tabPageInstitution.ImeMode")));
     this.tabPageInstitution.Location    = ((System.Drawing.Point)(resources.GetObject("tabPageInstitution.Location")));
     this.tabPageInstitution.Name        = "tabPageInstitution";
     this.tabPageInstitution.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("tabPageInstitution.RightToLeft")));
     this.tabPageInstitution.Size        = ((System.Drawing.Size)(resources.GetObject("tabPageInstitution.Size")));
     this.tabPageInstitution.TabIndex    = ((int)(resources.GetObject("tabPageInstitution.TabIndex")));
     this.tabPageInstitution.Text        = resources.GetString("tabPageInstitution.Text");
     this.tabPageInstitution.ToolTipText = resources.GetString("tabPageInstitution.ToolTipText");
     this.tabPageInstitution.Visible     = ((bool)(resources.GetObject("tabPageInstitution.Visible")));
     //
     // FormInstitutionProperties
     //
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Enabled       = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font          = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode       = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location      = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximumSize   = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimumSize   = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name          = "FormInstitutionProperties";
     this.RightToLeft   = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text          = resources.GetString("$this.Text");
     this.tabPageGeneral.ResumeLayout(false);
     this.tabControl.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #58
0
        private void init_MenuStrip(IList <FunctionAllVo> flist)
        {
            menu_system      = new ToolStripMenuItem();
            menu_system.Name = "Menu_System";
            menu_system.Text = rm.GetString("Menu.System");
            ToolStripMenuItem submenu_system_setting = new ToolStripMenuItem();

            submenu_system_setting.Name = "SubMenu_System_Setting";
            submenu_system_setting.Text = rm.GetString("SubMenu.System.Setting");

            ToolStripSeparator line1 = new ToolStripSeparator();

            ToolStripMenuItem submenu_system_exit = new ToolStripMenuItem();

            submenu_system_exit.Name   = "SubMenu_System_Exit";
            submenu_system_exit.Text   = rm.GetString("SubMenu.System.Exit");
            submenu_system_exit.Click += new EventHandler(submenu_system_exit_Click);


            menu_system.DropDownItems.AddRange(new ToolStripItem[] {
                submenu_system_setting, line1, submenu_system_exit
            });


            menu_function      = new ToolStripMenuItem();
            menu_function.Name = "Menu_Function";
            menu_function.Text = rm.GetString("Menu.Function");


            menu_window        = new ToolStripMenuItem();
            menu_window.Name   = "Menu_Window";
            menu_window.Text   = rm.GetString("Menu.Window");
            menu_window.Click += new EventHandler(Menu_Window_Click);

            //ToolStripSeparator line2 = new ToolStripSeparator();

            ToolStripMenuItem submenu_window_listwindow = new ToolStripMenuItem();

            submenu_window_listwindow.Name   = "SubMenu_Window_ListWindow";
            submenu_window_listwindow.Text   = rm.GetString("SubMenu.Window.ListWindow");
            submenu_window_listwindow.Click += new EventHandler(submenu_window_listwindow_Click);

            menu_window.DropDownItems.AddRange(new ToolStripItem[] { submenu_window_listwindow });

            menu_help      = new ToolStripMenuItem();
            menu_help.Name = "Menu_Help";
            menu_help.Text = rm.GetString("Menu.Help");

            ToolStripMenuItem submenu_help_contents = new ToolStripMenuItem();

            submenu_help_contents.Name = "SubMenu_Help_Contents";
            submenu_help_contents.Text = rm.GetString("SubMenu.Help.Contents");

            ToolStripSeparator line3 = new ToolStripSeparator();

            ToolStripMenuItem submenu_help_about = new ToolStripMenuItem();

            submenu_help_about.Name   = "SubMenu_Help_About";
            submenu_help_about.Text   = rm.GetString("SubMenu.Help.About");
            submenu_help_about.Click += new EventHandler(submenu_help_about_Click);

            menu_help.DropDownItems.AddRange(new ToolStripItem[] { submenu_help_contents, line3, submenu_help_about });

            this.menuStrip1.Items.AddRange(new ToolStripItem[] { menu_system, menu_function, menu_window, menu_help });


            //生成功能菜单
            foreach (FunctionAllVo functionvo in flist)
            {
                ToolStripMenuItem submenu_functioncatalog = new ToolStripMenuItem();
                submenu_functioncatalog.Name = "submenu_" + functionvo.Catalogid.ToString() + "_" + functionvo.Catalogname;
                submenu_functioncatalog.Text = functionvo.Catalogname;
                foreach (FunctionVo vo in functionvo.Functionlist)
                {
                    ToolStripMenuItem submenu_function = new ToolStripMenuItem();
                    submenu_function.Name   = "submenu_" + vo.Functionid + "_" + vo.Functionname;
                    submenu_function.Text   = vo.Functionname;
                    submenu_function.Tag    = vo.Functionpath;
                    submenu_function.Click += new EventHandler(SubMenu_Function_Click);
                    submenu_functioncatalog.DropDownItems.Add(submenu_function);
                }
                menu_function.DropDownItems.Add(submenu_functioncatalog);
            }
        }
Exemple #59
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ImportPassword));
     this.txtPassword  = new System.Windows.Forms.TextBox();
     this.lblPassword1 = new System.Windows.Forms.Label();
     this.lblTitle     = new System.Windows.Forms.Label();
     this.btnCancel    = new System.Windows.Forms.Button();
     this.btnOK        = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // txtPassword
     //
     this.txtPassword.AccessibleDescription = resources.GetString("txtPassword.AccessibleDescription");
     this.txtPassword.AccessibleName        = resources.GetString("txtPassword.AccessibleName");
     this.txtPassword.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtPassword.Anchor")));
     this.txtPassword.AutoSize        = ((bool)(resources.GetObject("txtPassword.AutoSize")));
     this.txtPassword.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPassword.BackgroundImage")));
     this.txtPassword.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtPassword.Dock")));
     this.txtPassword.Enabled         = ((bool)(resources.GetObject("txtPassword.Enabled")));
     this.txtPassword.Font            = ((System.Drawing.Font)(resources.GetObject("txtPassword.Font")));
     this.txtPassword.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtPassword.ImeMode")));
     this.txtPassword.Location        = ((System.Drawing.Point)(resources.GetObject("txtPassword.Location")));
     this.txtPassword.MaxLength       = ((int)(resources.GetObject("txtPassword.MaxLength")));
     this.txtPassword.Multiline       = ((bool)(resources.GetObject("txtPassword.Multiline")));
     this.txtPassword.Name            = "txtPassword";
     this.txtPassword.PasswordChar    = ((char)(resources.GetObject("txtPassword.PasswordChar")));
     this.txtPassword.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtPassword.RightToLeft")));
     this.txtPassword.ScrollBars      = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtPassword.ScrollBars")));
     this.txtPassword.Size            = ((System.Drawing.Size)(resources.GetObject("txtPassword.Size")));
     this.txtPassword.TabIndex        = ((int)(resources.GetObject("txtPassword.TabIndex")));
     this.txtPassword.Text            = resources.GetString("txtPassword.Text");
     this.txtPassword.TextAlign       = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtPassword.TextAlign")));
     this.txtPassword.Visible         = ((bool)(resources.GetObject("txtPassword.Visible")));
     this.txtPassword.WordWrap        = ((bool)(resources.GetObject("txtPassword.WordWrap")));
     //
     // lblPassword1
     //
     this.lblPassword1.AccessibleDescription = resources.GetString("lblPassword1.AccessibleDescription");
     this.lblPassword1.AccessibleName        = resources.GetString("lblPassword1.AccessibleName");
     this.lblPassword1.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPassword1.Anchor")));
     this.lblPassword1.AutoSize    = ((bool)(resources.GetObject("lblPassword1.AutoSize")));
     this.lblPassword1.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPassword1.Dock")));
     this.lblPassword1.Enabled     = ((bool)(resources.GetObject("lblPassword1.Enabled")));
     this.lblPassword1.Font        = ((System.Drawing.Font)(resources.GetObject("lblPassword1.Font")));
     this.lblPassword1.Image       = ((System.Drawing.Image)(resources.GetObject("lblPassword1.Image")));
     this.lblPassword1.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPassword1.ImageAlign")));
     this.lblPassword1.ImageIndex  = ((int)(resources.GetObject("lblPassword1.ImageIndex")));
     this.lblPassword1.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPassword1.ImeMode")));
     this.lblPassword1.Location    = ((System.Drawing.Point)(resources.GetObject("lblPassword1.Location")));
     this.lblPassword1.Name        = "lblPassword1";
     this.lblPassword1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPassword1.RightToLeft")));
     this.lblPassword1.Size        = ((System.Drawing.Size)(resources.GetObject("lblPassword1.Size")));
     this.lblPassword1.TabIndex    = ((int)(resources.GetObject("lblPassword1.TabIndex")));
     this.lblPassword1.Text        = resources.GetString("lblPassword1.Text");
     this.lblPassword1.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPassword1.TextAlign")));
     this.lblPassword1.Visible     = ((bool)(resources.GetObject("lblPassword1.Visible")));
     //
     // lblTitle
     //
     this.lblTitle.AccessibleDescription = resources.GetString("lblTitle.AccessibleDescription");
     this.lblTitle.AccessibleName        = resources.GetString("lblTitle.AccessibleName");
     this.lblTitle.Anchor      = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTitle.Anchor")));
     this.lblTitle.AutoSize    = ((bool)(resources.GetObject("lblTitle.AutoSize")));
     this.lblTitle.Dock        = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTitle.Dock")));
     this.lblTitle.Enabled     = ((bool)(resources.GetObject("lblTitle.Enabled")));
     this.lblTitle.Font        = ((System.Drawing.Font)(resources.GetObject("lblTitle.Font")));
     this.lblTitle.Image       = ((System.Drawing.Image)(resources.GetObject("lblTitle.Image")));
     this.lblTitle.ImageAlign  = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTitle.ImageAlign")));
     this.lblTitle.ImageIndex  = ((int)(resources.GetObject("lblTitle.ImageIndex")));
     this.lblTitle.ImeMode     = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTitle.ImeMode")));
     this.lblTitle.Location    = ((System.Drawing.Point)(resources.GetObject("lblTitle.Location")));
     this.lblTitle.Name        = "lblTitle";
     this.lblTitle.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTitle.RightToLeft")));
     this.lblTitle.Size        = ((System.Drawing.Size)(resources.GetObject("lblTitle.Size")));
     this.lblTitle.TabIndex    = ((int)(resources.GetObject("lblTitle.TabIndex")));
     this.lblTitle.Text        = resources.GetString("lblTitle.Text");
     this.lblTitle.TextAlign   = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTitle.TextAlign")));
     this.lblTitle.Visible     = ((bool)(resources.GetObject("lblTitle.Visible")));
     //
     // btnCancel
     //
     this.btnCancel.AccessibleDescription = resources.GetString("btnCancel.AccessibleDescription");
     this.btnCancel.AccessibleName        = resources.GetString("btnCancel.AccessibleName");
     this.btnCancel.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCancel.Anchor")));
     this.btnCancel.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCancel.BackgroundImage")));
     this.btnCancel.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCancel.Dock")));
     this.btnCancel.Enabled         = ((bool)(resources.GetObject("btnCancel.Enabled")));
     this.btnCancel.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCancel.FlatStyle")));
     this.btnCancel.Font            = ((System.Drawing.Font)(resources.GetObject("btnCancel.Font")));
     this.btnCancel.Image           = ((System.Drawing.Image)(resources.GetObject("btnCancel.Image")));
     this.btnCancel.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCancel.ImageAlign")));
     this.btnCancel.ImageIndex      = ((int)(resources.GetObject("btnCancel.ImageIndex")));
     this.btnCancel.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCancel.ImeMode")));
     this.btnCancel.Location        = ((System.Drawing.Point)(resources.GetObject("btnCancel.Location")));
     this.btnCancel.Name            = "btnCancel";
     this.btnCancel.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCancel.RightToLeft")));
     this.btnCancel.Size            = ((System.Drawing.Size)(resources.GetObject("btnCancel.Size")));
     this.btnCancel.TabIndex        = ((int)(resources.GetObject("btnCancel.TabIndex")));
     this.btnCancel.Text            = resources.GetString("btnCancel.Text");
     this.btnCancel.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCancel.TextAlign")));
     this.btnCancel.Visible         = ((bool)(resources.GetObject("btnCancel.Visible")));
     this.btnCancel.Click          += new System.EventHandler(this.btnCancel_Click);
     //
     // btnOK
     //
     this.btnOK.AccessibleDescription = resources.GetString("btnOK.AccessibleDescription");
     this.btnOK.AccessibleName        = resources.GetString("btnOK.AccessibleName");
     this.btnOK.Anchor          = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnOK.Anchor")));
     this.btnOK.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnOK.BackgroundImage")));
     this.btnOK.Dock            = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnOK.Dock")));
     this.btnOK.Enabled         = ((bool)(resources.GetObject("btnOK.Enabled")));
     this.btnOK.FlatStyle       = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnOK.FlatStyle")));
     this.btnOK.Font            = ((System.Drawing.Font)(resources.GetObject("btnOK.Font")));
     this.btnOK.Image           = ((System.Drawing.Image)(resources.GetObject("btnOK.Image")));
     this.btnOK.ImageAlign      = ((System.Drawing.ContentAlignment)(resources.GetObject("btnOK.ImageAlign")));
     this.btnOK.ImageIndex      = ((int)(resources.GetObject("btnOK.ImageIndex")));
     this.btnOK.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnOK.ImeMode")));
     this.btnOK.Location        = ((System.Drawing.Point)(resources.GetObject("btnOK.Location")));
     this.btnOK.Name            = "btnOK";
     this.btnOK.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnOK.RightToLeft")));
     this.btnOK.Size            = ((System.Drawing.Size)(resources.GetObject("btnOK.Size")));
     this.btnOK.TabIndex        = ((int)(resources.GetObject("btnOK.TabIndex")));
     this.btnOK.Text            = resources.GetString("btnOK.Text");
     this.btnOK.TextAlign       = ((System.Drawing.ContentAlignment)(resources.GetObject("btnOK.TextAlign")));
     this.btnOK.Visible         = ((bool)(resources.GetObject("btnOK.Visible")));
     this.btnOK.Click          += new System.EventHandler(this.btnOK_Click);
     //
     // ImportPassword
     //
     this.AcceptButton          = this.btnOK;
     this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
     this.AccessibleName        = resources.GetString("$this.AccessibleName");
     this.AutoScaleBaseSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
     this.AutoScroll            = ((bool)(resources.GetObject("$this.AutoScroll")));
     this.AutoScrollMargin      = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
     this.AutoScrollMinSize     = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
     this.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.CancelButton          = this.btnCancel;
     this.ClientSize            = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.txtPassword);
     this.Controls.Add(this.lblPassword1);
     this.Controls.Add(this.lblTitle);
     this.Enabled         = ((bool)(resources.GetObject("$this.Enabled")));
     this.Font            = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.ImeMode         = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
     this.Location        = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
     this.MaximizeBox     = false;
     this.MaximumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
     this.MinimumSize     = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
     this.Name            = "ImportPassword";
     this.RightToLeft     = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
     this.StartPosition   = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
     this.Text            = resources.GetString("$this.Text");
     this.Load           += new System.EventHandler(this.ImportPassword_Load);
     this.ResumeLayout(false);
 }
Exemple #60
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            try
            {
                SplashScreen.UdpateStatusText(MessageUtils.GetMessage("I0001"));
                ToolStripManager.Renderer = new Office2007Renderer();

                //get all condition
                String d = LangUtils.GetDefaultLanguage();
                ConditionUtils.GetAllConditionsList(d);
                Thread.CurrentThread.CurrentUICulture = (System.Globalization.CultureInfo) new System.Globalization.CultureInfo(d);
                rm = new System.Resources.ResourceManager(typeof(MainForm));

                init_ToolStripComboBox();

                //castle windsor initial
                ComponentLocator.Instance();


                LoginUserInfoVo  uservo = (LoginUserInfoVo)SessionUtils.GetSession(SessionUtils.COMMON_LOGIN_USER_INFO);
                IAction_MainForm af     = ComponentLocator.Instance().Resolve <IAction_MainForm>();

                //display status strip
                this.toolStripStatusLabelTime.Text = rm.GetString("Status.Time") + DateTime.Now.GetDateTimeFormats('D')[3].ToString();

                this.toolStripStatusLabelLoginUser.Text = rm.GetString("Status.LoginUser") + uservo.Username;


                SplashScreen.UdpateStatusText(MessageUtils.GetMessage("I0004"));

                //IList<FunctionAllVo> flist = af.GetFunctionDataList();
                //加载用户权限。
                IList <FunctionAllVo> flist = af.GetCatalogFunctionByUserId(uservo.Userid);

                //加载工厂
                TermVo termvo = af.GetTermInfo(uservo.Userid);
                uservo.Term = termvo;
                if (termvo == null)
                {
                    uservo.Factory = null;
                }
                else
                {
                    FactoryVo factory = af.GetFactoryByCd(termvo.IFacCd);
                    uservo.Factory = factory;
                }
                //加载person
                PersonVo person = af.GetPersonByUserId(uservo.Userid);
                uservo.Person = person;

                CompanyConditionVo companycondition = af.GetCompanyCondition(person.ICompanyCd);
                uservo.CompanyCondition = companycondition;

                this.toolStripStatusLabelCompany.Text = companycondition.ICompanyArgDesc;

                //SessionUtils.RemoveSession(SessionUtils.COMMON_LOGIN_USER_INFO);
                //SessionUtils.SetSession(SessionUtils.COMMON_LOGIN_USER_INFO, uservo);



                SplashScreen.UdpateStatusText(MessageUtils.GetMessage("I0002"));
                init_MenuStrip(flist);
                init_MenuWindow(flist);

                //Thread.Sleep(1000);
                //SplashScreen.UdpateStatusTextWithStatus("Success Message", TypeOfMessage.Success);

                SplashScreen.UdpateStatusText(MessageUtils.GetMessage("I0003"));

                this.Show();
                SplashScreen.CloseSplashScreen();
                this.Activate();
            }
            catch (ApplicationException ex)
            {
                MessageBox.Show(ex.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Close();
                this.Dispose();
            }
        }