当前位置: 首页>>代码示例>>C#>>正文


C# Info类代码示例

本文整理汇总了C#中Info的典型用法代码示例。如果您正苦于以下问题:C# Info类的具体用法?C# Info怎么用?C# Info使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Info类属于命名空间,在下文中一共展示了Info类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdateNhomKH

 public int UpdateNhomKH(Info.NhomKHInfo info)
 {
     cn.ExecuteNonQuery("SP_UPDATENhomKH",
         new string[] { "@MA", "@TENNHOM", "@MOTA" },
         new object[] { info.Mannhomkh, info.Tennhom, info.Mota });
     return 1;
 }
开发者ID:dexonhud,项目名称:pharmacykimhoang,代码行数:7,代码来源:TNhomKH.cs

示例2: GetMessage

 public static string GetMessage(Info info)
 {
     switch (info)
     {
         case Info.ChooseCity:
             return "Elige tu ciudad";
         case Info.AnyTime:
             return "Todas";
         case Info.Sheadules:
             return "Horarios";
         case Info.Loading:
             return "Cargando...";
         case Info.NoData:
             return "No hay datos";
         case Info.NoMoreShows:
             return "En {0} no hay mas funciones :(";
         case Info.FacebookIntegration:
             return "¿Quisieras integrar tu experiencia con Facebook?";
         case Info.FacebookIntegrationTitle:
             return "Integración con Facebook";
         case Info.GetDefaultShareMessage:
             return "¡Quiero ver esta película hoy!";
         default:
             return "Info No identificado";
     }
 }
开发者ID:alexcons,项目名称:MyMovies,代码行数:26,代码来源:Utils.cs

示例3: Run

        public void Run()
        {
            Console.WriteLine("Press 'Enter' to send a message. To exit, Ctrl + C");

            while (true)
            {
                var read = Console.ReadLine();
                LogMessage message = null;
                read = string.IsNullOrEmpty(read) ? "info Info Message" : read;

                if (read.IndexOf(" ") < 0)
                    read += " Log Message";

                var type = read.Substring(0, read.IndexOf(" "));
                var payload = read.Substring(read.IndexOf(" ") + 1);

                switch (type.ToLower())
                {
                    case "warn":
                        message = new Warn();
                        break;
                    case "error":
                        message = new Error();
                        break;
                    default:
                        message = new Info();
                        break;
                }

                message.Message = payload;
                Bus.Send(message);
            }
        }
开发者ID:jonocairns,项目名称:nservicebusrabbitmq,代码行数:33,代码来源:Bootstrap.cs

示例4: AssignHOPOS

        /// <summary>
        /// Scans through a notechart and assigns the HOPO tag to notes that are of a
        /// different type than the previous note, and have a tick difference less than
        /// the specified HOPO tick threshold.
        /// </summary>
        /// <param name="inputNotechart">
        /// Any notechart (expected to not have hammeron information already filled out).
        /// </param>
        /// <param name="inputChartInfo">
        /// All information pertaining to the chart.
        /// </param>
        /// <returns>
        /// The same notechart with proper hammeron note settings.
        /// </returns>
        public static Notes AssignHOPOS(Notes inputNotechart, Info inputChartInfo)
        {
            Notes notechartToReturn = inputNotechart;
            int HOPOTickThreshold = (inputChartInfo.resolution * 4) / inputChartInfo.HOPOThreshold;

            Note currentNote = new Note();
            Note nextNote = new Note();

            // We stop at (count - 2) due to the currentNote/nextNote/thirdNote setup
            for (int i = 0; i < inputNotechart.notes.Count - 1; i++)
            {
                currentNote = inputNotechart.notes[i];
                nextNote = inputNotechart.notes[i + 1];

                if (i == 470)
                {
                    nextNote.ToString();
                }

                // If difference is 0, it is a chord and should not be a hammeron.
                // We need to check the third note in case the next note is the start
                // of a chord.
                if (((nextNote.tickValue - currentNote.tickValue) <= HOPOTickThreshold) &&
                    (!nextNote.noteType.isEqual(currentNote.noteType)) &&
                    (!nextNote.isChord))
                {
                    notechartToReturn.notes[i + 1].isHOPO = true;
                }
            }

            return notechartToReturn;
        }
开发者ID:huming2207,项目名称:ghgame,代码行数:46,代码来源:HOPOManager.cs

