Example #1
0
 protected void OnPropertyChanged(sting s)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(s);
     }
 }
Example #2
0
        //
        //реализация 2 интерфейса
        
        //static методы  говнокод получайте на на на
        public static void Write(sting path, string name, string message)
        {
            try
            {
                Dispose instance = new Dispose();
                StreamWriter sw = new StreamWriter(path,true,System.Text.Encoding,Default);
                sw.WriteLine(name + " " + DateTime.Now + "  " + message)

            }
            catch (Exception exception)
            {
                System.Console.WriteLine(ex);
            }
            finally
            {
                instance.Dispose()
            }
        }
Example #3
0
        public async Task StatusMessage(Program _client)
        {
            var ReturnMsg = await Context.Channel.GetMessagesAsync(1).Flatten();

            await Context.Channel.DeleteMessagesAsync(ReturnMsg);

            var CurProc = Process.GetCurrentProcess();
            var CurMem  = proc.WorkingSet64;
            var CurCPU  = proc.TotalProcessorTime;

            foreach (var aProc in Process.GetProcesses())
            {
                sting message =
                    "**RAM Usage:** " + CurMem.ToString + Environment.NewLine +
                    "**CPU Usage:** " + CurCPU.ToString + Environment.NewLine +
                    "**Process Information:** " + CurProc.ToString + Environment.NewLine +
                    "**Current Time:** " + time + Environment.NewLine +
                    "**Bot Version: 0.2.0**" + Environment.NewLine;
            }
            await Helper.LoggingAsync(new LogMessage(LogSeverity.Verbose, "Bot", Message));

            await Context.Channel.SendMessageAsync(Message);
        }
Example #4
0
		public Humano (int idade, sting som, float peso, float velocidade, string cpf}
Example #5
0
 public ThreadRun(String a, sting b)
 {
     uid = a;
     pws = b;
 }
Example #6
0
 public static void FancyDisplay(sting word, char decoration = 'X')
 {
     Console.WriteLine("{0}{0}{0}  {1}  {0}{0}{0}\n",
      decoration, word)
 }
Example #7
0
 void log_order_progress(string actionName, sting actionOrigin, string orderId)
 {
     Console.WriteLine(
         ORDER_PROGRESS_MSG_TMPL, actionName, actionOrigin, orderId
         );
 }
Example #8
0
        // Methods

        public void SetMember(string setName, int setsalary, sting setDeparment)
        {
            name       = setName;
            Salary     = setsarly;
            department = setDeparment;
        }
Example #9
0
 public static void FancyDisplay(sting word, char decoration = 'X')
 {
     Console.WriteLine("{0}{0}{0}  {1}  {0}{0}{0}\n",
                       decoration, word)
 }