示例5: Parse

				public static Info Parse(CharStream stream, Info expected = null)
				{
					string output;
					int pos = stream.Position;

					if (!stream.ReadReg("(\'|\")", out output))
					{
						throw new Exceptions.ParseException(
							String.Format(
							"expected to read a <quote> (starting at {0}), but no characters were left",
							stream.ComputeDetailedPosition(pos)));
					}

					Info info;
					if (output[0] == '"')
					{
						info = new Info(Type.Double);
					} else 
					{
						info = new Info(Type.Single);
					}

					if (expected != null && expected.CompareTo(info) != 0)
					{
						throw new Exceptions.ParseException(
							String.Format(
							"expected to read {0} (starting at {1}), but found {2}",
							expected.ToString(),
							stream.ComputeDetailedPosition(pos),
							info.ToString()));
					}

					return info;
				}
开发者ID:GlenDC,项目名称:L20n.cs,代码行数:34,代码来源:Quote.cs

示例6: Scan

 public void Scan(Info path)
 {
     if (!worker.CancellationPending) {
         string[] dirs = Directory.GetDirectories(String.Format(@"{0}", path.Folder), "*");
         string[] files = Directory.GetFiles(String.Format(@"{0}", path.Folder), path.Filemask);
         if (dirs.Length == 0) {
             foreach (string s in files) {
                 Thread.Sleep(300);
                 worker.ReportProgress(0, s);
             }
         } else {
             foreach (string file in files) {
                 Thread.Sleep(300);
                 worker.ReportProgress(0, file);
             }
             foreach (string s in dirs) {
                 if (s.ToLower().Trim() != @"c:\WINDOWS".Trim().ToLower() &&
                     s.ToLower().Trim() != @"c:\System Volume Information".Trim().ToLower()) {
                     path.Folder = s;
                     Scan(path);
                 }
             }
         }
     }
 }
开发者ID:KasperFlye,项目名称:CsharpAndDotNet,代码行数:25,代码来源:MainWindow.xaml.cs

示例7: AddPacker

			public void AddPacker(Info info) {
				foreach (var comp in packers) {
					if (comp.Id == info.id)
						return;
				}
				packers.Add(new InfoComponent(info));
			}
开发者ID:EmilZhou,项目名称:ConfuserEx,代码行数:7,代码来源:ComponentDiscovery.cs

示例8: ReadHeader

        /* プロパティ **********************************************************/
        /* メソッド **********************************************************/
        /// <summary>
        /// ファイルを読み込み、マップ情報を返す
        /// </summary>
        /// <param name="fileNames">ファイル名</param>
        /// <returns>マップ情報<para>圧縮ファイルの場合、一つのファイルに多数のマップが格納されている場合があるのでListで返します。</para></returns>
        public List<DemSet> ReadHeader(string[] fileNames)
        {
            List<DemSet> mapInfolist = new List<DemSet>();

            //System.Diagnostics.Stopwatch sw = System.Diagnostics.Stopwatch.StartNew();
            // ヘッダーの読み出し
            Info[] info = new Info[fileNames.Length];
            if (fileNames.Length == 1)                              // ファイルが単一であれば、Parallel処理はかえって重いので分ける
            {

                JpgisGmlReader reader = new JpgisGmlReader();
                info[0] = reader.GetHeader(fileNames[0]);
            }
            else
            {
                Parallel.For(0, fileNames.Length, i =>
                //for(int i = 0; i < fileNames.Length; i++)         // 66 ファイルあると、forよりも並列読み込みの方が若干早い。@2012/5/28
                {
                    //System.Diagnostics.Stopwatch sw2 = System.Diagnostics.Stopwatch.StartNew();
                    JpgisGmlReader reader = new JpgisGmlReader();
                    info[i] = reader.GetHeader(fileNames[i]);
                    //sw2.Stop();                                                     // ストップウォッチを止める
                    //Console.WriteLine("個々のヘッダー読み込み時間: " + sw2.Elapsed); // 結果を表示する
                });
            }
            //sw.Stop();                                                              // ストップウォッチを止める
            //Console.WriteLine("合計のヘッダー読み込み時間: " + sw.Elapsed);          // 結果を表示する
            for (int i = 0; i < fileNames.Length; i++)
            {
                if (info[i].Available == true)
                    mapInfolist.Add(new DemSet(fileNames[i], info[i]));
            }
            return mapInfolist;
        }
开发者ID:KatsuhiroMorishita,项目名称:GIS,代码行数:41,代码来源:Reader.cs

示例9: NewBrowserWnd

        public NewBrowserWnd()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
            object param1=new object();
            Info objInfo = new Info();
            int temp;
            //			if((NetworkManager.thisInstance.profile.clientType==WebMeeting.Common.ClientType.ClientPresenter)||(NetworkManager.thisInstance.profile.clientType==WebMeeting.Common.ClientType.ClientHost))
            //                temp=1;
            //			else
            //				temp=0;

            if(WebMeeting.Client.ClientUI.getInstance().nclientType==1)
            {
                temp=1;
            }
            else
            {
                temp=0;
            }

            //string str = objInfo.WebsiteName + "/welcome/?mid=" + NetworkManager.getInstance().profile.ConferenceID +"&check="+temp ;

            string str = objInfo.WebsiteName + @"/welcome/?mid=" + WebMeeting.Client.ClientUI.getInstance().nmeeting_id+"&check="+temp ;
            //MessageBox.Show(str,"Main windows");
            //IDocHostUIHandler
            //////////////////////////////////
            ///mshtml.HTMLDocument doc;
            ////////////////////////////////////
            this.axWebBrowser1.Navigate(str,ref param1,ref param1,ref param1,ref param1);

            // TODO: Add any initialization after the InitializeComponent call
        }
开发者ID:zaeem,项目名称:FlexCollab,代码行数:33,代码来源:NewBrowserWnd.cs

示例10: LanguageSetsToUserValue

        public void LanguageSetsToUserValue()
        {
            var info = new Info();
            info.Language = "en-UK";

            Assert.Equal("en-UK", info.Language);
        }
开发者ID:mkchandler,项目名称:cap-net,代码行数:7,代码来源:InfoTests.cs

示例11: FRdialog

 public FRdialog(Info info, Console c, mainWindow m)
 {
     this.info = info;
     InitializeComponent();
     console = c;
     mainWindow = m;
 }
开发者ID:Mloc,项目名称:DreamEdit,代码行数:7,代码来源:FRdialog.cs

示例12: UpdateLoaiSP

 public int UpdateLoaiSP(Info.LoaiHHInfo info)
 {
     cn.ExecuteNonQuery("sp_UpdateLOAI_SP",
         new string[] { "@MA", "@TEN", "@MOTA" },
         new object[] { info.MA, info.TEN, info.MOTA });
     return 1;
 }
开发者ID:dexonhud,项目名称:pharmacykimhoang,代码行数:7,代码来源:TLoaiHH.cs

示例13: DeleteLoaiSP

 public int DeleteLoaiSP(Info.LoaiHHInfo info)
 {
     int id = cn.ExecuteNonQuery("sp_Deleteloaihh",
         new string[] { "@MA" },
         new object[] { info.MA });
     return id;
 }
开发者ID:dexonhud,项目名称:pharmacykimhoang,代码行数:7,代码来源:TLoaiHH.cs

示例14: InsertLoaiSP

 public int InsertLoaiSP(Info.LoaiHHInfo info)
 {
     int id = cn.ExecuteInsert("sp_InsertLOAI_SP",
         new string[] { "@TEN", "@MOTA" },
         new object[] { info.TEN, info.MOTA });
     return id;
 }
开发者ID:dexonhud,项目名称:pharmacykimhoang,代码行数:7,代码来源:TLoaiHH.cs

示例15: UpdateKH

 public int UpdateKH(Info.KhachHangInfo info)
 {
     cn.ExecuteNonQuery("SP_UPDATEKH",
         new string[] { "@MAKH", "@CODEKH", "@MANHOM", "@TEN", "@TUOI", "@GIOITINH", "@MATINH", "@DIACHI", "@DIENTHOAI", "@CAPDO","@MST","@HANNO" },
         new object[] { info.MAKH, info.CODEKH, info.MANHOM, info.TEN, info.TUOI, info.GIOITINH, info.MATINH, info.DIACHI, info.DIENTHOAI, info.CAPDO,info.MST,info.HanNo });
     return 1;
 }
开发者ID:dexonhud,项目名称:pharmacykimhoang,代码行数:7,代码来源:TKhachHang.cs


注:本文中的Info类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。